| Index: src/inspector/string-util.h
|
| diff --git a/src/inspector/string-util.h b/src/inspector/string-util.h
|
| index c484aab2edf6326a44953d02d32de26149ae7523..100ec9d63c0e752b3a35fb3c0b344424ba579cf4 100644
|
| --- a/src/inspector/string-util.h
|
| +++ b/src/inspector/string-util.h
|
| @@ -33,9 +33,21 @@ class StringUtil {
|
| }
|
| static String fromDouble(double number) { return String::fromDouble(number); }
|
| static const size_t kNotFound = String::kNotFound;
|
| + static void builderAppend(StringBuilder& builder, const String& s) {
|
| + builder.append(s);
|
| + }
|
| + static void builderAppend(StringBuilder& builder, char c) {
|
| + builder.append(c);
|
| + }
|
| + static void builderAppend(StringBuilder& builder, const char* s, size_t len) {
|
| + builder.append(s, len);
|
| + }
|
| static void builderReserve(StringBuilder& builder, size_t capacity) {
|
| builder.reserveCapacity(capacity);
|
| }
|
| + static String builderToString(StringBuilder& builder) {
|
| + return builder.toString();
|
| + }
|
| static std::unique_ptr<protocol::Value> parseJSON(const String16& json);
|
| static std::unique_ptr<protocol::Value> parseJSON(const StringView& json);
|
| };
|
|
|