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

Function SplitStringAllowEmpty

be/src/gutil/strings/split.cc:331–334  ·  view source on GitHub ↗

---------------------------------------------------------------------- SplitStringAllowEmpty Split a string using a character delimiter. Append the components to 'result'. If there are consecutive delimiters, this function will return corresponding empty strings. ----------------------------------------------------------------------

Source from the content-addressed store, hash-verified

329// will return corresponding empty strings.
330// ----------------------------------------------------------------------
331void SplitStringAllowEmpty(const string& full, const char* delim,
332 vector<string>* result) {
333 AppendTo(result, strings::Split(full, AnyOf(delim)));
334}
335
336// If we know how much to allocate for a vector of strings, we can
337// allocate the vector<string> only once and directly to the right size.

Callers 1

DictionaryParseFunction · 0.85

Calls 3

AppendToFunction · 0.85
SplitFunction · 0.85
AnyOfClass · 0.85

Tested by

no test coverage detected