|Ratings|| ||Unique User Downloads|| ||Download Rankings|
|Not yet rated by the users||Total: 59 ||All time: 10,041 This week: 218|
This package is specific mainly for applications used in China
This class can detect and convert text in Chinese.
It can take a text string and detects if it is in simplified Chinese or traditional Chinese.
The class can also convert text between simplified and traditional Chinese encodings.
|Chinese is a language that can be represented in either traditional and simplified formats.
This class can detect when a text string is represented in either format and convert the text between each of the format.
Chinese traditional/simplified conversion; traditional/simplified detection.
$chm = new ChineseMaster;
* Does string include (1 or more) characters of traditional Chinese script?
$isTraditional = ($chm->isTraditional('?')) ? true : false; # false
$isTraditional = ($chm->isTraditional('?')) ? true : false; # true
$isTraditional = ($chm->isTraditional('??')) ? true : false; # true
* Convert text in traditional script to simplified.
echo $chm->trad2simp('???'); # ???
* Convert text in simplified script to traditional.
echo $chm->simp2trad('???'); # ???
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.