MCPcopy Create free account
hub / github.com/apache/thrift / uppercase

Function uppercase

lib/cpp/src/thrift/transport/TSSLSocket.cpp:1243–1248  ·  view source on GitHub ↗

This is to work around the Turkish locale issue, i.e., toupper('i') != toupper('I') if locale is "tr_TR"

Source from the content-addressed store, hash-verified

1241// This is to work around the Turkish locale issue, i.e.,
1242// toupper('i') != toupper('I') if locale is "tr_TR"
1243char uppercase(char c) {
1244 if ('a' <= c && c <= 'z') {
1245 return c + ('A' - 'a');
1246 }
1247 return c;
1248}
1249}
1250}
1251}

Callers 4

rust_upper_caseMethod · 0.85
constifyMethod · 0.85
matchNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected