| 69 | } |
| 70 | |
| 71 | static bool readDouble(double &output, const char *&pathDef) { |
| 72 | skipExtraChars(pathDef); |
| 73 | char *end = NULL; |
| 74 | output = strtod(pathDef, &end); |
| 75 | if (end > pathDef) { |
| 76 | pathDef = end; |
| 77 | return true; |
| 78 | } |
| 79 | return false; |
| 80 | } |
| 81 | |
| 82 | static bool readCoord(Point2 &output, const char *&pathDef) { |
| 83 | return readDouble(output.x, pathDef) && readDouble(output.y, pathDef); |
no test coverage detected