MediaWiki
master
LanguageYue.php
Go to the documentation of this file.
1
<?php
26
class
LanguageYue
extends
Language {
27
28
public
function
hasWordBreaks
() {
29
return
false
;
30
}
31
40
public
function
segmentByWord
( $string ) {
41
$reg =
"/([\\xc0-\\xff][\\x80-\\xbf]*)/"
;
42
return
self::insertSpace( $string, $reg );
43
}
44
}
LanguageYue
Cantonese (粵語)
Definition
LanguageYue.php:26
LanguageYue\segmentByWord
segmentByWord( $string)
Eventually, this should be a word segmentation; but for now just treat each character as a word.
Definition
LanguageYue.php:40
LanguageYue\hasWordBreaks
hasWordBreaks()
Definition
LanguageYue.php:28
includes
languages
LanguageYue.php
Generated on Thu Sep 12 2024 07:23:43 for MediaWiki by
1.10.0