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); |