| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights
reserved. | 3 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights
reserved. |
| 4 * Copyright (C) 2009 Google Inc. All rights reserved. | 4 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 | 359 |
| 360 PassRefPtr<StringImpl> stripWhiteSpace(); | 360 PassRefPtr<StringImpl> stripWhiteSpace(); |
| 361 PassRefPtr<StringImpl> stripWhiteSpace(IsWhiteSpaceFunctionPtr); | 361 PassRefPtr<StringImpl> stripWhiteSpace(IsWhiteSpaceFunctionPtr); |
| 362 PassRefPtr<StringImpl> simplifyWhiteSpace(StripBehavior = StripExtraWhiteSpa
ce); | 362 PassRefPtr<StringImpl> simplifyWhiteSpace(StripBehavior = StripExtraWhiteSpa
ce); |
| 363 PassRefPtr<StringImpl> simplifyWhiteSpace(IsWhiteSpaceFunctionPtr, StripBeha
vior = StripExtraWhiteSpace); | 363 PassRefPtr<StringImpl> simplifyWhiteSpace(IsWhiteSpaceFunctionPtr, StripBeha
vior = StripExtraWhiteSpace); |
| 364 | 364 |
| 365 PassRefPtr<StringImpl> removeCharacters(CharacterMatchFunctionPtr); | 365 PassRefPtr<StringImpl> removeCharacters(CharacterMatchFunctionPtr); |
| 366 template <typename CharType> | 366 template <typename CharType> |
| 367 ALWAYS_INLINE PassRefPtr<StringImpl> removeCharacters(const CharType* charac
ters, CharacterMatchFunctionPtr); | 367 ALWAYS_INLINE PassRefPtr<StringImpl> removeCharacters(const CharType* charac
ters, CharacterMatchFunctionPtr); |
| 368 | 368 |
| 369 // Find characters. |
| 369 size_t find(LChar character, unsigned start = 0); | 370 size_t find(LChar character, unsigned start = 0); |
| 370 size_t find(char character, unsigned start = 0); | 371 size_t find(char character, unsigned start = 0); |
| 371 size_t find(UChar character, unsigned start = 0); | 372 size_t find(UChar character, unsigned start = 0); |
| 372 size_t find(CharacterMatchFunctionPtr, unsigned index = 0); | 373 size_t find(CharacterMatchFunctionPtr, unsigned index = 0); |
| 373 size_t find(const LChar*, unsigned index = 0); | 374 |
| 374 ALWAYS_INLINE size_t find(const char* s, unsigned index = 0) { return find(r
einterpret_cast<const LChar*>(s), index); } | 375 // Find substrings. |
| 375 size_t find(StringImpl*); | 376 size_t find(const StringView&, unsigned index = 0); |
| 376 size_t find(StringImpl*, unsigned index); | 377 size_t findIgnoringCase(const StringView&, unsigned index = 0); |
| 377 size_t findIgnoringCase(const LChar*, unsigned index = 0); | 378 size_t findIgnoringASCIICase(const StringView&, unsigned index = 0); |
| 378 ALWAYS_INLINE size_t findIgnoringCase(const char* s, unsigned index = 0) { r
eturn findIgnoringCase(reinterpret_cast<const LChar*>(s), index); } | |
| 379 size_t findIgnoringCase(StringImpl*, unsigned index = 0); | |
| 380 size_t findIgnoringASCIICase(StringImpl*, unsigned index = 0); | |
| 381 | 379 |
| 382 size_t reverseFind(UChar, unsigned index = UINT_MAX); | 380 size_t reverseFind(UChar, unsigned index = UINT_MAX); |
| 383 size_t reverseFind(StringImpl*, unsigned index = UINT_MAX); | 381 size_t reverseFind(StringImpl*, unsigned index = UINT_MAX); |
| 384 | 382 |
| 385 bool startsWith(UChar) const; | 383 bool startsWith(UChar) const; |
| 386 bool startsWith(const StringView&) const; | 384 bool startsWith(const StringView&) const; |
| 387 bool startsWithIgnoringCase(const StringView&) const; | 385 bool startsWithIgnoringCase(const StringView&) const; |
| 388 bool startsWithIgnoringASCIICase(const StringView&) const; | 386 bool startsWithIgnoringASCIICase(const StringView&) const; |
| 389 | 387 |
| 390 bool endsWith(UChar) const; | 388 bool endsWith(UChar) const; |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 713 using WTF::StringImpl; | 711 using WTF::StringImpl; |
| 714 using WTF::TextCaseASCIIInsensitive; | 712 using WTF::TextCaseASCIIInsensitive; |
| 715 using WTF::TextCaseInsensitive; | 713 using WTF::TextCaseInsensitive; |
| 716 using WTF::TextCaseSensitive; | 714 using WTF::TextCaseSensitive; |
| 717 using WTF::TextCaseSensitivity; | 715 using WTF::TextCaseSensitivity; |
| 718 using WTF::equal; | 716 using WTF::equal; |
| 719 using WTF::equalNonNull; | 717 using WTF::equalNonNull; |
| 720 using WTF::lengthOfNullTerminatedString; | 718 using WTF::lengthOfNullTerminatedString; |
| 721 | 719 |
| 722 #endif | 720 #endif |
| OLD | NEW |