---------------------------------------------------------------------- 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. ----------------------------------------------------------------------
| 329 | // will return corresponding empty strings. |
| 330 | // ---------------------------------------------------------------------- |
| 331 | void 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. |
no test coverage detected