8 class LanguageZh_hans
extends Language
{
13 function hasWordBreaks() {
18 * Eventually this should be a word segmentation;
19 * for now just treat each character as a word.
20 * @todo FIXME: Only do this for Han characters...
22 * @param $string string
26 function segmentByWord( $string ) {
27 $reg = "/([\\xc0-\\xff][\\x80-\\xbf]*)/";
28 $s = self
::insertSpace( $string, $reg );
36 function normalizeForSearch( $s ) {
37 wfProfileIn( __METHOD__
);
39 // Double-width roman characters
40 $s = parent
::normalizeForSearch( $s );
42 $s = $this->segmentByWord( $s );
44 wfProfileOut( __METHOD__
);