MCPcopy Create free account
hub / github.com/NLPOptimize/flash-tokenizer / parseNumbersFromString

Function parseNumbersFromString

main.cpp:35–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35std::vector<int> parseNumbersFromString(const std::string &input) {
36 std::vector<int> numbers;
37 std::stringstream ss(input);
38 char c;
39 ss >> c;
40 int num;
41 while (ss >> num) {
42 numbers.push_back(num);
43 ss >> c;
44 if (c == ']') break;
45 }
46 return numbers;
47}
48
49std::vector<std::string> load_titles() {
50 std::fstream fin("../res/titles_404464.txt", std::ios::in);

Callers 1

load_gtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected