MCPcopy Create free account
hub / github.com/catboost/catboost / EqualNoCase

Function EqualNoCase

library/cpp/neh/https.cpp:269–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267 ERROR
268 };
269 bool EqualNoCase(TStringBuf a, TStringBuf b) {
270 return (a.size() == b.size()) && ToString(a).to_lower() == ToString(b).to_lower();
271 }
272 bool MatchDomainName(TStringBuf tmpl, TStringBuf name) {
273 // match wildcards only in the left-most part
274 // do not support (optional according to RFC) partial wildcards (ww*.yandex.ru)

Callers 1

MatchDomainNameFunction · 0.85

Calls 3

ToStringFunction · 0.50
sizeMethod · 0.45
to_lowerMethod · 0.45

Tested by

no test coverage detected