| 34 | } |
| 35 | |
| 36 | int readCoordS(const char **input, Point2 &coord) { |
| 37 | char *end = NULL; |
| 38 | coord.x = strtod(*input, &end); |
| 39 | if (end <= *input) |
| 40 | return 0; |
| 41 | *input = end; |
| 42 | while (**input == ' ' || **input == '\t' || **input == '\n' || **input == '\r') |
| 43 | ++*input; |
| 44 | if (**input != ',') |
| 45 | return 1; |
| 46 | ++*input; |
| 47 | coord.y = strtod(*input, &end); |
| 48 | if (end <= *input) |
| 49 | return 1; |
| 50 | *input = end; |
| 51 | return 2; |
| 52 | } |
| 53 | |
| 54 | bool matchStringS(const char **input, const char *str) { |
| 55 | const char *cur = *input; |
no outgoing calls
no test coverage detected