46 $text = str_replace(
"\x0c",
"\u{FFFD}", $text );
47 return preg_replace(
'/[\xc0-\xff][\x80-\xbf]*/',
"\x0c$0", $text );
51 return str_replace(
"\x0c",
'', $text );
59 $terms = implode(
'|', $termsArray );
62 return array_unique( explode(
'|', $terms ) );
convertForSearchResult( $termsArray)
segmentForDiff( $text)
Add a formfeed character between each non-ASCII character, so that "word-level" diffs will effectivel...
getSearchIndexVariant()
Specify the language variant that should be used for search indexing.
unsegmentForDiff( $text)
And unsegment to show the result.