6 class LanguageZh_hans
extends Language
{
7 function hasWordBreaks() {
12 * Eventually this should be a word segmentation;
13 * for now just treat each character as a word.
14 * @todo Fixme: only do this for Han characters...
16 function wordSegmentation( $string ) {
17 $reg = "/([\\xc0-\\xff][\\x80-\\xbf]*)/";
18 $s = self
::insertSpace( $string, $reg );
22 function normalizeForSearch( $string ) {
23 wfProfileIn( __METHOD__
);
25 // Double-width roman characters
26 $s = self
::convertDoubleWidth( $string );
28 $s = parent
::normalizeForSearch( $s );
30 wfProfileOut( __METHOD__
);