MCPcopy Create free account
hub / github.com/chen3feng/toft / SplitStringByAnyOf

Function SplitStringByAnyOf

base/string/algorithm.cpp:268–276  ·  view source on GitHub ↗

Split a string using a character delimiter.

Source from the content-addressed store, hash-verified

266
267// Split a string using a character delimiter.
268void SplitStringByAnyOf(
269 const StringPiece& full,
270 const char* delim,
271 std::vector<std::string>* result)
272{
273 result->clear();
274 std::back_insert_iterator<std::vector<std::string> > it(*result);
275 SplitStringToIteratorUsing<std::string>(full, delim, it);
276}
277
278template <typename StringType, typename ITR>
279static inline

Callers 2

TESTFunction · 0.85
mime.cppFile · 0.85

Calls 1

clearMethod · 0.45

Tested by 1

TESTFunction · 0.68