00001 <?php 00005 class LanguageYue extends Language { 00006 function stripForSearch( $string ) { 00007 wfProfileIn( __METHOD__ ); 00008 00009 // eventually this should be a word segmentation 00010 // for now just treat each character as a word 00011 // @fixme only do this for Han characters... 00012 $t = preg_replace( 00013 "/([\\xc0-\\xff][\\x80-\\xbf]*)/", 00014 " $1", $string); 00015 00016 // Do general case folding and UTF-8 armoring 00017 $t = parent::stripForSearch( $t ); 00018 wfProfileOut( __METHOD__ ); 00019 return $t; 00020 } 00021 }