LanguageZh_hans Class Reference
[Language]

Inherits Language.

Inherited by LanguageZh.

List of all members.

Public Member Functions

 hasWordBreaks ()
 Most writing systems use whitespace to break up words.
 wordSegmentation ($string)
 Eventually this should be a word segmentation; for now just treat each character as a word.
 normalizeForSearch ($string)
 Some languages have special punctuation need to be normalized.


Detailed Description

Definition at line 6 of file LanguageZh_hans.php.


Member Function Documentation

LanguageZh_hans::hasWordBreaks (  ) 

Most writing systems use whitespace to break up words.

Some languages such as Chinese don't conventionally do this, which requires special handling when breaking up words for searching etc.

Reimplemented from Language.

Definition at line 7 of file LanguageZh_hans.php.

LanguageZh_hans::normalizeForSearch ( string  ) 

Some languages have special punctuation need to be normalized.

Make such changes here.

Parameters:
$string String
Returns:
String

Reimplemented from Language.

Definition at line 22 of file LanguageZh_hans.php.

References $s, Language::convertDoubleWidth(), wfProfileIn(), and wfProfileOut().

LanguageZh_hans::wordSegmentation ( string  ) 

Eventually this should be a word segmentation; for now just treat each character as a word.

Todo:
Fixme: only do this for Han characters...

Reimplemented from Language.

Definition at line 16 of file LanguageZh_hans.php.

References $s, and Language::insertSpace().


The documentation for this class was generated from the following file:

Generated on Sat Apr 30 22:57:41 2011 for MediaWiki by  doxygen 1.5.9