Home
last modified time | relevance | path

Searched refs:JSONReader (Results 1 – 9 of 9) sorted by relevance

/third_party/gn/src/base/json/
Djson_reader.cc18 const int JSONReader::kStackMaxDepth = 200;
21 static_assert(JSONReader::JSON_PARSE_ERROR_COUNT < 1000,
24 const char JSONReader::kInvalidEscape[] = "Invalid escape sequence.";
25 const char JSONReader::kSyntaxError[] = "Syntax error.";
26 const char JSONReader::kUnexpectedToken[] = "Unexpected token.";
27 const char JSONReader::kTrailingComma[] = "Trailing comma not allowed.";
28 const char JSONReader::kTooMuchNesting[] = "Too much nesting.";
29 const char JSONReader::kUnexpectedDataAfterRoot[] =
31 const char JSONReader::kUnsupportedEncoding[] =
33 const char JSONReader::kUnquotedDictionaryKey[] =
[all …]
Djson_parser.cc63 error_code_(JSONReader::JSON_NO_ERROR), in JSONParser()
66 CHECK_LE(max_depth, JSONReader::kStackMaxDepth); in JSONParser()
77 error_code_ = JSONReader::JSON_NO_ERROR; in Parse()
84 ReportError(JSONReader::JSON_TOO_LARGE, 0); in Parse()
100 ReportError(JSONReader::JSON_UNEXPECTED_DATA_AFTER_ROOT, 1); in Parse()
107 JSONReader::JsonParseError JSONParser::error_code() const { in error_code()
113 JSONReader::ErrorCodeToString(error_code_)); in GetErrorMessage()
321 ReportError(JSONReader::JSON_UNEXPECTED_TOKEN, 1); in ParseToken()
328 ReportError(JSONReader::JSON_UNEXPECTED_TOKEN, 1); in ConsumeDictionary()
334 ReportError(JSONReader::JSON_TOO_MUCH_NESTING, 0); in ConsumeDictionary()
[all …]
Djson_reader.h57 class JSONReader {
88 JSONReader(int options = JSON_PARSE_RFC, int max_depth = kStackMaxDepth);
90 ~JSONReader();
Djson_parser.h44 JSONParser(int options, int max_depth = JSONReader::kStackMaxDepth);
54 JSONReader::JsonParseError error_code() const;
205 void ReportError(JSONReader::JsonParseError code, int column_adjust);
235 JSONReader::JsonParseError error_code_;
/third_party/cef/libcef/common/
Djson_impl.cc45 absl::optional<base::Value> parse_result = base::JSONReader::Read( in CefParseJSON()
63 base::JSONReader::ValueWithError value_and_error = in CefParseJSONAndReturnError()
64 base::JSONReader::ReadAndReturnValueWithError( in CefParseJSONAndReturnError()
/third_party/gn/src/gn/
Dinput_conversion.cc188 std::unique_ptr<base::Value> value = base::JSONReader::ReadAndReturnError( in ParseJSON()
Danalyzer.cc126 std::unique_ptr<base::Value> value = base::JSONReader::ReadAndReturnError( in JSONToInputs()
Dcommand_format.cc1239 base::JSONReader reader; in FormatJsonToString()
/third_party/node/tools/inspector_protocol/lib/
Dbase_string_adapter_cc.template139 std::unique_ptr<base::Value> value = base::JSONReader::ReadDeprecated(message);