2 * Copyright (c) 2010 Apple Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
21 * @APPLE_LICENSE_HEADER_END@
24 /* CFStringEncodingExt.h
25 Copyright (c) 1998-2009, Apple Inc. All rights reserved.
28 #if !defined(__COREFOUNDATION_CFSTRINGENCODINGEXT__)
29 #define __COREFOUNDATION_CFSTRINGENCODINGEXT__ 1
31 #include <CoreFoundation/CFBase.h>
36 /* kCFStringEncodingMacRoman = 0L, defined in CoreFoundation/CFString.h */
37 kCFStringEncodingMacJapanese
= 1,
38 kCFStringEncodingMacChineseTrad
= 2,
39 kCFStringEncodingMacKorean
= 3,
40 kCFStringEncodingMacArabic
= 4,
41 kCFStringEncodingMacHebrew
= 5,
42 kCFStringEncodingMacGreek
= 6,
43 kCFStringEncodingMacCyrillic
= 7,
44 kCFStringEncodingMacDevanagari
= 9,
45 kCFStringEncodingMacGurmukhi
= 10,
46 kCFStringEncodingMacGujarati
= 11,
47 kCFStringEncodingMacOriya
= 12,
48 kCFStringEncodingMacBengali
= 13,
49 kCFStringEncodingMacTamil
= 14,
50 kCFStringEncodingMacTelugu
= 15,
51 kCFStringEncodingMacKannada
= 16,
52 kCFStringEncodingMacMalayalam
= 17,
53 kCFStringEncodingMacSinhalese
= 18,
54 kCFStringEncodingMacBurmese
= 19,
55 kCFStringEncodingMacKhmer
= 20,
56 kCFStringEncodingMacThai
= 21,
57 kCFStringEncodingMacLaotian
= 22,
58 kCFStringEncodingMacGeorgian
= 23,
59 kCFStringEncodingMacArmenian
= 24,
60 kCFStringEncodingMacChineseSimp
= 25,
61 kCFStringEncodingMacTibetan
= 26,
62 kCFStringEncodingMacMongolian
= 27,
63 kCFStringEncodingMacEthiopic
= 28,
64 kCFStringEncodingMacCentralEurRoman
= 29,
65 kCFStringEncodingMacVietnamese
= 30,
66 kCFStringEncodingMacExtArabic
= 31,
67 /* The following use script code 0, smRoman */
68 kCFStringEncodingMacSymbol
= 33,
69 kCFStringEncodingMacDingbats
= 34,
70 kCFStringEncodingMacTurkish
= 35,
71 kCFStringEncodingMacCroatian
= 36,
72 kCFStringEncodingMacIcelandic
= 37,
73 kCFStringEncodingMacRomanian
= 38,
74 kCFStringEncodingMacCeltic
= 39,
75 kCFStringEncodingMacGaelic
= 40,
76 /* The following use script code 4, smArabic */
77 kCFStringEncodingMacFarsi
= 0x8C, /* Like MacArabic but uses Farsi digits */
78 /* The following use script code 7, smCyrillic */
79 kCFStringEncodingMacUkrainian
= 0x98,
80 /* The following use script code 32, smUnimplemented */
81 kCFStringEncodingMacInuit
= 0xEC,
82 kCFStringEncodingMacVT100
= 0xFC, /* VT100/102 font from Comm Toolbox: Latin-1 repertoire + box drawing etc */
83 /* Special Mac OS encodings*/
84 kCFStringEncodingMacHFS
= 0xFF, /* Meta-value, should never appear in a table */
86 /* Unicode & ISO UCS encodings begin at 0x100 */
87 /* We don't use Unicode variations defined in TextEncoding; use the ones in CFString.h, instead. */
89 /* ISO 8-bit and 7-bit encodings begin at 0x200 */
90 /* kCFStringEncodingISOLatin1 = 0x0201, defined in CoreFoundation/CFString.h */
91 kCFStringEncodingISOLatin2
= 0x0202, /* ISO 8859-2 */
92 kCFStringEncodingISOLatin3
= 0x0203, /* ISO 8859-3 */
93 kCFStringEncodingISOLatin4
= 0x0204, /* ISO 8859-4 */
94 kCFStringEncodingISOLatinCyrillic
= 0x0205, /* ISO 8859-5 */
95 kCFStringEncodingISOLatinArabic
= 0x0206, /* ISO 8859-6, =ASMO 708, =DOS CP 708 */
96 kCFStringEncodingISOLatinGreek
= 0x0207, /* ISO 8859-7 */
97 kCFStringEncodingISOLatinHebrew
= 0x0208, /* ISO 8859-8 */
98 kCFStringEncodingISOLatin5
= 0x0209, /* ISO 8859-9 */
99 kCFStringEncodingISOLatin6
= 0x020A, /* ISO 8859-10 */
100 kCFStringEncodingISOLatinThai
= 0x020B, /* ISO 8859-11 */
101 kCFStringEncodingISOLatin7
= 0x020D, /* ISO 8859-13 */
102 kCFStringEncodingISOLatin8
= 0x020E, /* ISO 8859-14 */
103 kCFStringEncodingISOLatin9
= 0x020F, /* ISO 8859-15 */
104 #if MAC_OS_X_VERSION_10_4 <= MAC_OS_X_VERSION_MAX_ALLOWED
105 kCFStringEncodingISOLatin10
= 0x0210, /* ISO 8859-16 */
108 /* MS-DOS & Windows encodings begin at 0x400 */
109 kCFStringEncodingDOSLatinUS
= 0x0400, /* code page 437 */
110 kCFStringEncodingDOSGreek
= 0x0405, /* code page 737 (formerly code page 437G) */
111 kCFStringEncodingDOSBalticRim
= 0x0406, /* code page 775 */
112 kCFStringEncodingDOSLatin1
= 0x0410, /* code page 850, "Multilingual" */
113 kCFStringEncodingDOSGreek1
= 0x0411, /* code page 851 */
114 kCFStringEncodingDOSLatin2
= 0x0412, /* code page 852, Slavic */
115 kCFStringEncodingDOSCyrillic
= 0x0413, /* code page 855, IBM Cyrillic */
116 kCFStringEncodingDOSTurkish
= 0x0414, /* code page 857, IBM Turkish */
117 kCFStringEncodingDOSPortuguese
= 0x0415, /* code page 860 */
118 kCFStringEncodingDOSIcelandic
= 0x0416, /* code page 861 */
119 kCFStringEncodingDOSHebrew
= 0x0417, /* code page 862 */
120 kCFStringEncodingDOSCanadianFrench
= 0x0418, /* code page 863 */
121 kCFStringEncodingDOSArabic
= 0x0419, /* code page 864 */
122 kCFStringEncodingDOSNordic
= 0x041A, /* code page 865 */
123 kCFStringEncodingDOSRussian
= 0x041B, /* code page 866 */
124 kCFStringEncodingDOSGreek2
= 0x041C, /* code page 869, IBM Modern Greek */
125 kCFStringEncodingDOSThai
= 0x041D, /* code page 874, also for Windows */
126 kCFStringEncodingDOSJapanese
= 0x0420, /* code page 932, also for Windows */
127 kCFStringEncodingDOSChineseSimplif
= 0x0421, /* code page 936, also for Windows */
128 kCFStringEncodingDOSKorean
= 0x0422, /* code page 949, also for Windows; Unified Hangul Code */
129 kCFStringEncodingDOSChineseTrad
= 0x0423, /* code page 950, also for Windows */
130 /* kCFStringEncodingWindowsLatin1 = 0x0500, defined in CoreFoundation/CFString.h */
131 kCFStringEncodingWindowsLatin2
= 0x0501, /* code page 1250, Central Europe */
132 kCFStringEncodingWindowsCyrillic
= 0x0502, /* code page 1251, Slavic Cyrillic */
133 kCFStringEncodingWindowsGreek
= 0x0503, /* code page 1253 */
134 kCFStringEncodingWindowsLatin5
= 0x0504, /* code page 1254, Turkish */
135 kCFStringEncodingWindowsHebrew
= 0x0505, /* code page 1255 */
136 kCFStringEncodingWindowsArabic
= 0x0506, /* code page 1256 */
137 kCFStringEncodingWindowsBalticRim
= 0x0507, /* code page 1257 */
138 kCFStringEncodingWindowsVietnamese
= 0x0508, /* code page 1258 */
139 kCFStringEncodingWindowsKoreanJohab
= 0x0510, /* code page 1361, for Windows NT */
141 /* Various national standards begin at 0x600 */
142 /* kCFStringEncodingASCII = 0x0600, defined in CoreFoundation/CFString.h */
143 #if MAC_OS_X_VERSION_10_4 <= MAC_OS_X_VERSION_MAX_ALLOWED
144 kCFStringEncodingANSEL
= 0x0601, /* ANSEL (ANSI Z39.47) */
146 kCFStringEncodingJIS_X0201_76
= 0x0620,
147 kCFStringEncodingJIS_X0208_83
= 0x0621,
148 kCFStringEncodingJIS_X0208_90
= 0x0622,
149 kCFStringEncodingJIS_X0212_90
= 0x0623,
150 kCFStringEncodingJIS_C6226_78
= 0x0624,
151 #if MAC_OS_X_VERSION_10_5 <= MAC_OS_X_VERSION_MAX_ALLOWED
152 kCFStringEncodingShiftJIS_X0213
= 0x0628, /* Shift-JIS format encoding of JIS X0213 planes 1 and 2*/
154 #if MAC_OS_X_VERSION_10_4 <= MAC_OS_X_VERSION_MAX_ALLOWED
155 kCFStringEncodingShiftJIS_X0213_MenKuTen
= 0x0629, /* JIS X0213 in plane-row-column notation */
157 kCFStringEncodingGB_2312_80
= 0x0630,
158 kCFStringEncodingGBK_95
= 0x0631, /* annex to GB 13000-93; for Windows 95 */
159 kCFStringEncodingGB_18030_2000
= 0x0632,
160 kCFStringEncodingKSC_5601_87
= 0x0640, /* same as KSC 5601-92 without Johab annex */
161 kCFStringEncodingKSC_5601_92_Johab
= 0x0641, /* KSC 5601-92 Johab annex */
162 kCFStringEncodingCNS_11643_92_P1
= 0x0651, /* CNS 11643-1992 plane 1 */
163 kCFStringEncodingCNS_11643_92_P2
= 0x0652, /* CNS 11643-1992 plane 2 */
164 kCFStringEncodingCNS_11643_92_P3
= 0x0653, /* CNS 11643-1992 plane 3 (was plane 14 in 1986 version) */
166 /* ISO 2022 collections begin at 0x800 */
167 kCFStringEncodingISO_2022_JP
= 0x0820,
168 kCFStringEncodingISO_2022_JP_2
= 0x0821,
169 kCFStringEncodingISO_2022_JP_1
= 0x0822, /* RFC 2237*/
170 kCFStringEncodingISO_2022_JP_3
= 0x0823, /* JIS X0213*/
171 kCFStringEncodingISO_2022_CN
= 0x0830,
172 kCFStringEncodingISO_2022_CN_EXT
= 0x0831,
173 kCFStringEncodingISO_2022_KR
= 0x0840,
175 /* EUC collections begin at 0x900 */
176 kCFStringEncodingEUC_JP
= 0x0920, /* ISO 646, 1-byte katakana, JIS 208, JIS 212 */
177 kCFStringEncodingEUC_CN
= 0x0930, /* ISO 646, GB 2312-80 */
178 kCFStringEncodingEUC_TW
= 0x0931, /* ISO 646, CNS 11643-1992 Planes 1-16 */
179 kCFStringEncodingEUC_KR
= 0x0940, /* ISO 646, KS C 5601-1987 */
181 /* Misc standards begin at 0xA00 */
182 kCFStringEncodingShiftJIS
= 0x0A01, /* plain Shift-JIS */
183 kCFStringEncodingKOI8_R
= 0x0A02, /* Russian internet standard */
184 kCFStringEncodingBig5
= 0x0A03, /* Big-5 (has variants) */
185 kCFStringEncodingMacRomanLatin1
= 0x0A04, /* Mac OS Roman permuted to align with ISO Latin-1 */
186 kCFStringEncodingHZ_GB_2312
= 0x0A05, /* HZ (RFC 1842, for Chinese mail & news) */
187 kCFStringEncodingBig5_HKSCS_1999
= 0x0A06, /* Big-5 with Hong Kong special char set supplement*/
188 #if MAC_OS_X_VERSION_10_4 <= MAC_OS_X_VERSION_MAX_ALLOWED
189 kCFStringEncodingVISCII
= 0x0A07, /* RFC 1456, Vietnamese */
190 kCFStringEncodingKOI8_U
= 0x0A08, /* RFC 2319, Ukrainian */
191 kCFStringEncodingBig5_E
= 0x0A09, /* Taiwan Big-5E standard */
194 /* Other platform encodings*/
195 /* kCFStringEncodingNextStepLatin = 0x0B01, defined in CoreFoundation/CFString.h */
196 #if MAC_OS_X_VERSION_10_4 <= MAC_OS_X_VERSION_MAX_ALLOWED
197 kCFStringEncodingNextStepJapanese
= 0x0B02, /* NextStep Japanese encoding */
200 /* EBCDIC & IBM host encodings begin at 0xC00 */
201 kCFStringEncodingEBCDIC_US
= 0x0C01, /* basic EBCDIC-US */
202 kCFStringEncodingEBCDIC_CP037
= 0x0C02, /* code page 037, extended EBCDIC (Latin-1 set) for US,Canada... */
204 #if MAC_OS_X_VERSION_10_6 <= MAC_OS_X_VERSION_MAX_ALLOWED
205 kCFStringEncodingUTF7
= 0x04000100, /* kTextEncodingUnicodeDefault + kUnicodeUTF7Format RFC2152 */
206 kCFStringEncodingUTF7_IMAP
= 0x0A10, /* UTF-7 (IMAP folder variant) RFC3501 */
207 #endif /* MAC_OS_X_VERSION_10_6 <= MAC_OS_X_VERSION_MAX_ALLOWED */
209 /* Deprecated constants */
210 kCFStringEncodingShiftJIS_X0213_00
= 0x0628 /* Shift-JIS format encoding of JIS X0213 planes 1 and 2 (DEPRECATED) */
212 typedef CFIndex CFStringEncodings
;
216 #endif /* ! __COREFOUNDATION_CFSTRINGENCODINGEXT__ */