MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / strTolower

Function strTolower

lib/utils.cpp:122–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void strTolower(std::string& str)
123{
124 // This wrapper exists because Sun's CC does not allow a static_cast
125 // from extern "C" int(*)(int) to int(*)(int).
126 std::transform(str.cbegin(), str.cend(), str.begin(), [](int c) {
127 return std::tolower(c);
128 });
129}
130
131std::string trim(const std::string& s, const std::string& t)
132{

Callers 3

checkKnownArgumentMethod · 0.85
getFilenameExtensionMethod · 0.85
identifyMethod · 0.85

Calls 1

beginMethod · 0.45

Tested by

no test coverage detected