MCPcopy Create free account
hub / github.com/apache/trafficserver / ToLower

Function ToLower

lib/yamlcpp/src/convert.cpp:9–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7bool IsLower(char ch) { return 'a' <= ch && ch <= 'z'; }
8bool IsUpper(char ch) { return 'A' <= ch && ch <= 'Z'; }
9char ToLower(char ch) { return IsUpper(ch) ? ch + 'a' - 'A' : ch; }
10
11std::string tolower(const std::string& str) {
12 std::string s(str);

Callers

nothing calls this directly

Calls 1

IsUpperFunction · 0.85

Tested by

no test coverage detected