Index: src/inspector/string-util.h |
diff --git a/src/inspector/string-util.h b/src/inspector/string-util.h |
index 1936c11d0061c75bdf4867c007d61bb28f015ece..f57ec244e4bcd732bc4de9bb7a7ea736a66834d1 100644 |
--- a/src/inspector/string-util.h |
+++ b/src/inspector/string-util.h |
@@ -32,6 +32,9 @@ class StringUtil { |
return String::fromInteger(number); |
} |
static String fromDouble(double number) { return String::fromDouble(number); } |
+ static size_t find(const String& s, const char* needle) { |
dgozman
2017/02/03 20:43:39
Let's also have |const String& needle| version.
Łukasz Anforowicz
2017/02/03 21:56:21
Done.
|
+ return s.find(needle); |
+ } |
static const size_t kNotFound = String::kNotFound; |
static void builderAppend(StringBuilder& builder, const String& s) { |
builder.append(s); |