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

Side by Side Diff: third_party/WebKit/Source/wtf/text/WTFString.h

Issue 1508423004: Remove String::reverseFindIgnoringCase (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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/wtf/text/StringImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * (C) 1999 Lars Knoll (knoll@kde.org) 2 * (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 size_t reverseFind(UChar c, unsigned start = UINT_MAX) const 228 size_t reverseFind(UChar c, unsigned start = UINT_MAX) const
229 { return m_impl ? m_impl->reverseFind(c, start) : kNotFound; } 229 { return m_impl ? m_impl->reverseFind(c, start) : kNotFound; }
230 size_t reverseFind(const String& str, unsigned start = UINT_MAX) const 230 size_t reverseFind(const String& str, unsigned start = UINT_MAX) const
231 { return m_impl ? m_impl->reverseFind(str.impl(), start) : kNotFound; } 231 { return m_impl ? m_impl->reverseFind(str.impl(), start) : kNotFound; }
232 232
233 // Case insensitive string matching. 233 // Case insensitive string matching.
234 size_t findIgnoringCase(const LChar* str, unsigned start = 0) const 234 size_t findIgnoringCase(const LChar* str, unsigned start = 0) const
235 { return m_impl ? m_impl->findIgnoringCase(str, start) : kNotFound; } 235 { return m_impl ? m_impl->findIgnoringCase(str, start) : kNotFound; }
236 size_t findIgnoringCase(const String& str, unsigned start = 0) const 236 size_t findIgnoringCase(const String& str, unsigned start = 0) const
237 { return m_impl ? m_impl->findIgnoringCase(str.impl(), start) : kNotFoun d; } 237 { return m_impl ? m_impl->findIgnoringCase(str.impl(), start) : kNotFoun d; }
238 size_t reverseFindIgnoringCase(const String& str, unsigned start = UINT_MAX) const
239 { return m_impl ? m_impl->reverseFindIgnoringCase(str.impl(), start) : k NotFound; }
240 238
241 // Wrappers for find & reverseFind adding dynamic sensitivity check. 239 // Wrappers for find adding dynamic sensitivity check.
242 size_t find(const LChar* str, unsigned start, TextCaseSensitivity caseSensit ivity) const 240 size_t find(const LChar* str, unsigned start, TextCaseSensitivity caseSensit ivity) const
243 { return DISPATCH_CASE_OP(caseSensitivity, find, (str, start)); } 241 { return DISPATCH_CASE_OP(caseSensitivity, find, (str, start)); }
244 size_t find(const String& str, unsigned start, TextCaseSensitivity caseSensi tivity) const 242 size_t find(const String& str, unsigned start, TextCaseSensitivity caseSensi tivity) const
245 { return DISPATCH_CASE_OP(caseSensitivity, find, (str, start)); } 243 { return DISPATCH_CASE_OP(caseSensitivity, find, (str, start)); }
246 size_t reverseFind(const String& str, unsigned start, TextCaseSensitivity ca seSensitivity) const
247 { return (caseSensitivity == TextCaseSensitive) ? reverseFind(str, start ) : reverseFindIgnoringCase(str, start); }
248 244
249 Vector<UChar> charactersWithNullTermination() const; 245 Vector<UChar> charactersWithNullTermination() const;
250 unsigned copyTo(UChar* buffer, unsigned pos, unsigned maxLength) const; 246 unsigned copyTo(UChar* buffer, unsigned pos, unsigned maxLength) const;
251 247
252 template<size_t inlineCapacity> 248 template<size_t inlineCapacity>
253 void appendTo(Vector<UChar, inlineCapacity>&, unsigned pos = 0, unsigned len = UINT_MAX) const; 249 void appendTo(Vector<UChar, inlineCapacity>&, unsigned pos = 0, unsigned len = UINT_MAX) const;
254 250
255 template<typename BufferType> 251 template<typename BufferType>
256 void appendTo(BufferType&, unsigned pos = 0, unsigned len = UINT_MAX) const; 252 void appendTo(BufferType&, unsigned pos = 0, unsigned len = UINT_MAX) const;
257 253
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 using WTF::charactersToFloat; 695 using WTF::charactersToFloat;
700 using WTF::equal; 696 using WTF::equal;
701 using WTF::equalIgnoringCase; 697 using WTF::equalIgnoringCase;
702 using WTF::find; 698 using WTF::find;
703 using WTF::isAllSpecialCharacters; 699 using WTF::isAllSpecialCharacters;
704 using WTF::isSpaceOrNewline; 700 using WTF::isSpaceOrNewline;
705 using WTF::reverseFind; 701 using WTF::reverseFind;
706 702
707 #include "wtf/text/AtomicString.h" 703 #include "wtf/text/AtomicString.h"
708 #endif // WTFString_h 704 #endif // WTFString_h
OLDNEW
« 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