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

Function SplitStringToSet

base/string/algorithm.cpp:336–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334}
335
336void SplitStringToSet(const StringPiece& full,
337 const char* delim,
338 std::set<std::string>* result) {
339 result->clear();
340 std::insert_iterator<std::set<std::string> > it(*result, result->end());
341 SplitUsingStringDelimiterToIterator<std::string>(full, delim, it);
342}
343
344void SplitStringByDelimiter(const StringPiece& full,
345 const char* delim,

Callers 1

TestSplitStringFunction · 0.85

Calls 2

clearMethod · 0.45
endMethod · 0.45

Tested by 1

TestSplitStringFunction · 0.68