MCPcopy Create free account
hub / github.com/apache/brpc / ToLowerASCII

Function ToLowerASCII

src/butil/strings/string_util.h:98–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96// ASCII-specific tolower. The standard library's tolower is locale sensitive,
97// so we don't want to use it here.
98template <class Char> inline Char ToLowerASCII(Char c) {
99 return (c >= 'A' && c <= 'Z') ? (c + ('a' - 'A')) : c;
100}
101
102// ASCII-specific toupper. The standard library's toupper is locale sensitive,
103// so we don't want to use it here.

Callers 3

operator()Method · 0.85
StringToLowerASCIIFunction · 0.85
DoLowerCaseEqualsASCIIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected