MCPcopy Create free account
hub / github.com/AngusJohnson/Clipper2 / GetPaths

Function GetPaths

CPP/Utils/ClipFileLoad.cpp:45–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void GetPaths(ifstream& source, Paths64& paths)
46{
47 while (true)
48 {
49 string line;
50 stringstream::pos_type last_read_line_pos = source.tellg();
51 if (getline(source, line) && GetPath(line, paths))
52 continue;
53 last_read_line_pos -= 1; // workaround for LF vs LFCR (#764)
54 source.seekg(last_read_line_pos, ios_base::beg);
55 break;
56 }
57}
58
59bool LoadTestNum(ifstream &source, int test_num,
60 Paths64 &subj, Paths64 &subj_open, Paths64 &clip,

Callers 1

LoadTestNumFunction · 0.85

Calls 1

GetPathFunction · 0.85

Tested by

no test coverage detected