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

Method ends_with

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

Source from the content-addressed store, hash-verified

247 }
248
249 bool ends_with(StringPiece x) const {
250 return ((length_ >= x.length_) &&
251 (memcmp(ptr_ + (length_-x.length_), x.ptr_, x.length_) == 0));
252 }
253
254 // standard STL container boilerplate
255 typedef char value_type;

Callers 3

StripSuffixStringFunction · 0.80
TryStripSuffixStringFunction · 0.80
HasSuffixStringFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected