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

Unified Diff: third_party/WebKit/Source/wtf/text/StringImpl.h

Issue 2226363003: Use StringView for String::reverseFind. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
Index: third_party/WebKit/Source/wtf/text/StringImpl.h
diff --git a/third_party/WebKit/Source/wtf/text/StringImpl.h b/third_party/WebKit/Source/wtf/text/StringImpl.h
index 1311c0d9f20c317405474afb04a41d9a569ef716..30736e2e2fc1bcd33c5d600d5b75d61e7ebffb5a 100644
--- a/third_party/WebKit/Source/wtf/text/StringImpl.h
+++ b/third_party/WebKit/Source/wtf/text/StringImpl.h
@@ -378,7 +378,7 @@ public:
size_t findIgnoringASCIICase(const StringView&, unsigned index = 0);
size_t reverseFind(UChar, unsigned index = UINT_MAX);
- size_t reverseFind(StringImpl*, unsigned index = UINT_MAX);
+ size_t reverseFind(const StringView&, unsigned index = UINT_MAX);
bool startsWith(UChar) const;
bool startsWith(const StringView&) const;
@@ -716,5 +716,6 @@ using WTF::TextCaseSensitivity;
using WTF::equal;
using WTF::equalNonNull;
using WTF::lengthOfNullTerminatedString;
+using WTF::reverseFind;
#endif
« no previous file with comments | « third_party/WebKit/Source/wtf/text/AtomicString.h ('k') | third_party/WebKit/Source/wtf/text/StringImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698