| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 size_t find(LChar c, unsigned start = 0) const | 79 size_t find(LChar c, unsigned start = 0) const |
| 80 { return m_string.find(c, start); } | 80 { return m_string.find(c, start); } |
| 81 size_t find(char c, unsigned start = 0) const { return find(static_cast<LCha
r>(c), start); } | 81 size_t find(char c, unsigned start = 0) const { return find(static_cast<LCha
r>(c), start); } |
| 82 size_t find(CharacterMatchFunctionPtr matchFunction, unsigned start = 0) con
st | 82 size_t find(CharacterMatchFunctionPtr matchFunction, unsigned start = 0) con
st |
| 83 { return m_string.find(matchFunction, start); } | 83 { return m_string.find(matchFunction, start); } |
| 84 | 84 |
| 85 // Find substrings. | 85 // Find substrings. |
| 86 size_t find(const StringView& value, unsigned start = 0, TextCaseSensitivity
caseSensitivity = TextCaseSensitive) const | 86 size_t find(const StringView& value, unsigned start = 0, TextCaseSensitivity
caseSensitivity = TextCaseSensitive) const |
| 87 { return m_string.find(value, start, caseSensitivity); } | 87 { return m_string.find(value, start, caseSensitivity); } |
| 88 | 88 |
| 89 // Unicode aware case insensitive string matching. |
| 90 size_t findIgnoringCase(const StringView& value, unsigned start = 0) const |
| 91 { return m_string.findIgnoringCase(value, start); } |
| 92 |
| 93 // ASCII case insensitive string matching. |
| 94 size_t findIgnoringASCIICase(const StringView& value, unsigned start = 0) co
nst |
| 95 { return m_string.findIgnoringASCIICase(value, start); } |
| 96 |
| 89 bool contains(char c) const { return find(c) != kNotFound; } | 97 bool contains(char c) const { return find(c) != kNotFound; } |
| 90 bool contains(const StringView& value, TextCaseSensitivity caseSensitivity =
TextCaseSensitive) const | 98 bool contains(const StringView& value, TextCaseSensitivity caseSensitivity =
TextCaseSensitive) const |
| 91 { return find(value, 0, caseSensitivity) != kNotFound; } | 99 { return find(value, 0, caseSensitivity) != kNotFound; } |
| 92 | 100 |
| 93 bool startsWith(const StringView& prefix, TextCaseSensitivity caseSensitivit
y = TextCaseSensitive) const | 101 bool startsWith(const StringView& prefix, TextCaseSensitivity caseSensitivit
y = TextCaseSensitive) const |
| 94 { return m_string.startsWith(prefix, caseSensitivity); } | 102 { return m_string.startsWith(prefix, caseSensitivity); } |
| 95 bool startsWith(UChar character) const | 103 bool startsWith(UChar character) const |
| 96 { return m_string.startsWith(character); } | 104 { return m_string.startsWith(character); } |
| 97 | 105 |
| 98 bool endsWith(const StringView& suffix, TextCaseSensitivity caseSensitivity
= TextCaseSensitive) const | 106 bool endsWith(const StringView& suffix, TextCaseSensitivity caseSensitivity
= TextCaseSensitive) const |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 using WTF::AtomicString; | 215 using WTF::AtomicString; |
| 208 using WTF::nullAtom; | 216 using WTF::nullAtom; |
| 209 using WTF::emptyAtom; | 217 using WTF::emptyAtom; |
| 210 using WTF::starAtom; | 218 using WTF::starAtom; |
| 211 using WTF::xmlAtom; | 219 using WTF::xmlAtom; |
| 212 using WTF::xmlnsAtom; | 220 using WTF::xmlnsAtom; |
| 213 using WTF::xlinkAtom; | 221 using WTF::xlinkAtom; |
| 214 | 222 |
| 215 #include "wtf/text/StringConcatenate.h" | 223 #include "wtf/text/StringConcatenate.h" |
| 216 #endif // AtomicString_h | 224 #endif // AtomicString_h |
| OLD | NEW |