| @@ 136-141 (lines=6) @@ | ||
| 133 | case self::CASE_UPPER: |
|
| 134 | $output = mb_strtoupper($value, 'utf-8'); |
|
| 135 | break; |
|
| 136 | case self::CASE_CAPITAL: |
|
| 137 | $firstChar = mb_substr($value, 0, 1, 'utf-8'); |
|
| 138 | $firstChar = mb_strtoupper($firstChar, 'utf-8'); |
|
| 139 | $remainder = mb_substr($value, 1, null, 'utf-8'); |
|
| 140 | $output = $firstChar . $remainder; |
|
| 141 | break; |
|
| 142 | case self::CASE_UNCAPITAL: |
|
| 143 | $firstChar = mb_substr($value, 0, 1, 'utf-8'); |
|
| 144 | $firstChar = mb_strtolower($firstChar, 'utf-8'); |
|
| @@ 142-147 (lines=6) @@ | ||
| 139 | $remainder = mb_substr($value, 1, null, 'utf-8'); |
|
| 140 | $output = $firstChar . $remainder; |
|
| 141 | break; |
|
| 142 | case self::CASE_UNCAPITAL: |
|
| 143 | $firstChar = mb_substr($value, 0, 1, 'utf-8'); |
|
| 144 | $firstChar = mb_strtolower($firstChar, 'utf-8'); |
|
| 145 | $remainder = mb_substr($value, 1, null, 'utf-8'); |
|
| 146 | $output = $firstChar . $remainder; |
|
| 147 | break; |
|
| 148 | case self::CASE_CAPITAL_WORDS: |
|
| 149 | $output = mb_convert_case($value, MB_CASE_TITLE, 'utf-8'); |
|
| 150 | break; |
|
| @@ 5847-5852 (lines=6) @@ | ||
| 5844 | case 'capitalize': |
|
| 5845 | $theValue = mb_convert_case($theValue, MB_CASE_TITLE, 'utf-8'); |
|
| 5846 | break; |
|
| 5847 | case 'ucfirst': |
|
| 5848 | $firstChar = mb_substr($theValue, 0, 1, 'utf-8'); |
|
| 5849 | $firstChar = mb_strtoupper($firstChar, 'utf-8'); |
|
| 5850 | $remainder = mb_substr($theValue, 1, null, 'utf-8'); |
|
| 5851 | $theValue = $firstChar . $remainder; |
|
| 5852 | break; |
|
| 5853 | case 'lcfirst': |
|
| 5854 | $firstChar = mb_substr($theValue, 0, 1, 'utf-8'); |
|
| 5855 | $firstChar = mb_strtolower($firstChar, 'utf-8'); |
|
| @@ 5853-5858 (lines=6) @@ | ||
| 5850 | $remainder = mb_substr($theValue, 1, null, 'utf-8'); |
|
| 5851 | $theValue = $firstChar . $remainder; |
|
| 5852 | break; |
|
| 5853 | case 'lcfirst': |
|
| 5854 | $firstChar = mb_substr($theValue, 0, 1, 'utf-8'); |
|
| 5855 | $firstChar = mb_strtolower($firstChar, 'utf-8'); |
|
| 5856 | $remainder = mb_substr($theValue, 1, null, 'utf-8'); |
|
| 5857 | $theValue = $firstChar . $remainder; |
|
| 5858 | break; |
|
| 5859 | case 'uppercamelcase': |
|
| 5860 | $theValue = GeneralUtility::underscoredToUpperCamelCase($theValue); |
|
| 5861 | break; |
|