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

Function EqualsASCII

src/butil/strings/string_util.cc:426–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424#endif // !defined(OS_ANDROID)
425
426bool EqualsASCII(const string16& a, const butil::StringPiece& b) {
427 if (a.length() != b.length())
428 return false;
429 return std::equal(b.begin(), b.end(), a.begin());
430}
431
432bool StartsWithASCII(const std::string& str,
433 const std::string& search,

Callers

nothing calls this directly

Calls 3

lengthMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected