MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / uppercase

Function uppercase

Sources/Shared/Containers/StringUtils.cpp:895–903  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 4

GetHTTPMethodMethod · 0.85
CURLOnHeaderMethod · 0.85
GetHeaderMethod · 0.85
GetAllHeaderValuesMethod · 0.85

Calls 3

uppercaseInPlaceFunction · 0.85
isSmallMethod · 0.45
deleterMethod · 0.45

Tested by

no test coverage detected