MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / starts_with

Method starts_with

Bcore/src/main/cpp/base/stringpiece.h:131–134  ·  view source on GitHub ↗

Does "this" start with "x"

Source from the content-addressed store, hash-verified

129
130 // Does "this" start with "x"
131 bool starts_with(const StringPiece& x) const {
132 return ((length_ >= x.length_) &&
133 (memcmp(ptr_, x.ptr_, x.length_) == 0));
134 }
135
136 // Does "this" end with "x"
137 bool ends_with(const StringPiece& x) const {

Callers 1

operator==Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected