MCPcopy Create free account
hub / github.com/avast/retdec / toUpper

Function toUpper

src/utils/string.cpp:383–387  ·  view source on GitHub ↗

* @brief Converts all characters in @a str to upper case. * * For example, "Crazy Willy" is converted into "CRAZY WILLY" . */

Source from the content-addressed store, hash-verified

381* For example, <tt>"Crazy Willy"</tt> is converted into <tt>"CRAZY WILLY"</tt>.
382*/
383std::string toUpper(std::string str) {
384 std::transform(str.begin(), str.end(), str.begin(),
385 [](const unsigned char c) { return std::toupper(c); });
386 return str;
387}
388
389/**
390* @brief Converts @a str to wide string.

Callers 2

loadPdbInfoMethod · 0.85
TEST_FFunction · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by 1

TEST_FFunction · 0.68