| Index: src/string-stream.h
|
| diff --git a/src/string-stream.h b/src/string-stream.h
|
| index 9cff319c02030474f25f9eadba55114b304349f6..a8b9177536f708bb6ab4b8989d6013eefbbd1852 100644
|
| --- a/src/string-stream.h
|
| +++ b/src/string-stream.h
|
| @@ -74,16 +74,18 @@ class FmtElm {
|
| public:
|
| FmtElm(int value) : type_(INT) { data_.u_int_ = value; } // NOLINT
|
| FmtElm(const char* value) : type_(C_STR) { data_.u_c_str_ = value; } // NOLINT
|
| + FmtElm(const Vector<const uc16>& value) : type_(LC_STR) { data_.u_lc_str_ = &value; } // NOLINT
|
| FmtElm(Object* value) : type_(OBJ) { data_.u_obj_ = value; } // NOLINT
|
| FmtElm(Handle<Object> value) : type_(HANDLE) { data_.u_handle_ = value.location(); } // NOLINT
|
| FmtElm(void* value) : type_(INT) { data_.u_int_ = reinterpret_cast<int>(value); } // NOLINT
|
| private:
|
| friend class StringStream;
|
| - enum Type { INT, C_STR, OBJ, HANDLE };
|
| + enum Type { INT, C_STR, LC_STR, OBJ, HANDLE };
|
| Type type_;
|
| union {
|
| int u_int_;
|
| const char* u_c_str_;
|
| + const Vector<const uc16>* u_lc_str_;
|
| Object* u_obj_;
|
| Object** u_handle_;
|
| } data_;
|
| @@ -106,8 +108,9 @@ class StringStream {
|
| bool Put(char c);
|
| bool Put(String* str);
|
| bool Put(String* str, int start, int end);
|
| - void Add(const char* format, Vector<FmtElm> elms);
|
| + void Add(Vector<const char> format, Vector<FmtElm> elms);
|
| void Add(const char* format);
|
| + void Add(Vector<const char> format);
|
| void Add(const char* format, FmtElm arg0);
|
| void Add(const char* format, FmtElm arg0, FmtElm arg1);
|
| void Add(const char* format, FmtElm arg0, FmtElm arg1, FmtElm arg2);
|
|
|