OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006 Apple Computer, Inc. All rights reserved. |
3 * Copyright (C) 2006 Alexey Proskuryakov <ap@nypop.com> | 3 * Copyright (C) 2006 Alexey Proskuryakov <ap@nypop.com> |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 12 matching lines...) Expand all Loading... |
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 #ifndef TextCodec_h | 27 #ifndef TextCodec_h |
28 #define TextCodec_h | 28 #define TextCodec_h |
29 | 29 |
30 #include "wtf/Forward.h" | 30 #include "wtf/Forward.h" |
31 #include "wtf/Noncopyable.h" | 31 #include "wtf/Noncopyable.h" |
32 #include "wtf/PassOwnPtr.h" | 32 #include "wtf/PassOwnPtr.h" |
33 #include "wtf/Vector.h" | |
34 #include "wtf/text/WTFString.h" | 33 #include "wtf/text/WTFString.h" |
35 #include "wtf/unicode/Unicode.h" | 34 #include "wtf/unicode/Unicode.h" |
36 | 35 |
37 namespace WTF { | 36 namespace WTF { |
38 | 37 |
39 class TextEncoding; | 38 class TextEncoding; |
40 | 39 |
41 // Specifies what will happen when a character is encountered that is | 40 // Specifies what will happen when a character is encountered that is |
42 // not encodable in the character set. | 41 // not encodable in the character set. |
43 enum UnencodableHandling { | 42 enum UnencodableHandling { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 typedef void (*EncodingNameRegistrar)(const char* alias, const char* name); | 96 typedef void (*EncodingNameRegistrar)(const char* alias, const char* name); |
98 | 97 |
99 typedef PassOwnPtr<TextCodec> (*NewTextCodecFunction)(const TextEncoding&, const
void* additionalData); | 98 typedef PassOwnPtr<TextCodec> (*NewTextCodecFunction)(const TextEncoding&, const
void* additionalData); |
100 typedef void (*TextCodecRegistrar)(const char* name, NewTextCodecFunction, const
void* additionalData); | 99 typedef void (*TextCodecRegistrar)(const char* name, NewTextCodecFunction, const
void* additionalData); |
101 | 100 |
102 } // namespace WTF | 101 } // namespace WTF |
103 | 102 |
104 using WTF::TextCodec; | 103 using WTF::TextCodec; |
105 | 104 |
106 #endif // TextCodec_h | 105 #endif // TextCodec_h |
OLD | NEW |