Merge pull request #56 from Dushistov/json_parser_anonymous
make JsonParser invisible from outsidemutable-v2
commit
a1409a9a1a
|
@ -326,11 +326,12 @@ static inline bool in_range(long x, long lower, long upper) {
|
||||||
return (x >= lower && x <= upper);
|
return (x >= lower && x <= upper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace {
|
||||||
/* JsonParser
|
/* JsonParser
|
||||||
*
|
*
|
||||||
* Object that tracks all state of an in-progress parse.
|
* Object that tracks all state of an in-progress parse.
|
||||||
*/
|
*/
|
||||||
struct JsonParser {
|
struct JsonParser final {
|
||||||
|
|
||||||
/* State
|
/* State
|
||||||
*/
|
*/
|
||||||
|
@ -718,6 +719,7 @@ struct JsonParser {
|
||||||
return fail("expected value, got " + esc(ch));
|
return fail("expected value, got " + esc(ch));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
}//namespace {
|
||||||
|
|
||||||
Json Json::parse(const string &in, string &err, JsonParse strategy) {
|
Json Json::parse(const string &in, string &err, JsonParse strategy) {
|
||||||
JsonParser parser { in, 0, err, false, strategy };
|
JsonParser parser { in, 0, err, false, strategy };
|
||||||
|
|
Loading…
Reference in New Issue