diff options
Diffstat (limited to 'languages/classes/LanguageZh_hans.php')
-rw-r--r-- | languages/classes/LanguageZh_hans.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/languages/classes/LanguageZh_hans.php b/languages/classes/LanguageZh_hans.php index a65162bc..671a16e7 100644 --- a/languages/classes/LanguageZh_hans.php +++ b/languages/classes/LanguageZh_hans.php @@ -6,6 +6,10 @@ * @ingroup Language */ class LanguageZh_hans extends Language { + + /** + * @return bool + */ function hasWordBreaks() { return false; } @@ -13,7 +17,11 @@ class LanguageZh_hans extends Language { /** * Eventually this should be a word segmentation; * for now just treat each character as a word. - * @todo Fixme: only do this for Han characters... + * @todo FIXME: Only do this for Han characters... + * + * @param $string string + * + * @return string */ function segmentByWord( $string ) { $reg = "/([\\xc0-\\xff][\\x80-\\xbf]*)/"; @@ -21,6 +29,10 @@ class LanguageZh_hans extends Language { return $s; } + /** + * @param $s + * @return string + */ function normalizeForSearch( $s ) { wfProfileIn( __METHOD__ ); |