MCPcopy Create free account
hub / github.com/apache/impala / starts_with

Method starts_with

be/src/gutil/strings/stringpiece.h:245–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243 void AppendToString(std::string* target) const;
244
245 bool starts_with(StringPiece x) const {
246 return (length_ >= x.length_) && (memcmp(ptr_, x.ptr_, x.length_) == 0);
247 }
248
249 bool ends_with(StringPiece x) const {
250 return ((length_ >= x.length_) &&

Callers 10

ValidateConnHeaderFunction · 0.80
StripPrefixStringFunction · 0.80
TryStripPrefixStringFunction · 0.80
HasPrefixStringFunction · 0.80
UpdateMetricsMethod · 0.80
ReadProcStatStringMethod · 0.80
ReadProcNetDevLineMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected