38 return preg_replace(
'/[\xc0-\xff][\x80-\xbf]*/',
' $0', $text );
46 return preg_replace(
'/ ([\xc0-\xff][\x80-\xbf]*)/',
'$1', $text );
63 $s = parent::normalizeForSearch(
$s );
72 $terms = implode(
'|', $termsArray );
75 $ret = array_unique( explode(
'|', $terms ) );
class that handles both Traditional and Simplified Chinese right now it only distinguish zh_hans,...
convertForSearchResult( $termsArray)
segmentForDiff( $text)
this should give much better diff info
normalizeForSearch( $string, $autoVariant='zh-hans')
auto convert to zh-hans and normalize special characters.
static convertDoubleWidth( $string)
convert double-width roman characters to single-width.
autoConvertToAllVariants( $text)
convert text to all supported variants
getConverter()
Return the LanguageConverter used in the Language.
foreach( $mmfl['setupFiles'] as $fileName) if($queue) if(empty( $mmfl['quiet'])) $s