8 class LanguageZh_hans
extends Language
{
9 function hasWordBreaks() {
14 * Eventually this should be a word segmentation;
15 * for now just treat each character as a word.
16 * @todo FIXME: Only do this for Han characters...
18 function segmentByWord( $string ) {
19 $reg = "/([\\xc0-\\xff][\\x80-\\xbf]*)/";
20 $s = self
::insertSpace( $string, $reg );
28 function normalizeForSearch( $s ) {
29 wfProfileIn( __METHOD__
);
31 // Double-width roman characters
32 $s = parent
::normalizeForSearch( $s );
34 $s = $this->segmentByWord( $s );
36 wfProfileOut( __METHOD__
);