MCPcopy Create free account
hub / github.com/activeloopai/deeplake / readlines

Function readlines

cpp/3rd_party/sql-parser/test/auto_query_file_test.cpp:82–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82std::vector<std::string> readlines(std::string path) {
83 std::ifstream infile(path);
84 std::vector<std::string> lines;
85 std::string line;
86 while (std::getline(infile, line)) {
87 std::istringstream iss(line);
88
89 // Skip comments.
90 if (line[0] == '#' || (line[0] == '-' && line[1] == '-')) {
91 continue;
92 }
93
94 lines.push_back(line);
95 }
96 return lines;
97}

Callers 1

TESTFunction · 0.85

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected