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

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

Issue 2675763003: Adapt String::find method via StringUtil adapter. [v8 repo] (Closed)
Patch Set: Rebasing... Created 3 years, 11 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..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);
« 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