MCPcopy Create free account
hub / github.com/bbuchfink/diamond / parse_csv

Function parse_csv

src/util/string/string.cpp:137–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137set<int32_t> parse_csv(const string& s)
138{
139 set<int32_t> r;
140 vector<string> t(tokenize(s.c_str(), ","));
141 for (vector<string>::const_iterator i = t.begin(); i != t.end(); ++i)
142 if (!i->empty()) r.insert(atoi(i->c_str()));
143 return r;
144}
145
146template<>
147int64_t convert_string<int64_t>(const char* s) {

Callers

nothing calls this directly

Calls 5

tokenizeFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected