| 6 | // we're not gonna mess with the mess that is all the isupper/etc. functions |
| 7 | bool IsLower(char ch) { return 'a' <= ch && ch <= 'z'; } |
| 8 | bool IsUpper(char ch) { return 'A' <= ch && ch <= 'Z'; } |
| 9 | char ToLower(char ch) { return IsUpper(ch) ? ch + 'a' - 'A' : ch; } |
| 10 | |
| 11 | std::string tolower(const std::string& str) { |
no outgoing calls
no test coverage detected