|
MediaWiki
REL1_24
|
class that handles both Traditional and Simplified Chinese right now it only distinguish zh_hans, zh_hant, zh_cn, zh_tw, zh_sg and zh_hk. More...


Public Member Functions | |
| __construct () | |
| convertForSearchResult ($termsArray) | |
| normalizeForSearch ($string, $autoVariant= 'zh-hans') | |
| auto convert to zh-hans and normalize special characters. | |
| segmentForDiff ($text) | |
| this should give much better diff info | |
| unsegmentForDiff ($text) | |
class that handles both Traditional and Simplified Chinese right now it only distinguish zh_hans, zh_hant, zh_cn, zh_tw, zh_sg and zh_hk.
Definition at line 104 of file LanguageZh.php.
Reimplemented from Language.
Reimplemented in LanguageGan.
Definition at line 105 of file LanguageZh.php.
| LanguageZh::convertForSearchResult | ( | $ | termsArray | ) |
| array | $termsArray |
Reimplemented from Language.
Definition at line 191 of file LanguageZh.php.
References $ret, and Language\convertDoubleWidth().
| LanguageZh::normalizeForSearch | ( | $ | string, |
| $ | autoVariant = 'zh-hans' |
||
| ) |
auto convert to zh-hans and normalize special characters.
| string | $string | |
| string | $autoVariant | Defaults to 'zh-hans' |
Reimplemented in LanguageGan.
Definition at line 172 of file LanguageZh.php.
References $s, wfProfileIn(), and wfProfileOut().
| LanguageZh::segmentForDiff | ( | $ | text | ) |
this should give much better diff info
| string | $text |
Reimplemented from Language.
Definition at line 153 of file LanguageZh.php.
| LanguageZh::unsegmentForDiff | ( | $ | text | ) |
| string | $text |
Reimplemented from Language.
Definition at line 161 of file LanguageZh.php.