Index: branches/conrad/phase3/includes/search/SearchMySQL.php |
— | — | @@ -326,7 +326,7 @@ |
327 | 327 | wfProfileIn( __METHOD__ ); |
328 | 328 | |
329 | 329 | // Some languages such as Chinese require word segmentation |
330 | | - $out = $wgContLang->wordSegmentation( $string ); |
| 330 | + $out = $wgContLang->segmentByWord( $string ); |
331 | 331 | |
332 | 332 | // MySQL fulltext index doesn't grok utf-8, so we |
333 | 333 | // need to fold cases and convert to hex |
— | — | @@ -409,4 +409,4 @@ |
410 | 410 | function getTotalHits() { |
411 | 411 | return $this->mTotalHits; |
412 | 412 | } |
413 | | -} |
\ No newline at end of file |
| 413 | +} |
Index: branches/conrad/phase3/languages/classes/LanguageZh_hans.php |
— | — | @@ -13,7 +13,7 @@ |
14 | 14 | * for now just treat each character as a word. |
15 | 15 | * @todo Fixme: only do this for Han characters... |
16 | 16 | */ |
17 | | - function wordSegmentation( $string ) { |
| 17 | + function segmentByWord( $string ) { |
18 | 18 | $reg = "/([\\xc0-\\xff][\\x80-\\xbf]*)/"; |
19 | 19 | $s = self::insertSpace( $string, $reg ); |
20 | 20 | return $s; |
— | — | @@ -30,4 +30,4 @@ |
31 | 31 | wfProfileOut( __METHOD__ ); |
32 | 32 | return $s; |
33 | 33 | } |
34 | | -} |
\ No newline at end of file |
| 34 | +} |
Index: branches/conrad/phase3/languages/classes/LanguageJa.php |
— | — | @@ -6,7 +6,7 @@ |
7 | 7 | * @ingroup Language |
8 | 8 | */ |
9 | 9 | class LanguageJa extends Language { |
10 | | - function wordSegmentation( $string ) { |
| 10 | + function segmentByWord( $string ) { |
11 | 11 | // Strip known punctuation ? |
12 | 12 | // $s = preg_replace( '/\xe3\x80[\x80-\xbf]/', '', $s ); # U3000-303f |
13 | 13 | |
Index: branches/conrad/phase3/languages/classes/LanguageYue.php |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | * for now just treat each character as a word. |
14 | 14 | * @todo Fixme: only do this for Han characters... |
15 | 15 | */ |
16 | | - function wordSegmentation( $string ) { |
| 16 | + function segmentByWord( $string ) { |
17 | 17 | $reg = "/([\\xc0-\\xff][\\x80-\\xbf]*)/"; |
18 | 18 | $s = self::insertSpace( $string, $reg ); |
19 | 19 | return $s; |