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

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

Issue 1507763003: Drop TextCaseSensitivity from {start,end}sWith(const char*, ...) (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 | « third_party/WebKit/Source/wtf/text/StringImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/text/WTFString.h
diff --git a/third_party/WebKit/Source/wtf/text/WTFString.h b/third_party/WebKit/Source/wtf/text/WTFString.h
index f8e95c982f5226430a6b7a54da67615fb7757b0b..aff113819f4b8f4b0e8ca4d80b9d6435dcc0451f 100644
--- a/third_party/WebKit/Source/wtf/text/WTFString.h
+++ b/third_party/WebKit/Source/wtf/text/WTFString.h
@@ -265,16 +265,16 @@ public:
bool startsWith(UChar character) const
{ return m_impl ? m_impl->startsWith(character) : false; }
template<unsigned matchLength>
- bool startsWith(const char (&prefix)[matchLength], TextCaseSensitivity caseSensitivity = TextCaseSensitive) const
- { return m_impl ? m_impl->startsWith<matchLength>(prefix, caseSensitivity) : !matchLength; }
+ bool startsWith(const char (&prefix)[matchLength]) const
+ { return m_impl ? m_impl->startsWith(prefix, matchLength - 1) : !matchLength; }
bool endsWith(const String& s, TextCaseSensitivity caseSensitivity = TextCaseSensitive) const
{ return m_impl ? m_impl->endsWith(s.impl(), caseSensitivity) : s.isEmpty(); }
bool endsWith(UChar character) const
{ return m_impl ? m_impl->endsWith(character) : false; }
template<unsigned matchLength>
- bool endsWith(const char (&prefix)[matchLength], TextCaseSensitivity caseSensitivity = TextCaseSensitive) const
- { return m_impl ? m_impl->endsWith<matchLength>(prefix, caseSensitivity) : !matchLength; }
+ bool endsWith(const char (&prefix)[matchLength]) const
+ { return m_impl ? m_impl->endsWith(prefix, matchLength - 1) : !matchLength; }
void append(const String&);
void append(LChar);
« no previous file with comments | « third_party/WebKit/Source/wtf/text/StringImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698