MCPcopy Create free account
hub / github.com/apache/singa / icasecmp

Function icasecmp

include/singa/utils/string.h:31–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30namespace singa {
31inline bool icasecmp(const string& l, const string& r) {
32 return l.size() == r.size() &&
33 equal(l.cbegin(), l.cend(), r.cbegin(),
34 [](string::value_type l1, string::value_type r1) {
35 return toupper(l1) == toupper(r1);
36 });
37}
38
39inline string ToLowerCase(const string& input) {
40 string out;

Callers

nothing calls this directly

Calls 2

equalFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected