| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights | 3 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights |
| 4 * reserved. | 4 * reserved. |
| 5 * Copyright (C) 2009 Google Inc. All rights reserved. | 5 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 template <typename> | 48 template <typename> |
| 49 class RetainPtr; | 49 class RetainPtr; |
| 50 | 50 |
| 51 enum TextCaseSensitivity { | 51 enum TextCaseSensitivity { |
| 52 TextCaseSensitive, | 52 TextCaseSensitive, |
| 53 TextCaseASCIIInsensitive, | 53 TextCaseASCIIInsensitive, |
| 54 | 54 |
| 55 // Unicode aware case insensitive matching. Non-ASCII characters might match | 55 // Unicode aware case insensitive matching. Non-ASCII characters might match |
| 56 // to ASCII characters. This flag is rarely used to implement web platform | 56 // to ASCII characters. This flag is rarely used to implement web platform |
| 57 // features. | 57 // features. |
| 58 TextCaseInsensitive | 58 TextCaseUnicodeInsensitive |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 enum StripBehavior { StripExtraWhiteSpace, DoNotStripWhiteSpace }; | 61 enum StripBehavior { StripExtraWhiteSpace, DoNotStripWhiteSpace }; |
| 62 | 62 |
| 63 typedef bool (*CharacterMatchFunctionPtr)(UChar); | 63 typedef bool (*CharacterMatchFunctionPtr)(UChar); |
| 64 typedef bool (*IsWhiteSpaceFunctionPtr)(UChar); | 64 typedef bool (*IsWhiteSpaceFunctionPtr)(UChar); |
| 65 typedef HashMap<unsigned, StringImpl*, AlreadyHashed> StaticStringsTable; | 65 typedef HashMap<unsigned, StringImpl*, AlreadyHashed> StaticStringsTable; |
| 66 | 66 |
| 67 // Define STRING_STATS to turn on run time statistics of string sizes and memory | 67 // Define STRING_STATS to turn on run time statistics of string sizes and memory |
| 68 // usage | 68 // usage |
| (...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 833 }; | 833 }; |
| 834 template <> | 834 template <> |
| 835 struct DefaultHash<RefPtr<StringImpl>> { | 835 struct DefaultHash<RefPtr<StringImpl>> { |
| 836 typedef StringHash Hash; | 836 typedef StringHash Hash; |
| 837 }; | 837 }; |
| 838 | 838 |
| 839 } // namespace WTF | 839 } // namespace WTF |
| 840 | 840 |
| 841 using WTF::StringImpl; | 841 using WTF::StringImpl; |
| 842 using WTF::TextCaseASCIIInsensitive; | 842 using WTF::TextCaseASCIIInsensitive; |
| 843 using WTF::TextCaseInsensitive; | 843 using WTF::TextCaseUnicodeInsensitive; |
| 844 using WTF::TextCaseSensitive; | 844 using WTF::TextCaseSensitive; |
| 845 using WTF::TextCaseSensitivity; | 845 using WTF::TextCaseSensitivity; |
| 846 using WTF::equal; | 846 using WTF::equal; |
| 847 using WTF::equalNonNull; | 847 using WTF::equalNonNull; |
| 848 using WTF::lengthOfNullTerminatedString; | 848 using WTF::lengthOfNullTerminatedString; |
| 849 using WTF::reverseFind; | 849 using WTF::reverseFind; |
| 850 | 850 |
| 851 #endif | 851 #endif |
| OLD | NEW |