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

Function ToUpperASCII

src/butil/strings/string_util.h:104–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102// ASCII-specific toupper. The standard library's toupper is locale sensitive,
103// so we don't want to use it here.
104template <class Char> inline Char ToUpperASCII(Char c) {
105 return (c >= 'a' && c <= 'z') ? (c + ('A' - 'a')) : c;
106}
107
108// Function objects to aid in comparing/searching strings.
109

Callers 2

TESTFunction · 0.85
StringToUpperASCIIFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68