| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 bool isUTF7Encoding() const; | 65 bool isUTF7Encoding() const; |
| 66 | 66 |
| 67 const char* m_name; | 67 const char* m_name; |
| 68 UChar m_backslashAsCurrencySymbol; | 68 UChar m_backslashAsCurrencySymbol; |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 inline bool operator==(const TextEncoding& a, const TextEncoding& b) { return a.
name() == b.name(); } | 71 inline bool operator==(const TextEncoding& a, const TextEncoding& b) { return a.
name() == b.name(); } |
| 72 inline bool operator!=(const TextEncoding& a, const TextEncoding& b) { return a.
name() != b.name(); } | 72 inline bool operator!=(const TextEncoding& a, const TextEncoding& b) { return a.
name() != b.name(); } |
| 73 | 73 |
| 74 WTF_EXPORT const TextEncoding& ASCIIEncoding(); | 74 WTF_EXPORT const TextEncoding& ASCIIEncoding(); |
| 75 WTF_EXPORT const TextEncoding& Base64Encoding(); |
| 75 WTF_EXPORT const TextEncoding& Latin1Encoding(); | 76 WTF_EXPORT const TextEncoding& Latin1Encoding(); |
| 76 WTF_EXPORT const TextEncoding& UTF16BigEndianEncoding(); | 77 WTF_EXPORT const TextEncoding& UTF16BigEndianEncoding(); |
| 77 WTF_EXPORT const TextEncoding& UTF16LittleEndianEncoding(); | 78 WTF_EXPORT const TextEncoding& UTF16LittleEndianEncoding(); |
| 78 WTF_EXPORT const TextEncoding& UTF32BigEndianEncoding(); | 79 WTF_EXPORT const TextEncoding& UTF32BigEndianEncoding(); |
| 79 WTF_EXPORT const TextEncoding& UTF32LittleEndianEncoding(); | 80 WTF_EXPORT const TextEncoding& UTF32LittleEndianEncoding(); |
| 80 WTF_EXPORT const TextEncoding& UTF8Encoding(); | 81 WTF_EXPORT const TextEncoding& UTF8Encoding(); |
| 81 WTF_EXPORT const TextEncoding& WindowsLatin1Encoding(); | 82 WTF_EXPORT const TextEncoding& WindowsLatin1Encoding(); |
| 82 | 83 |
| 83 } // namespace WTF | 84 } // namespace WTF |
| 84 | 85 |
| 85 using WTF::ASCIIEncoding; | 86 using WTF::ASCIIEncoding; |
| 87 using WTF::Base64Encoding; |
| 86 using WTF::Latin1Encoding; | 88 using WTF::Latin1Encoding; |
| 87 using WTF::UTF16BigEndianEncoding; | 89 using WTF::UTF16BigEndianEncoding; |
| 88 using WTF::UTF16LittleEndianEncoding; | 90 using WTF::UTF16LittleEndianEncoding; |
| 89 using WTF::UTF32BigEndianEncoding; | 91 using WTF::UTF32BigEndianEncoding; |
| 90 using WTF::UTF32LittleEndianEncoding; | 92 using WTF::UTF32LittleEndianEncoding; |
| 91 using WTF::UTF8Encoding; | 93 using WTF::UTF8Encoding; |
| 92 using WTF::WindowsLatin1Encoding; | 94 using WTF::WindowsLatin1Encoding; |
| 93 | 95 |
| 94 #endif // TextEncoding_h | 96 #endif // TextEncoding_h |
| OLD | NEW |