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

Function TrimString

be/src/gutil/strings/strip.h:230–232  ·  view source on GitHub ↗

---------------------------------------------------------------------- TrimString Removes any occurrences of the characters in 'remove' from either end of the string. ----------------------------------------------------------------------

Source from the content-addressed store, hash-verified

228// end of the string.
229// ----------------------------------------------------------------------
230inline int TrimString(string* s, const StringPiece& remove) {
231 return TrimStringRight(s, remove) + TrimStringLeft(s, remove);
232}
233
234// ----------------------------------------------------------------------
235// TrimRunsInString

Callers 1

SetQueryOptionMethod · 0.85

Calls 2

TrimStringRightFunction · 0.85
TrimStringLeftFunction · 0.85

Tested by

no test coverage detected