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

Function RemoveNullsInString

be/src/gutil/strings/strip.cc:382–384  ·  view source on GitHub ↗

---------------------------------------------------------------------- RemoveNullsInString Removes any internal \0 characters from the string. ----------------------------------------------------------------------

Source from the content-addressed store, hash-verified

380// Removes any internal \0 characters from the string.
381// ----------------------------------------------------------------------
382void RemoveNullsInString(string* s) {
383 s->erase(remove(s->begin(), s->end(), '\0'), s->end());
384}

Callers

nothing calls this directly

Calls 4

removeFunction · 0.85
eraseMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected