| 893 | } |
| 894 | |
| 895 | String uppercase(StringView string) { |
| 896 | // Theoretically doing the copy in the same loop as case change could be faster for *really long* strings due |
| 897 | // to cache reuse, but until that proves to be a bottleneck I'll go with the simpler solution. |
| 898 | // Not implementing through uppercase(String) as the call stack is deep enough already and we don't |
| 899 | // need the extra checks there. |
| 900 | String out{string}; |
| 901 | uppercaseInPlace(out); |
| 902 | return out; |
| 903 | } |
| 904 | |
| 905 | String uppercase(String string) { |
| 906 | // In the rare scenario where we'd get a non-owned string (such as String::nullTerminatedView() passed right |
no test coverage detected