| 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 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 #ifndef WTFString_h | 22 #ifndef WTFString_h |
| 23 #define WTFString_h | 23 #define WTFString_h |
| 24 | 24 |
| 25 // This file would be called String.h, but that conflicts with <string.h> | 25 // This file would be called String.h, but that conflicts with <string.h> |
| 26 // on systems without case-sensitive file systems. | 26 // on systems without case-sensitive file systems. |
| 27 | 27 |
| 28 #include "wtf/Allocator.h" | 28 #include "wtf/Allocator.h" |
| 29 #include "wtf/HashTableDeletedValueType.h" | 29 #include "wtf/HashTableDeletedValueType.h" |
| 30 #include "wtf/WTFExport.h" | 30 #include "wtf/WTFExport.h" |
| 31 #include "wtf/testing/WTFUnitTestHelpersExport.h" | |
| 32 #include "wtf/text/ASCIIFastPath.h" | 31 #include "wtf/text/ASCIIFastPath.h" |
| 33 #include "wtf/text/StringImpl.h" | 32 #include "wtf/text/StringImpl.h" |
| 34 #include "wtf/text/StringView.h" | 33 #include "wtf/text/StringView.h" |
| 35 #include <algorithm> | 34 #include <algorithm> |
| 36 #include <iosfwd> | 35 #include <iosfwd> |
| 37 | 36 |
| 38 #ifdef __OBJC__ | 37 #ifdef __OBJC__ |
| 39 #include <objc/objc.h> | 38 #include <objc/objc.h> |
| 40 #endif | 39 #endif |
| 41 | 40 |
| (...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 671 template<typename T> struct DefaultHash; | 670 template<typename T> struct DefaultHash; |
| 672 template<> struct DefaultHash<String> { | 671 template<> struct DefaultHash<String> { |
| 673 typedef StringHash Hash; | 672 typedef StringHash Hash; |
| 674 }; | 673 }; |
| 675 | 674 |
| 676 // Shared global empty string. | 675 // Shared global empty string. |
| 677 WTF_EXPORT const String& emptyString(); | 676 WTF_EXPORT const String& emptyString(); |
| 678 WTF_EXPORT const String& emptyString16Bit(); | 677 WTF_EXPORT const String& emptyString16Bit(); |
| 679 WTF_EXPORT extern const String& xmlnsWithColon; | 678 WTF_EXPORT extern const String& xmlnsWithColon; |
| 680 | 679 |
| 681 // Pretty printer for gtest. Declared here to avoid ODR violations. | 680 // Pretty printer for gtest and base/logging.*. |
| 682 WTF_UNITTEST_HELPERS_EXPORT std::ostream& operator<<(std::ostream&, const String
&); | 681 WTF_EXPORT std::ostream& operator<<(std::ostream&, const String&); |
| 683 | 682 |
| 684 } // namespace WTF | 683 } // namespace WTF |
| 685 | 684 |
| 686 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(String); | 685 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(String); |
| 687 | 686 |
| 688 using WTF::CString; | 687 using WTF::CString; |
| 689 using WTF::KeepTrailingZeros; | 688 using WTF::KeepTrailingZeros; |
| 690 using WTF::StrictUTF8Conversion; | 689 using WTF::StrictUTF8Conversion; |
| 691 using WTF::StrictUTF8ConversionReplacingUnpairedSurrogatesWithFFFD; | 690 using WTF::StrictUTF8ConversionReplacingUnpairedSurrogatesWithFFFD; |
| 692 using WTF::String; | 691 using WTF::String; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 706 using WTF::charactersToFloat; | 705 using WTF::charactersToFloat; |
| 707 using WTF::equal; | 706 using WTF::equal; |
| 708 using WTF::equalIgnoringCase; | 707 using WTF::equalIgnoringCase; |
| 709 using WTF::find; | 708 using WTF::find; |
| 710 using WTF::isAllSpecialCharacters; | 709 using WTF::isAllSpecialCharacters; |
| 711 using WTF::isSpaceOrNewline; | 710 using WTF::isSpaceOrNewline; |
| 712 using WTF::reverseFind; | 711 using WTF::reverseFind; |
| 713 | 712 |
| 714 #include "wtf/text/AtomicString.h" | 713 #include "wtf/text/AtomicString.h" |
| 715 #endif // WTFString_h | 714 #endif // WTFString_h |
| OLD | NEW |