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

Function skip_string

src/core/json/sjson.cpp:75–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 ++json
74
75 static const char *skip_string(const char *json)
76 {
77 if (json == NULL) {
78 fatal("json is NULL");
79 return NULL;
80 }
81
82 while (*++json) {
83 if (*json == '"') {
84 ++json;
85 return json;
86 } else if (*json == '\\') {
87 ++json;
88 }
89 }
90
91 fatal("Bad string");
92 return NULL;
93 }
94
95 static const char *skip_comments(const char *json)
96 {

Callers 1

skip_valueFunction · 0.70

Calls 1

fatalFunction · 0.70

Tested by

no test coverage detected