| 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 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 template<size_t inlineCapacity> | 496 template<size_t inlineCapacity> |
| 497 inline bool operator!=(const String& a, const Vector<char, inlineCapacity>& b) {
return b != a; } | 497 inline bool operator!=(const String& a, const Vector<char, inlineCapacity>& b) {
return b != a; } |
| 498 | 498 |
| 499 inline bool equalIgnoringCase(const String& a, const String& b) { return equalIg
noringCase(a.impl(), b.impl()); } | 499 inline bool equalIgnoringCase(const String& a, const String& b) { return equalIg
noringCase(a.impl(), b.impl()); } |
| 500 inline bool equalIgnoringCase(const String& a, const LChar* b) { return equalIgn
oringCase(a.impl(), b); } | 500 inline bool equalIgnoringCase(const String& a, const LChar* b) { return equalIgn
oringCase(a.impl(), b); } |
| 501 inline bool equalIgnoringCase(const String& a, const char* b) { return equalIgno
ringCase(a.impl(), reinterpret_cast<const LChar*>(b)); } | 501 inline bool equalIgnoringCase(const String& a, const char* b) { return equalIgno
ringCase(a.impl(), reinterpret_cast<const LChar*>(b)); } |
| 502 inline bool equalIgnoringCase(const LChar* a, const String& b) { return equalIgn
oringCase(a, b.impl()); } | 502 inline bool equalIgnoringCase(const LChar* a, const String& b) { return equalIgn
oringCase(a, b.impl()); } |
| 503 inline bool equalIgnoringCase(const char* a, const String& b) { return equalIgno
ringCase(reinterpret_cast<const LChar*>(a), b.impl()); } | 503 inline bool equalIgnoringCase(const char* a, const String& b) { return equalIgno
ringCase(reinterpret_cast<const LChar*>(a), b.impl()); } |
| 504 | 504 |
| 505 inline bool equalIgnoringASCIICase(const String& a, const String& b) { return eq
ualIgnoringASCIICase(a.impl(), b.impl()); } | 505 inline bool equalIgnoringASCIICase(const String& a, const String& b) { return eq
ualIgnoringASCIICase(a.impl(), b.impl()); } |
| 506 inline bool equalIgnoringASCIICase(const String& a, const LChar* b) { return equ
alIgnoringASCIICase(a.impl(), b); } |
| 507 inline bool equalIgnoringASCIICase(const String& a, const char* b) { return equa
lIgnoringASCIICase(a.impl(), b); } |
| 506 | 508 |
| 507 inline bool equalPossiblyIgnoringCase(const String& a, const String& b, bool ign
oreCase) | 509 inline bool equalPossiblyIgnoringCase(const String& a, const String& b, bool ign
oreCase) |
| 508 { | 510 { |
| 509 return ignoreCase ? equalIgnoringCase(a, b) : (a == b); | 511 return ignoreCase ? equalIgnoringCase(a, b) : (a == b); |
| 510 } | 512 } |
| 511 | 513 |
| 512 inline bool equalIgnoringNullity(const String& a, const String& b) { return equa
lIgnoringNullity(a.impl(), b.impl()); } | 514 inline bool equalIgnoringNullity(const String& a, const String& b) { return equa
lIgnoringNullity(a.impl(), b.impl()); } |
| 513 | 515 |
| 514 template<size_t inlineCapacity> | 516 template<size_t inlineCapacity> |
| 515 inline bool equalIgnoringNullity(const Vector<UChar, inlineCapacity>& a, const S
tring& b) { return equalIgnoringNullity(a, b.impl()); } | 517 inline bool equalIgnoringNullity(const Vector<UChar, inlineCapacity>& a, const S
tring& b) { return equalIgnoringNullity(a, b.impl()); } |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 707 using WTF::charactersToFloat; | 709 using WTF::charactersToFloat; |
| 708 using WTF::equal; | 710 using WTF::equal; |
| 709 using WTF::equalIgnoringCase; | 711 using WTF::equalIgnoringCase; |
| 710 using WTF::find; | 712 using WTF::find; |
| 711 using WTF::isAllSpecialCharacters; | 713 using WTF::isAllSpecialCharacters; |
| 712 using WTF::isSpaceOrNewline; | 714 using WTF::isSpaceOrNewline; |
| 713 using WTF::reverseFind; | 715 using WTF::reverseFind; |
| 714 | 716 |
| 715 #include "wtf/text/AtomicString.h" | 717 #include "wtf/text/AtomicString.h" |
| 716 #endif // WTFString_h | 718 #endif // WTFString_h |
| OLD | NEW |