| 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 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 inline bool operator!=(const Vector<char, inlineCapacity>& a, const String& b) {
return !(a == b); } | 495 inline bool operator!=(const Vector<char, inlineCapacity>& a, const String& b) {
return !(a == b); } |
| 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()); } |
| 506 |
| 505 inline bool equalPossiblyIgnoringCase(const String& a, const String& b, bool ign
oreCase) | 507 inline bool equalPossiblyIgnoringCase(const String& a, const String& b, bool ign
oreCase) |
| 506 { | 508 { |
| 507 return ignoreCase ? equalIgnoringCase(a, b) : (a == b); | 509 return ignoreCase ? equalIgnoringCase(a, b) : (a == b); |
| 508 } | 510 } |
| 509 | 511 |
| 510 inline bool equalIgnoringNullity(const String& a, const String& b) { return equa
lIgnoringNullity(a.impl(), b.impl()); } | 512 inline bool equalIgnoringNullity(const String& a, const String& b) { return equa
lIgnoringNullity(a.impl(), b.impl()); } |
| 511 | 513 |
| 512 template<size_t inlineCapacity> | 514 template<size_t inlineCapacity> |
| 513 inline bool equalIgnoringNullity(const Vector<UChar, inlineCapacity>& a, const S
tring& b) { return equalIgnoringNullity(a, b.impl()); } | 515 inline bool equalIgnoringNullity(const Vector<UChar, inlineCapacity>& a, const S
tring& b) { return equalIgnoringNullity(a, b.impl()); } |
| 514 | 516 |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 using WTF::charactersToFloat; | 704 using WTF::charactersToFloat; |
| 703 using WTF::equal; | 705 using WTF::equal; |
| 704 using WTF::equalIgnoringCase; | 706 using WTF::equalIgnoringCase; |
| 705 using WTF::find; | 707 using WTF::find; |
| 706 using WTF::isAllSpecialCharacters; | 708 using WTF::isAllSpecialCharacters; |
| 707 using WTF::isSpaceOrNewline; | 709 using WTF::isSpaceOrNewline; |
| 708 using WTF::reverseFind; | 710 using WTF::reverseFind; |
| 709 | 711 |
| 710 #include "wtf/text/AtomicString.h" | 712 #include "wtf/text/AtomicString.h" |
| 711 #endif // WTFString_h | 713 #endif // WTFString_h |
| OLD | NEW |