f00ac31e6e1993b8133c66e9110fb67f00996e99
5 class LanguageYue
extends Language
{
6 function stripForSearch( $string, $doStrip = true ) {
7 wfProfileIn( __METHOD__
);
9 // Double-width roman characters
10 $s = self
::convertDoubleWidth( $string );
12 if ( $doStrip == true ) {
13 // eventually this should be a word segmentation;
14 // for now just treat each character as a word.
15 // @todo Fixme: only do this for Han characters...
16 $reg = "/([\\xc0-\\xff][\\x80-\\xbf]*)/";
17 $s = self
::wordSegmentation( $s, $reg );
22 // Do general case folding and UTF-8 armoring
23 $s = parent
::stripForSearch( $s, $doStrip );
24 wfProfileOut( __METHOD__
);