MCPcopy Create free account
hub / github.com/1401199262/MemoryVirtualization / _split

Function _split

globals.cpp:3–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "globals.h"
2
3static void _split(const std::string& s, char delim,
4 std::vector<std::string>& elems) {
5 std::stringstream ss(s);
6 std::string item;
7
8 while (std::getline(ss, item, delim)) {
9 elems.push_back(item);
10 }
11}
12
13std::vector<std::string> split(const std::string& s, char delim) {
14 std::vector<std::string> elems;

Callers 1

splitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected