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

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

Issue 1511813004: Refactor StringImpl::{start,end}sWith(StringImpl*, ...) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/WebKit/Source/wtf/text/StringImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8b15d0be8028046d7aaae197a7bf03ff18da41fe..889e3252d9cf86d005d1a3b2269015fbaa139005 100644
--- a/third_party/WebKit/Source/wtf/text/StringImpl.h
+++ b/third_party/WebKit/Source/wtf/text/StringImpl.h
@@ -383,13 +383,15 @@ public:
size_t count(LChar) const;
- bool startsWith(StringImpl* str, TextCaseSensitivity caseSensitivity = TextCaseSensitive) { return ((caseSensitivity == TextCaseSensitive) ? reverseFind(str, 0) : reverseFindIgnoringCase(str, 0)) == 0; }
bool startsWith(UChar) const;
bool startsWith(const char*, unsigned matchLength) const;
+ bool startsWith(const StringImpl*) const;
+ bool startsWithIgnoringCase(const StringImpl*) const;
- bool endsWith(StringImpl*, TextCaseSensitivity = TextCaseSensitive);
bool endsWith(UChar) const;
bool endsWith(const char*, unsigned matchLength) const;
+ bool endsWith(const StringImpl*) const;
+ bool endsWithIgnoringCase(const StringImpl*) const;
PassRefPtr<StringImpl> replace(UChar, UChar);
PassRefPtr<StringImpl> replace(UChar, StringImpl*);
« no previous file with comments | « no previous file | third_party/WebKit/Source/wtf/text/StringImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698