MediaWiki  1.23.2
LanguageYue.php
Go to the documentation of this file.
1 <?php
29 class LanguageYue extends Language {
30 
34  function hasWordBreaks() {
35  return false;
36  }
37 
46  function segmentByWord( $string ) {
47  $reg = "/([\\xc0-\\xff][\\x80-\\xbf]*)/";
48  $s = self::insertSpace( $string, $reg );
49  return $s;
50  }
51 
56  function normalizeForSearch( $string ) {
57  wfProfileIn( __METHOD__ );
58 
59  // Double-width roman characters
60  $s = self::convertDoubleWidth( $string );
61  $s = trim( $s );
62  $s = parent::normalizeForSearch( $s );
63 
64  wfProfileOut( __METHOD__ );
65  return $s;
66  }
67 }
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
wfProfileIn
wfProfileIn( $functionname)
Begin profiling of a function.
Definition: Profiler.php:33
$s
$s
Definition: mergeMessageFileList.php:156
LanguageYue\hasWordBreaks
hasWordBreaks()
Definition: LanguageYue.php:34
wfProfileOut
wfProfileOut( $functionname='missing')
Stop profiling of a function.
Definition: Profiler.php:46
Language\convertDoubleWidth
static convertDoubleWidth( $string)
convert double-width roman characters to single-width.
Definition: Language.php:2682
LanguageYue\segmentByWord
segmentByWord( $string)
Eventually this should be a word segmentation; for now just treat each character as a word.
Definition: LanguageYue.php:46
LanguageYue\normalizeForSearch
normalizeForSearch( $string)
Definition: LanguageYue.php:56
LanguageYue
Cantonese (粵語)
Definition: LanguageYue.php:29
Language\insertSpace
static insertSpace( $string, $pattern)
Definition: Language.php:2702
Language
Internationalisation code.
Definition: Language.php:74