Replaced all @fixme with "@todo Fixme" since doxygen doesn't have a @fixme command
[lhc/web/wiklou.git] / languages / classes / LanguageYue.php
1 <?php
2 /**
3 * @ingroup Language
4 */
5 class LanguageYue extends Language {
6 function stripForSearch( $string ) {
7 wfProfileIn( __METHOD__ );
8
9 // eventually this should be a word segmentation
10 // for now just treat each character as a word
11 // @todo Fixme: only do this for Han characters...
12 $t = preg_replace(
13 "/([\\xc0-\\xff][\\x80-\\xbf]*)/",
14 " $1", $string);
15
16 // Do general case folding and UTF-8 armoring
17 $t = parent::stripForSearch( $t );
18 wfProfileOut( __METHOD__ );
19 return $t;
20 }
21 }