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

Method remove_suffix

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

Source from the content-addressed store, hash-verified

211 }
212
213 void remove_suffix(int n) {
214 assert(length_ >= n);
215 length_ -= n;
216 }
217
218 // returns {-1, 0, 1}
219 int compare(StringPiece x) const {

Callers 5

StripSuffixStringFunction · 0.80
TryStripSuffixStringFunction · 0.80
TrimWhiteSpaceFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected