@@ -71,7 +71,7 @@ public static function length($string, $encoding = 'UTF-8')
7171 * @param string $encoding
7272 * @return string
7373 */
74- public static function strtolower ($ string , $ encoding = 'UTF-8 ' )
74+ public static function toLower ($ string , $ encoding = 'UTF-8 ' )
7575 {
7676 return mb_strtolower ($ string , $ encoding );
7777 }
@@ -84,7 +84,7 @@ public static function strtolower($string, $encoding = 'UTF-8')
8484 * @param string $encoding
8585 * @return string
8686 */
87- public static function strtoupper ($ string , $ encoding = 'UTF-8 ' )
87+ public static function toUpper ($ string , $ encoding = 'UTF-8 ' )
8888 {
8989 return mb_strtoupper ($ string , $ encoding );
9090 }
@@ -97,13 +97,13 @@ public static function strtoupper($string, $encoding = 'UTF-8')
9797 * @param string $encoding
9898 * @return string
9999 */
100- public static function ucfirst ($ string , $ encoding = 'UTF-8 ' )
100+ public static function firstCharToUpper ($ string , $ encoding = 'UTF-8 ' )
101101 {
102102 $ strlen = static ::length ($ string , $ encoding );
103103 $ firstChar = mb_substr ($ string , 0 , 1 , $ encoding );
104104 $ then = mb_substr ($ string , 1 , $ strlen - 1 , $ encoding );
105105
106- return mb_strtoupper ($ firstChar , $ encoding ) . $ then ;
106+ return static :: toUpper ($ firstChar , $ encoding ) . $ then ;
107107 }
108108
109109 /**
0 commit comments