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

Function SplitStringPieceToVector

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

---------------------------------------------------------------------- SplitStringPieceToVector() Split a StringPiece into sub-StringPieces based on delim and appends the pieces to 'vec'. If omit empty strings is true, empty strings are omitted from the resulting vector. ----------------------------------------------------------------------

Source from the content-addressed store, hash-verified

450// from the resulting vector.
451// ----------------------------------------------------------------------
452void SplitStringPieceToVector(const StringPiece& full,
453 const char* delim,
454 vector<StringPiece>* vec,
455 bool omit_empty_strings) {
456 if (omit_empty_strings) {
457 AppendTo(vec, strings::Split(full, AnyOf(delim), SkipEmpty()));
458 } else {
459 AppendTo(vec, strings::Split(full, AnyOf(delim)));
460 }
461}
462
463// ----------------------------------------------------------------------
464// SplitUsing()

Callers

nothing calls this directly

Calls 4

AppendToFunction · 0.85
SplitFunction · 0.85
AnyOfClass · 0.85
SkipEmptyClass · 0.85

Tested by

no test coverage detected