| OLD | NEW |
| 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 size_t find(const String& str) const | 185 size_t find(const String& str) const |
| 186 { return m_impl ? m_impl->find(str.impl()) : kNotFound; } | 186 { return m_impl ? m_impl->find(str.impl()) : kNotFound; } |
| 187 size_t find(const String& str, unsigned start) const | 187 size_t find(const String& str, unsigned start) const |
| 188 { return m_impl ? m_impl->find(str.impl(), start) : kNotFound; } | 188 { return m_impl ? m_impl->find(str.impl(), start) : kNotFound; } |
| 189 | 189 |
| 190 size_t find(CharacterMatchFunctionPtr matchFunction, unsigned start = 0) con
st | 190 size_t find(CharacterMatchFunctionPtr matchFunction, unsigned start = 0) con
st |
| 191 { return m_impl ? m_impl->find(matchFunction, start) : kNotFound; } | 191 { return m_impl ? m_impl->find(matchFunction, start) : kNotFound; } |
| 192 size_t find(const LChar* str, unsigned start = 0) const | 192 size_t find(const LChar* str, unsigned start = 0) const |
| 193 { return m_impl ? m_impl->find(str, start) : kNotFound; } | 193 { return m_impl ? m_impl->find(str, start) : kNotFound; } |
| 194 | 194 |
| 195 size_t findNextLineStart(unsigned start = 0) const | |
| 196 { return m_impl ? m_impl->findNextLineStart(start) : kNotFound; } | |
| 197 | |
| 198 // Find the last instance of a single character or string. | 195 // Find the last instance of a single character or string. |
| 199 size_t reverseFind(UChar c, unsigned start = UINT_MAX) const | 196 size_t reverseFind(UChar c, unsigned start = UINT_MAX) const |
| 200 { return m_impl ? m_impl->reverseFind(c, start) : kNotFound; } | 197 { return m_impl ? m_impl->reverseFind(c, start) : kNotFound; } |
| 201 size_t reverseFind(const String& str, unsigned start = UINT_MAX) const | 198 size_t reverseFind(const String& str, unsigned start = UINT_MAX) const |
| 202 { return m_impl ? m_impl->reverseFind(str.impl(), start) : kNotFound; } | 199 { return m_impl ? m_impl->reverseFind(str.impl(), start) : kNotFound; } |
| 203 | 200 |
| 204 // Case insensitive string matching. | 201 // Case insensitive string matching. |
| 205 size_t findIgnoringCase(const LChar* str, unsigned start = 0) const | 202 size_t findIgnoringCase(const LChar* str, unsigned start = 0) const |
| 206 { return m_impl ? m_impl->findIgnoringCase(str, start) : kNotFound; } | 203 { return m_impl ? m_impl->findIgnoringCase(str, start) : kNotFound; } |
| 207 size_t findIgnoringCase(const String& str, unsigned start = 0) const | 204 size_t findIgnoringCase(const String& str, unsigned start = 0) const |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 662 using WTF::charactersAreAllASCII; | 659 using WTF::charactersAreAllASCII; |
| 663 using WTF::equal; | 660 using WTF::equal; |
| 664 using WTF::equalIgnoringCase; | 661 using WTF::equalIgnoringCase; |
| 665 using WTF::find; | 662 using WTF::find; |
| 666 using WTF::isAllSpecialCharacters; | 663 using WTF::isAllSpecialCharacters; |
| 667 using WTF::isSpaceOrNewline; | 664 using WTF::isSpaceOrNewline; |
| 668 using WTF::reverseFind; | 665 using WTF::reverseFind; |
| 669 | 666 |
| 670 #include "wtf/text/AtomicString.h" | 667 #include "wtf/text/AtomicString.h" |
| 671 #endif // WTFString_h | 668 #endif // WTFString_h |
| OLD | NEW |