| 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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 return charactersAreAllASCII(characters16(), m_impl->length()); | 574 return charactersAreAllASCII(characters16(), m_impl->length()); |
| 575 } | 575 } |
| 576 | 576 |
| 577 WTF_EXPORT int codePointCompare(const String&, const String&); | 577 WTF_EXPORT int codePointCompare(const String&, const String&); |
| 578 | 578 |
| 579 inline bool codePointCompareLessThan(const String& a, const String& b) | 579 inline bool codePointCompareLessThan(const String& a, const String& b) |
| 580 { | 580 { |
| 581 return codePointCompare(a.impl(), b.impl()) < 0; | 581 return codePointCompare(a.impl(), b.impl()) < 0; |
| 582 } | 582 } |
| 583 | 583 |
| 584 WTF_EXPORT int codePointCompareIgnoringASCIICase(const String&, const char*); |
| 585 |
| 584 template<size_t inlineCapacity> | 586 template<size_t inlineCapacity> |
| 585 inline void append(Vector<UChar, inlineCapacity>& vector, const String& string) | 587 inline void append(Vector<UChar, inlineCapacity>& vector, const String& string) |
| 586 { | 588 { |
| 587 unsigned length = string.length(); | 589 unsigned length = string.length(); |
| 588 if (!length) | 590 if (!length) |
| 589 return; | 591 return; |
| 590 if (string.is8Bit()) { | 592 if (string.is8Bit()) { |
| 591 const LChar* characters8 = string.characters8(); | 593 const LChar* characters8 = string.characters8(); |
| 592 vector.reserveCapacity(vector.size() + length); | 594 vector.reserveCapacity(vector.size() + length); |
| 593 for (size_t i = 0; i < length; ++i) | 595 for (size_t i = 0; i < length; ++i) |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 704 using WTF::charactersToFloat; | 706 using WTF::charactersToFloat; |
| 705 using WTF::equal; | 707 using WTF::equal; |
| 706 using WTF::equalIgnoringCase; | 708 using WTF::equalIgnoringCase; |
| 707 using WTF::find; | 709 using WTF::find; |
| 708 using WTF::isAllSpecialCharacters; | 710 using WTF::isAllSpecialCharacters; |
| 709 using WTF::isSpaceOrNewline; | 711 using WTF::isSpaceOrNewline; |
| 710 using WTF::reverseFind; | 712 using WTF::reverseFind; |
| 711 | 713 |
| 712 #include "wtf/text/AtomicString.h" | 714 #include "wtf/text/AtomicString.h" |
| 713 #endif // WTFString_h | 715 #endif // WTFString_h |
| OLD | NEW |