MediaWiki  REL1_21
LanguageGan Class Reference

class that handles both Traditional and Simplified Chinese right now it only distinguish gan_hans, gan_hant. More...

Inheritance diagram for LanguageGan:
Collaboration diagram for LanguageGan:

List of all members.

Public Member Functions

 __construct ()
 convertForSearchResult ($termsArray)
 normalizeForSearch ($string, $autoVariant= 'gan-hans')
 word segmentation
 segmentForDiff ($text)
 this should give much better diff info
 unsegmentForDiff ($text)

Detailed Description

class that handles both Traditional and Simplified Chinese right now it only distinguish gan_hans, gan_hant.

Definition at line 84 of file LanguageGan.php.


Constructor & Destructor Documentation

Reimplemented from LanguageZh.

Definition at line 86 of file LanguageGan.php.

References $wgHooks, array(), and global.


Member Function Documentation

Parameters:
$termsArrayarray
Returns:
array

Reimplemented from LanguageZh.

Definition at line 146 of file LanguageGan.php.

References $ret, and Language\convertDoubleWidth().

LanguageGan::normalizeForSearch ( string,
autoVariant = 'gan-hans' 
)

word segmentation

Parameters:
$stringstring
$autoVariantstring
Returns:
String

Reimplemented from LanguageZh.

Definition at line 137 of file LanguageGan.php.

this should give much better diff info

Parameters:
$textstring
Returns:
string

Reimplemented from LanguageZh.

Definition at line 114 of file LanguageGan.php.

Parameters:
$textstring
Returns:
string

Reimplemented from LanguageZh.

Definition at line 124 of file LanguageGan.php.


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