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

Unified Diff: runtime/platform/json.h

Issue 10801002: Add multibyte string support to debugger (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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
===================================================================
--- runtime/platform/json.h (revision 9748)
+++ runtime/platform/json.h (working copy)
@@ -117,7 +117,9 @@
~TextBuffer();
intptr_t Printf(const char* format, ...);
- void PrintJsonString8(const uint8_t* codepoints, intptr_t length);
+ void AddChar(char ch);
+ void AddUTF8(uint32_t ch);
+ void AddEscapedChar(uint32_t ch);
void Clear();
@@ -125,7 +127,7 @@
intptr_t length() { return msg_len_; }
private:
- void GrowBuffer(intptr_t len);
+ void EnsureCapacity(intptr_t len);
char* buf_;
intptr_t buf_size_;
intptr_t msg_len_;

Powered by Google App Engine
This is Rietveld 408576698