| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 size_t find(const StringView& value, unsigned start = 0, TextCaseSensitivity
caseSensitivity = TextCaseSensitive) const | 182 size_t find(const StringView& value, unsigned start = 0, TextCaseSensitivity
caseSensitivity = TextCaseSensitive) const |
| 183 { return m_impl ? DISPATCH_CASE_OP(caseSensitivity, m_impl->find, (value
, start)) : kNotFound; } | 183 { return m_impl ? DISPATCH_CASE_OP(caseSensitivity, m_impl->find, (value
, start)) : kNotFound; } |
| 184 | 184 |
| 185 bool contains(char c) const { return find(c) != kNotFound; } | 185 bool contains(char c) const { return find(c) != kNotFound; } |
| 186 bool contains(const StringView& value, TextCaseSensitivity caseSensitivity =
TextCaseSensitive) const | 186 bool contains(const StringView& value, TextCaseSensitivity caseSensitivity =
TextCaseSensitive) const |
| 187 { return find(value, 0, caseSensitivity) != kNotFound; } | 187 { return find(value, 0, caseSensitivity) != kNotFound; } |
| 188 | 188 |
| 189 // Find the last instance of a single character or string. | 189 // Find the last instance of a single character or string. |
| 190 size_t reverseFind(UChar c, unsigned start = UINT_MAX) const | 190 size_t reverseFind(UChar c, unsigned start = UINT_MAX) const |
| 191 { return m_impl ? m_impl->reverseFind(c, start) : kNotFound; } | 191 { return m_impl ? m_impl->reverseFind(c, start) : kNotFound; } |
| 192 size_t reverseFind(const String& str, unsigned start = UINT_MAX) const | 192 size_t reverseFind(const StringView& value, unsigned start = UINT_MAX) const |
| 193 { return m_impl ? m_impl->reverseFind(str.impl(), start) : kNotFound; } | 193 { return m_impl ? m_impl->reverseFind(value, start) : kNotFound; } |
| 194 | 194 |
| 195 // Case insensitive string matching. | 195 // Case insensitive string matching. |
| 196 size_t findIgnoringCase(const LChar* str, unsigned start = 0) const | 196 size_t findIgnoringCase(const LChar* str, unsigned start = 0) const |
| 197 { return m_impl ? m_impl->findIgnoringCase(str, start) : kNotFound; } | 197 { return m_impl ? m_impl->findIgnoringCase(str, start) : kNotFound; } |
| 198 size_t findIgnoringCase(const String& str, unsigned start = 0) const | 198 size_t findIgnoringCase(const String& str, unsigned start = 0) const |
| 199 { return m_impl ? m_impl->findIgnoringCase(str.impl(), start) : kNotFoun
d; } | 199 { return m_impl ? m_impl->findIgnoringCase(str.impl(), start) : kNotFoun
d; } |
| 200 | 200 |
| 201 // ASCII case insensitive string matching. | 201 // ASCII case insensitive string matching. |
| 202 size_t findIgnoringASCIICase(const String& str, unsigned start = 0) const | 202 size_t findIgnoringASCIICase(const String& str, unsigned start = 0) const |
| 203 { return m_impl ? m_impl->findIgnoringASCIICase(str.impl(), start) : kNo
tFound; } | 203 { return m_impl ? m_impl->findIgnoringASCIICase(str.impl(), start) : kNo
tFound; } |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 using WTF::StrictUTF8ConversionReplacingUnpairedSurrogatesWithFFFD; | 596 using WTF::StrictUTF8ConversionReplacingUnpairedSurrogatesWithFFFD; |
| 597 using WTF::String; | 597 using WTF::String; |
| 598 using WTF::emptyString; | 598 using WTF::emptyString; |
| 599 using WTF::emptyString16Bit; | 599 using WTF::emptyString16Bit; |
| 600 using WTF::append; | 600 using WTF::append; |
| 601 using WTF::charactersAreAllASCII; | 601 using WTF::charactersAreAllASCII; |
| 602 using WTF::equal; | 602 using WTF::equal; |
| 603 using WTF::find; | 603 using WTF::find; |
| 604 using WTF::isAllSpecialCharacters; | 604 using WTF::isAllSpecialCharacters; |
| 605 using WTF::isSpaceOrNewline; | 605 using WTF::isSpaceOrNewline; |
| 606 using WTF::reverseFind; | |
| 607 | 606 |
| 608 #include "wtf/text/AtomicString.h" | 607 #include "wtf/text/AtomicString.h" |
| 609 #endif // WTFString_h | 608 #endif // WTFString_h |
| OLD | NEW |