Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: base/json/json_parser.h

Issue 2475583002: Adds option for JSON reader to allow invalid utf characters (Closed)
Patch Set: comment Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/json/json_file_value_serializer.cc ('k') | base/json/json_parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_JSON_JSON_PARSER_H_ 5 #ifndef BASE_JSON_JSON_PARSER_H_
6 #define BASE_JSON_JSON_PARSER_H_ 6 #define BASE_JSON_JSON_PARSER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 int error_column_; 250 int error_column_;
251 251
252 friend class JSONParserTest; 252 friend class JSONParserTest;
253 FRIEND_TEST_ALL_PREFIXES(JSONParserTest, NextChar); 253 FRIEND_TEST_ALL_PREFIXES(JSONParserTest, NextChar);
254 FRIEND_TEST_ALL_PREFIXES(JSONParserTest, ConsumeDictionary); 254 FRIEND_TEST_ALL_PREFIXES(JSONParserTest, ConsumeDictionary);
255 FRIEND_TEST_ALL_PREFIXES(JSONParserTest, ConsumeList); 255 FRIEND_TEST_ALL_PREFIXES(JSONParserTest, ConsumeList);
256 FRIEND_TEST_ALL_PREFIXES(JSONParserTest, ConsumeString); 256 FRIEND_TEST_ALL_PREFIXES(JSONParserTest, ConsumeString);
257 FRIEND_TEST_ALL_PREFIXES(JSONParserTest, ConsumeLiterals); 257 FRIEND_TEST_ALL_PREFIXES(JSONParserTest, ConsumeLiterals);
258 FRIEND_TEST_ALL_PREFIXES(JSONParserTest, ConsumeNumbers); 258 FRIEND_TEST_ALL_PREFIXES(JSONParserTest, ConsumeNumbers);
259 FRIEND_TEST_ALL_PREFIXES(JSONParserTest, ErrorMessages); 259 FRIEND_TEST_ALL_PREFIXES(JSONParserTest, ErrorMessages);
260 FRIEND_TEST_ALL_PREFIXES(JSONParserTest, ReplaceInvalidCharacters);
260 261
261 DISALLOW_COPY_AND_ASSIGN(JSONParser); 262 DISALLOW_COPY_AND_ASSIGN(JSONParser);
262 }; 263 };
263 264
265 // Used when decoding and an invalid utf-8 sequence is encountered.
266 BASE_EXPORT extern const char kUnicodeReplacementString[];
267
264 } // namespace internal 268 } // namespace internal
265 } // namespace base 269 } // namespace base
266 270
267 #endif // BASE_JSON_JSON_PARSER_H_ 271 #endif // BASE_JSON_JSON_PARSER_H_
OLDNEW
« no previous file with comments | « base/json/json_file_value_serializer.cc ('k') | base/json/json_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698