| 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. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. |
| 4 * All rights reserved. | 4 * 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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 // These functions are rarely used to implement web platform features. See | 290 // These functions are rarely used to implement web platform features. See |
| 291 // crbug.com/627682. | 291 // crbug.com/627682. |
| 292 // These functions are deprecated. We should use UpperASCII(), or introduce | 292 // These functions are deprecated. We should use UpperASCII(), or introduce |
| 293 // UpperUnicode(), and should introduce LowerASCII() or LowerUnicode(). | 293 // UpperUnicode(), and should introduce LowerASCII() or LowerUnicode(). |
| 294 String DeprecatedLower() const; | 294 String DeprecatedLower() const; |
| 295 String DeprecatedUpper() const; | 295 String DeprecatedUpper() const; |
| 296 | 296 |
| 297 String LowerUnicode(const AtomicString& locale_identifier) const; | 297 String LowerUnicode(const AtomicString& locale_identifier) const; |
| 298 String UpperUnicode(const AtomicString& locale_identifier) const; | 298 String UpperUnicode(const AtomicString& locale_identifier) const; |
| 299 | 299 |
| 300 // Returns a lowercase version of the string. |
| 301 // This function converts ASCII characters only. |
| 302 String LowerASCII() const; |
| 300 // Returns a uppercase version of the string. | 303 // Returns a uppercase version of the string. |
| 301 // This function converts ASCII characters only. | 304 // This function converts ASCII characters only. |
| 302 String UpperASCII() const; | 305 String UpperASCII() const; |
| 303 | 306 |
| 304 String StripWhiteSpace() const; | 307 String StripWhiteSpace() const; |
| 305 String StripWhiteSpace(IsWhiteSpaceFunctionPtr) const; | 308 String StripWhiteSpace(IsWhiteSpaceFunctionPtr) const; |
| 306 String SimplifyWhiteSpace(StripBehavior = kStripExtraWhiteSpace) const; | 309 String SimplifyWhiteSpace(StripBehavior = kStripExtraWhiteSpace) const; |
| 307 String SimplifyWhiteSpace(IsWhiteSpaceFunctionPtr, | 310 String SimplifyWhiteSpace(IsWhiteSpaceFunctionPtr, |
| 308 StripBehavior = kStripExtraWhiteSpace) const; | 311 StripBehavior = kStripExtraWhiteSpace) const; |
| 309 | 312 |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 inline bool operator!=(const String& a, const String& b) { | 468 inline bool operator!=(const String& a, const String& b) { |
| 466 return !(a == b); | 469 return !(a == b); |
| 467 } | 470 } |
| 468 inline bool operator!=(const String& a, const char* b) { | 471 inline bool operator!=(const String& a, const char* b) { |
| 469 return !(a == b); | 472 return !(a == b); |
| 470 } | 473 } |
| 471 inline bool operator!=(const char* a, const String& b) { | 474 inline bool operator!=(const char* a, const String& b) { |
| 472 return !(a == b); | 475 return !(a == b); |
| 473 } | 476 } |
| 474 | 477 |
| 475 inline bool EqualPossiblyIgnoringCase(const String& a, | 478 inline bool EqualPossiblyIgnoringASCIICase(const String& a, |
| 476 const String& b, | 479 const String& b, |
| 477 bool ignore_case) { | 480 bool ignore_case) { |
| 478 return ignore_case ? DeprecatedEqualIgnoringCase(a, b) : (a == b); | 481 return ignore_case ? EqualIgnoringASCIICase(a, b) : (a == b); |
| 479 } | 482 } |
| 480 | 483 |
| 481 inline bool EqualIgnoringNullity(const String& a, const String& b) { | 484 inline bool EqualIgnoringNullity(const String& a, const String& b) { |
| 482 return EqualIgnoringNullity(a.Impl(), b.Impl()); | 485 return EqualIgnoringNullity(a.Impl(), b.Impl()); |
| 483 } | 486 } |
| 484 | 487 |
| 485 template <size_t inlineCapacity> | 488 template <size_t inlineCapacity> |
| 486 inline bool EqualIgnoringNullity(const Vector<UChar, inlineCapacity>& a, | 489 inline bool EqualIgnoringNullity(const Vector<UChar, inlineCapacity>& a, |
| 487 const String& b) { | 490 const String& b) { |
| 488 return EqualIgnoringNullity(a, b.Impl()); | 491 return EqualIgnoringNullity(a, b.Impl()); |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 using WTF::String; | 604 using WTF::String; |
| 602 using WTF::g_empty_string; | 605 using WTF::g_empty_string; |
| 603 using WTF::g_empty_string16_bit; | 606 using WTF::g_empty_string16_bit; |
| 604 using WTF::CharactersAreAllASCII; | 607 using WTF::CharactersAreAllASCII; |
| 605 using WTF::Equal; | 608 using WTF::Equal; |
| 606 using WTF::Find; | 609 using WTF::Find; |
| 607 using WTF::IsSpaceOrNewline; | 610 using WTF::IsSpaceOrNewline; |
| 608 | 611 |
| 609 #include "wtf/text/AtomicString.h" | 612 #include "wtf/text/AtomicString.h" |
| 610 #endif // WTFString_h | 613 #endif // WTFString_h |
| OLD | NEW |