1 | <?php |
||
21 | abstract class AbstractCharCase extends AbstractStrlen |
||
22 | { |
||
23 | /** |
||
24 | * |
||
25 | * Proxy to `mb_convert_case()` when available; fall back to |
||
26 | * `utf8_decode()` and `strtolower()` otherwise. |
||
27 | * |
||
28 | * @param string $str String to convert case. |
||
29 | * |
||
30 | * @return string |
||
31 | * |
||
32 | */ |
||
33 | 30 | protected function strtolower($str) |
|
41 | |||
42 | /** |
||
43 | * |
||
44 | * Proxy to `mb_convert_case()` when available; fall back to |
||
45 | * `utf8_decode()` and `strtoupper()` otherwise. |
||
46 | * |
||
47 | * @param string $str String to convert case. |
||
48 | * |
||
49 | * @return string |
||
50 | * |
||
51 | */ |
||
52 | 30 | protected function strtoupper($str) |
|
60 | |||
61 | /** |
||
62 | * |
||
63 | * Proxy to `mb_convert_case()` when available; fall back to |
||
64 | * `utf8_decode()` and `ucwords()` otherwise. |
||
65 | * |
||
66 | * @param string $str String to convert case. |
||
67 | * |
||
68 | * @return int |
||
69 | * |
||
70 | */ |
||
71 | 15 | protected function ucwords($str) |
|
79 | |||
80 | /** |
||
81 | * |
||
82 | * Proxy to `mb_convert_case()` when available; fall back to |
||
83 | * `utf8_decode()` and `strtoupper()` otherwise. |
||
84 | * |
||
85 | * @param string $str String to convert case. |
||
86 | * |
||
87 | * @return int |
||
88 | * |
||
89 | */ |
||
90 | 15 | protected function ucfirst($str) |
|
103 | |||
104 | /** |
||
105 | * |
||
106 | * Proxy to `mb_convert_case()` when available; fall back to |
||
107 | * `utf8_decode()` and `strtolower()` otherwise. |
||
108 | * |
||
109 | * @param string $str String to convert case. |
||
110 | * |
||
111 | * @return int |
||
112 | * |
||
113 | */ |
||
114 | 15 | protected function lcfirst($str) |
|
129 | |||
130 | } |
||
131 |