MCPcopy Create free account
hub / github.com/MyGUI/mygui / readCoordS

Function readCoordS

MyGUIEngine/src/msdfgen/core/shape-description.cpp:36–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36int 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
54bool matchStringS(const char **input, const char *str) {
55 const char *cur = *input;

Callers 1

readShapeDescriptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected