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

Unified Diff: src/inspector/string-util.h

Issue 2675763003: Adapt String::find method via StringUtil adapter. [v8 repo] (Closed)
Patch Set: Update revision hash for inspector_protocol repo. Created 3 years, 10 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
« no previous file with comments | « no previous file | third_party/inspector_protocol/README.v8 » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/inspector/string-util.h
diff --git a/src/inspector/string-util.h b/src/inspector/string-util.h
index 1936c11d0061c75bdf4867c007d61bb28f015ece..6f0e3d5ff50a34260674dacdd607b7eec88b3313 100644
--- a/src/inspector/string-util.h
+++ b/src/inspector/string-util.h
@@ -32,6 +32,12 @@ 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) {
+ return s.find(needle);
+ }
+ static size_t find(const String& s, const String& needle) {
+ return s.find(needle);
+ }
static const size_t kNotFound = String::kNotFound;
static void builderAppend(StringBuilder& builder, const String& s) {
builder.append(s);
« no previous file with comments | « no previous file | third_party/inspector_protocol/README.v8 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698