1 | <?php |
||
16 | class Normalizer { |
||
17 | |||
18 | /** |
||
19 | * @since 0.1 |
||
20 | * |
||
21 | * @param string $text |
||
22 | * |
||
23 | * @param integer $flag |
||
24 | */ |
||
25 | 1 | public static function applyTransliteration( $text, $flag = Transliterator::DIACRITICS ) { |
|
28 | |||
29 | /** |
||
30 | * @see Localizer::convertDoubleWidth |
||
31 | * |
||
32 | * @since 0.1 |
||
33 | * |
||
34 | * @param string $text |
||
35 | * |
||
36 | * @return string |
||
37 | */ |
||
38 | 1 | public static function convertDoubleWidth( $text ) { |
|
62 | |||
63 | |||
64 | /** |
||
65 | * @since 0.1 |
||
66 | * |
||
67 | * @param string $text |
||
68 | * |
||
69 | * @return string |
||
70 | */ |
||
71 | 5 | public static function toLowercase( $text ) { |
|
74 | |||
75 | /** |
||
76 | * @since 0.1 |
||
77 | * |
||
78 | * @param string $text |
||
79 | * @param integer|null $length |
||
80 | * |
||
81 | * @return string |
||
82 | */ |
||
83 | 1 | public static function reduceLengthTo( $text, $length = null ) { |
|
102 | |||
103 | } |
||
104 |