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

Unified Diff: runtime/platform/json.h

Issue 192443004: Complete the switch to ServiceObject (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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
Index: runtime/platform/json.h
diff --git a/runtime/platform/json.h b/runtime/platform/json.h
index 36c7d5d123b3f1812a416efd409d4438d0590969..f1b6feaa3f7eb8d295504d3077cc45e415a2ace1 100644
--- a/runtime/platform/json.h
+++ b/runtime/platform/json.h
@@ -130,6 +130,7 @@ class TextBuffer : ValueObject {
void AddEscapedChar(uint32_t ch);
void AddString(const char* s);
void AddEscapedString(const char* s);
+ void AddEscapedUTF8String(const char* s);
void Clear();
@@ -141,6 +142,8 @@ class TextBuffer : ValueObject {
const char* Steal();
private:
+ static uint32_t Utf8Decode(const uint8_t* s, intptr_t s_len, uint32_t* ch);
+
void EnsureCapacity(intptr_t len);
char* buf_;
intptr_t buf_size_;

Powered by Google App Engine
This is Rietveld 408576698