1 #ifndef LIBJSON_GUARD_PREPARSE_H
2 #define LIBJSON_GUARD_PREPARSE_H
7 #if (defined(JSON_PREPARSE) && defined(JSON_READ_PRIORITY))
10 #define COMMENT_PARAM(name) ,const json_string & name
12 #define COMMENT_PARAM(name)
17 static JSONNode isValidNumber(json_string::const_iterator & ptr, json_string::const_iterator & end) json_read_priority;
18 static JSONNode isValidMember(json_string::const_iterator & ptr, json_string::const_iterator & end) json_read_priority;
19 static json_string isValidString(json_string::const_iterator & ptr, json_string::const_iterator & end) json_read_priority;
20 static void isValidNamedObject(json_string::const_iterator & ptr, json_string::const_iterator & end, JSONNode & parent COMMENT_PARAM(comment)) json_read_priority;
21 static JSONNode isValidObject(json_string::const_iterator & ptr, json_string::const_iterator & end) json_read_priority;
22 static JSONNode isValidArray(json_string::const_iterator & ptr, json_string::const_iterator & end) json_read_priority;
23 static JSONNode isValidRoot(const json_string & json) json_throws(
std::invalid_argument) json_read_priority;