LanguageYue Class Reference
[Language]

Inherits Language.

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 5 of file LanguageYue.php.


Member Function Documentation

LanguageYue::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 6 of file LanguageYue.php.

LanguageYue::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 21 of file LanguageYue.php.

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

LanguageYue::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 15 of file LanguageYue.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