MCPcopy Create free account
hub / github.com/clechasseur/pathcopycopy / ToUppercase

Method ToUppercase

PathCopyCopy/src/StringUtils.cpp:37–44  ·  view source on GitHub ↗

Converts p_String to uppercase. @param p_String String to convert. @return Uppercase version of string.

Source from the content-addressed store, hash-verified

35// @return Uppercase version of string.
36//
37std::wstring StringUtils::ToUppercase(std::wstring p_String)
38{
39 std::transform(p_String.begin(),
40 p_String.end(),
41 p_String.begin(),
42 [](auto c) { return static_cast<wchar_t>(std::towupper(static_cast<std::wint_t>(c))); });
43 return p_String;
44}
45
46
47//

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected