OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007 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 28 matching lines...) Expand all Loading... |
39 // Use TextResourceDecoder::decode to decode resources, since it handles BOMs. | 39 // Use TextResourceDecoder::decode to decode resources, since it handles BOMs. |
40 // Use TextEncoding::encode to encode, since it takes care of normalization. | 40 // Use TextEncoding::encode to encode, since it takes care of normalization. |
41 WTF_EXPORT PassOwnPtr<TextCodec> newTextCodec(const TextEncoding&); | 41 WTF_EXPORT PassOwnPtr<TextCodec> newTextCodec(const TextEncoding&); |
42 | 42 |
43 // Only TextEncoding should use the following functions directly. | 43 // Only TextEncoding should use the following functions directly. |
44 const char* atomicCanonicalTextEncodingName(const char* alias); | 44 const char* atomicCanonicalTextEncodingName(const char* alias); |
45 template <typename CharacterType> | 45 template <typename CharacterType> |
46 const char* atomicCanonicalTextEncodingName(const CharacterType*, size_t); | 46 const char* atomicCanonicalTextEncodingName(const CharacterType*, size_t); |
47 const char* atomicCanonicalTextEncodingName(const String&); | 47 const char* atomicCanonicalTextEncodingName(const String&); |
48 bool noExtendedTextEncodingNameUsed(); | 48 bool noExtendedTextEncodingNameUsed(); |
49 bool isJapaneseEncoding(const char* canonicalEncodingName); | |
50 bool shouldShowBackslashAsCurrencySymbolIn(const char* canonicalEncodingName); | |
51 bool isReplacementEncoding(const char* alias); | 49 bool isReplacementEncoding(const char* alias); |
52 bool isReplacementEncoding(const String& alias); | 50 bool isReplacementEncoding(const String& alias); |
53 | 51 |
54 #ifndef NDEBUG | 52 #ifndef NDEBUG |
55 void dumpTextEncodingNameMap(); | 53 void dumpTextEncodingNameMap(); |
56 #endif | 54 #endif |
57 | 55 |
58 } // namespace WTF | 56 } // namespace WTF |
59 | 57 |
60 using WTF::newTextCodec; | 58 using WTF::newTextCodec; |
61 using WTF::atomicCanonicalTextEncodingName; | 59 using WTF::atomicCanonicalTextEncodingName; |
62 using WTF::noExtendedTextEncodingNameUsed; | 60 using WTF::noExtendedTextEncodingNameUsed; |
63 using WTF::isJapaneseEncoding; | |
64 using WTF::shouldShowBackslashAsCurrencySymbolIn; | |
65 #ifndef NDEBUG | 61 #ifndef NDEBUG |
66 using WTF::dumpTextEncodingNameMap; | 62 using WTF::dumpTextEncodingNameMap; |
67 #endif | 63 #endif |
68 | 64 |
69 #endif // TextEncodingRegistry_h | 65 #endif // TextEncodingRegistry_h |
OLD | NEW |