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