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

Function toLower

src/utils/string.cpp:372–376  ·  view source on GitHub ↗

* @brief Converts all characters in @a str to lower case. * * For example, "Crazy Willy" is converted into "crazy willy" . */

Source from the content-addressed store, hash-verified

370* For example, <tt>"Crazy Willy"</tt> is converted into <tt>"crazy willy"</tt>.
371*/
372std::string toLower(std::string str) {
373 std::transform(str.begin(), str.end(), str.begin(),
374 [](const unsigned char c) { return std::tolower(c); });
375 return str;
376}
377
378/**
379* @brief Converts all characters in @a str to upper case.

Callers 15

getAddressFromLabelFunction · 0.85
toStringMethod · 0.85
toStringMethod · 0.85
runOnModuleMethod · 0.85
computeHashesMethod · 0.85
computeHashesMethod · 0.85
computeHashesMethod · 0.85
loadTelfhashMethod · 0.85
detectTypeLibIdMethod · 0.85
addFilePathsMethod · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by 1

TEST_FFunction · 0.68