MCPcopy Create free account
hub / github.com/ReactiveX/RxCpp / load_data

Function load_data

Ix/CPP/samples/SampleCppLinq/SampleCppLinq.cpp:98–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98vector<string> load_data()
99{
100 ifstream datafile("data.txt");
101 vector<string> v;
102 string line;
103
104 if (datafile.fail())
105 throw logic_error("could not find file");
106
107 while(getline(datafile, line))
108 v.push_back(line);
109
110 return v;
111}
112
113regex key_value_pair("'([^\']*)'\\s*[:,]\\s*(\\d+(?:\\.\\d+)?|'[^']*')");
114

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected