Changed all *_mime_minor field lengths to 100; current 32 does not support some OpenD...
[mediawiki.git] / languages / classes / LanguageZh_hans.php
blob5b03d731458ad252a966f653bb2bb2817e1265f6
1 <?php
3 /**
4 * @ingroup Language
5 */
6 class LanguageZh_hans extends Language {
7 function hasWordBreaks() {
8 return false;
11 /**
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 );
19 return $s;
22 function normalizeForSearch( $string ) {
23 wfProfileIn( __METHOD__ );
25 // Double-width roman characters
26 $s = self::convertDoubleWidth( $string );
27 $s = trim( $s );
28 $s = parent::normalizeForSearch( $s );
30 wfProfileOut( __METHOD__ );
31 return $s;