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

Function GetPath

CPP/Utils/ClipFileLoad.cpp:33–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33bool GetPath(const string& line, Paths64& paths)
34{
35 Path64 p;
36 int64_t x = 0, y = 0;
37 string::const_iterator s_it = line.cbegin(), s_end = line.cend();
38 while (GetInt(s_it, s_end, x) && GetInt(s_it, s_end, y))
39 p.push_back(Point64(x, y));
40 if (p.empty()) return false;
41 paths.push_back(p);
42 return true;
43}
44
45void GetPaths(ifstream& source, Paths64& paths)
46{

Callers 4

ExecuteMethod · 0.85
ExecuteMethod · 0.85
GetPathsFunction · 0.85
ExecuteMethod · 0.85

Calls 2

Point64Class · 0.85
GetIntFunction · 0.70

Tested by

no test coverage detected