26 [
'FOOBAR',
'FOO',
'i;octet',
'contains',
true],
27 [
'FOOBAR',
'foo',
'i;octet',
'contains',
false],
28 [
'FÖÖBAR',
'FÖÖ',
'i;octet',
'contains',
true],
29 [
'FÖÖBAR',
'föö',
'i;octet',
'contains',
false],
30 [
'FOOBAR',
'FOOBAR',
'i;octet',
'equals',
true],
31 [
'FOOBAR',
'fooBAR',
'i;octet',
'equals',
false],
32 [
'FOOBAR',
'FOO',
'i;octet',
'starts-with',
true],
33 [
'FOOBAR',
'foo',
'i;octet',
'starts-with',
false],
34 [
'FOOBAR',
'BAR',
'i;octet',
'starts-with',
false],
35 [
'FOOBAR',
'bar',
'i;octet',
'starts-with',
false],
36 [
'FOOBAR',
'FOO',
'i;octet',
'ends-with',
false],
37 [
'FOOBAR',
'foo',
'i;octet',
'ends-with',
false],
38 [
'FOOBAR',
'BAR',
'i;octet',
'ends-with',
true],
39 [
'FOOBAR',
'bar',
'i;octet',
'ends-with',
false],
41 [
'FOOBAR',
'FOO',
'i;ascii-casemap',
'contains',
true],
42 [
'FOOBAR',
'foo',
'i;ascii-casemap',
'contains',
true],
43 [
'FÖÖBAR',
'FÖÖ',
'i;ascii-casemap',
'contains',
true],
44 [
'FÖÖBAR',
'föö',
'i;ascii-casemap',
'contains',
false],
45 [
'FOOBAR',
'FOOBAR',
'i;ascii-casemap',
'equals',
true],
46 [
'FOOBAR',
'fooBAR',
'i;ascii-casemap',
'equals',
true],
47 [
'FOOBAR',
'FOO',
'i;ascii-casemap',
'starts-with',
true],
48 [
'FOOBAR',
'foo',
'i;ascii-casemap',
'starts-with',
true],
49 [
'FOOBAR',
'BAR',
'i;ascii-casemap',
'starts-with',
false],
50 [
'FOOBAR',
'bar',
'i;ascii-casemap',
'starts-with',
false],
51 [
'FOOBAR',
'FOO',
'i;ascii-casemap',
'ends-with',
false],
52 [
'FOOBAR',
'foo',
'i;ascii-casemap',
'ends-with',
false],
53 [
'FOOBAR',
'BAR',
'i;ascii-casemap',
'ends-with',
true],
54 [
'FOOBAR',
'bar',
'i;ascii-casemap',
'ends-with',
true],
56 [
'FOOBAR',
'FOO',
'i;unicode-casemap',
'contains',
true],
57 [
'FOOBAR',
'foo',
'i;unicode-casemap',
'contains',
true],
58 [
'FÖÖBAR',
'FÖÖ',
'i;unicode-casemap',
'contains',
true],
59 [
'FÖÖBAR',
'föö',
'i;unicode-casemap',
'contains',
true],
60 [
'FOOBAR',
'FOOBAR',
'i;unicode-casemap',
'equals',
true],
61 [
'FOOBAR',
'fooBAR',
'i;unicode-casemap',
'equals',
true],
62 [
'FOOBAR',
'FOO',
'i;unicode-casemap',
'starts-with',
true],
63 [
'FOOBAR',
'foo',
'i;unicode-casemap',
'starts-with',
true],
64 [
'FOOBAR',
'BAR',
'i;unicode-casemap',
'starts-with',
false],
65 [
'FOOBAR',
'bar',
'i;unicode-casemap',
'starts-with',
false],
66 [
'FOOBAR',
'FOO',
'i;unicode-casemap',
'ends-with',
false],
67 [
'FOOBAR',
'foo',
'i;unicode-casemap',
'ends-with',
false],
68 [
'FOOBAR',
'BAR',
'i;unicode-casemap',
'ends-with',
true],
69 [
'FOOBAR',
'bar',
'i;unicode-casemap',
'ends-with',
true],
95 $inputString =
"harkema";
96 $outputString =
"harkema";
107 $inputString =
"m\xfcnster";
108 $outputString =
"münster";
119 $inputString =
"m\xc3\xbcnster";
120 $outputString =
"münster";
static ensureUTF8($input)
This method takes an input string, checks if it's not valid UTF-8 and attempts to convert it to UTF-8...
static textMatch($haystack, $needle, $collation, $matchType='contains')
Checks if a needle occurs in a haystack ;)
testTextMatch($haystack, $needle, $collation, $matchType, $result)