MCPcopy Create free account
hub / github.com/Niko1221/Strata / split

Function split

engine/src/kernels/cpu/cpu_dispatch_dump.cpp:39–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39std::vector<std::string> split(const std::string& s) {
40 std::vector<std::string> v;
41 size_t from = 0;
42 for (;;) {
43 const size_t c = s.find(',', from);
44 v.push_back(s.substr(from, c == std::string::npos ? std::string::npos : c - from));
45 if (c == std::string::npos) break;
46 from = c + 1;
47 }
48 return v;
49}
50
51uint64_t fnv(uint64_t h, const void* p, size_t n) {
52 const uint8_t* b = (const uint8_t*) p;

Callers 1

mainFunction · 0.70

Calls 2

push_backMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected