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

Unified Diff: runtime/platform/json.h

Issue 558853004: Preserve the contents of Dart strings with unmatched surrogate halfs by avoiding a UTF16 -> UTF8 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: sync and build Created 6 years, 3 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/vmservice/observatory/tests/ui/inspector.dart ('k') | runtime/platform/json.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/json.h
diff --git a/runtime/platform/json.h b/runtime/platform/json.h
index 36c7d5d123b3f1812a416efd409d4438d0590969..35e975f05a891cc0930c5579d3c50ac0b80a4185 100644
--- a/runtime/platform/json.h
+++ b/runtime/platform/json.h
@@ -126,8 +126,7 @@ class TextBuffer : ValueObject {
intptr_t Printf(const char* format, ...) PRINTF_ATTRIBUTE(2, 3);
void AddChar(char ch);
- void AddUTF8(uint32_t ch);
- void AddEscapedChar(uint32_t ch);
+ void EscapeAndAddCodeUnit(uint32_t cu);
void AddString(const char* s);
void AddEscapedString(const char* s);
« no previous file with comments | « runtime/bin/vmservice/observatory/tests/ui/inspector.dart ('k') | runtime/platform/json.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698