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

Function DoLowerCaseEqualsASCII

src/butil/strings/string_util.cc:379–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377
378template<typename Iter>
379static inline bool DoLowerCaseEqualsASCII(Iter a_begin,
380 Iter a_end,
381 const char* b) {
382 for (Iter it = a_begin; it != a_end; ++it, ++b) {
383 if (!*b || butil::ToLowerASCII(*it) != *b)
384 return false;
385 }
386 return *b == 0;
387}
388
389// Front-ends for LowerCaseEqualsASCII.
390bool LowerCaseEqualsASCII(const std::string& a, const char* b) {

Callers 1

LowerCaseEqualsASCIIFunction · 0.85

Calls 1

ToLowerASCIIFunction · 0.85

Tested by

no test coverage detected