44 $first = mb_substr( $str, 0, 1 );
45 if ( in_array( $first, self::LC ) ) {
46 $first = str_replace( self::LC, self::UC, $first );
47 return $first . mb_substr( $str, 1 );
49 return parent::ucfirst( $str );
53 $first = mb_substr( $str, 0, 1 );
54 if ( in_array( $first, self::UC ) ) {
55 $first = str_replace( self::UC, self::LC, $first );
56 return $first . mb_substr( $str, 1 );
58 return parent::lcfirst( $str );