MCPcopy Create free account
hub / github.com/crownengine/crown / skip_spaces

Function skip_spaces

src/core/json/sjson.cpp:123–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121 }
122
123 static const char *skip_spaces(const char *json)
124 {
125 if (json == NULL) {
126 fatal("json is NULL");
127 return NULL;
128 }
129
130 while (*json) {
131 if (*json == '/') {
132 json = skip_comments(json);
133 if (json == NULL)
134 return NULL;
135 } else if (isspace(*json) || *json == ',') {
136 ++json;
137 } else {
138 break;
139 }
140 }
141
142 return json;
143 }
144
145 static const char *skip_value(const char *json)
146 {

Callers 10

parse_arrayFunction · 0.85
parse_objectFunction · 0.85
parse_arrayFunction · 0.85
parse_root_objectFunction · 0.85
parse_objectFunction · 0.85
parseFunction · 0.85
parse_uniform_declMethod · 0.85
skip_blanksFunction · 0.85

Calls 2

skip_commentsFunction · 0.85
fatalFunction · 0.70

Tested by

no test coverage detected