2 * Copyright (c) 2011 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-2011, 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 kCFStringEncodingISOLatin10
= 0x0210, /* ISO 8859-16 */
106 /* MS-DOS & Windows encodings begin at 0x400 */
107 kCFStringEncodingDOSLatinUS
= 0x0400, /* code page 437 */
108 kCFStringEncodingDOSGreek
= 0x0405, /* code page 737 (formerly code page 437G) */
109 kCFStringEncodingDOSBalticRim
= 0x0406, /* code page 775 */
110 kCFStringEncodingDOSLatin1
= 0x0410, /* code page 850, "Multilingual" */
111 kCFStringEncodingDOSGreek1
= 0x0411, /* code page 851 */
112 kCFStringEncodingDOSLatin2
= 0x0412, /* code page 852, Slavic */
113 kCFStringEncodingDOSCyrillic
= 0x0413, /* code page 855, IBM Cyrillic */
114 kCFStringEncodingDOSTurkish
= 0x0414, /* code page 857, IBM Turkish */
115 kCFStringEncodingDOSPortuguese
= 0x0415, /* code page 860 */
116 kCFStringEncodingDOSIcelandic
= 0x0416, /* code page 861 */
117 kCFStringEncodingDOSHebrew
= 0x0417, /* code page 862 */
118 kCFStringEncodingDOSCanadianFrench
= 0x0418, /* code page 863 */
119 kCFStringEncodingDOSArabic
= 0x0419, /* code page 864 */
120 kCFStringEncodingDOSNordic
= 0x041A, /* code page 865 */
121 kCFStringEncodingDOSRussian
= 0x041B, /* code page 866 */
122 kCFStringEncodingDOSGreek2
= 0x041C, /* code page 869, IBM Modern Greek */
123 kCFStringEncodingDOSThai
= 0x041D, /* code page 874, also for Windows */
124 kCFStringEncodingDOSJapanese
= 0x0420, /* code page 932, also for Windows */
125 kCFStringEncodingDOSChineseSimplif
= 0x0421, /* code page 936, also for Windows */
126 kCFStringEncodingDOSKorean
= 0x0422, /* code page 949, also for Windows; Unified Hangul Code */
127 kCFStringEncodingDOSChineseTrad
= 0x0423, /* code page 950, also for Windows */
128 /* kCFStringEncodingWindowsLatin1 = 0x0500, defined in CoreFoundation/CFString.h */
129 kCFStringEncodingWindowsLatin2
= 0x0501, /* code page 1250, Central Europe */
130 kCFStringEncodingWindowsCyrillic
= 0x0502, /* code page 1251, Slavic Cyrillic */
131 kCFStringEncodingWindowsGreek
= 0x0503, /* code page 1253 */
132 kCFStringEncodingWindowsLatin5
= 0x0504, /* code page 1254, Turkish */
133 kCFStringEncodingWindowsHebrew
= 0x0505, /* code page 1255 */
134 kCFStringEncodingWindowsArabic
= 0x0506, /* code page 1256 */
135 kCFStringEncodingWindowsBalticRim
= 0x0507, /* code page 1257 */
136 kCFStringEncodingWindowsVietnamese
= 0x0508, /* code page 1258 */
137 kCFStringEncodingWindowsKoreanJohab
= 0x0510, /* code page 1361, for Windows NT */
139 /* Various national standards begin at 0x600 */
140 /* kCFStringEncodingASCII = 0x0600, defined in CoreFoundation/CFString.h */
141 kCFStringEncodingANSEL
= 0x0601, /* ANSEL (ANSI Z39.47) */
142 kCFStringEncodingJIS_X0201_76
= 0x0620,
143 kCFStringEncodingJIS_X0208_83
= 0x0621,
144 kCFStringEncodingJIS_X0208_90
= 0x0622,
145 kCFStringEncodingJIS_X0212_90
= 0x0623,
146 kCFStringEncodingJIS_C6226_78
= 0x0624,
147 #if MAC_OS_X_VERSION_10_5 <= MAC_OS_X_VERSION_MAX_ALLOWED
148 kCFStringEncodingShiftJIS_X0213
= 0x0628, /* Shift-JIS format encoding of JIS X0213 planes 1 and 2*/
150 kCFStringEncodingShiftJIS_X0213_MenKuTen
= 0x0629, /* JIS X0213 in plane-row-column notation */
151 kCFStringEncodingGB_2312_80
= 0x0630,
152 kCFStringEncodingGBK_95
= 0x0631, /* annex to GB 13000-93; for Windows 95 */
153 kCFStringEncodingGB_18030_2000
= 0x0632,
154 kCFStringEncodingKSC_5601_87
= 0x0640, /* same as KSC 5601-92 without Johab annex */
155 kCFStringEncodingKSC_5601_92_Johab
= 0x0641, /* KSC 5601-92 Johab annex */
156 kCFStringEncodingCNS_11643_92_P1
= 0x0651, /* CNS 11643-1992 plane 1 */
157 kCFStringEncodingCNS_11643_92_P2
= 0x0652, /* CNS 11643-1992 plane 2 */
158 kCFStringEncodingCNS_11643_92_P3
= 0x0653, /* CNS 11643-1992 plane 3 (was plane 14 in 1986 version) */
160 /* ISO 2022 collections begin at 0x800 */
161 kCFStringEncodingISO_2022_JP
= 0x0820,
162 kCFStringEncodingISO_2022_JP_2
= 0x0821,
163 kCFStringEncodingISO_2022_JP_1
= 0x0822, /* RFC 2237*/
164 kCFStringEncodingISO_2022_JP_3
= 0x0823, /* JIS X0213*/
165 kCFStringEncodingISO_2022_CN
= 0x0830,
166 kCFStringEncodingISO_2022_CN_EXT
= 0x0831,
167 kCFStringEncodingISO_2022_KR
= 0x0840,
169 /* EUC collections begin at 0x900 */
170 kCFStringEncodingEUC_JP
= 0x0920, /* ISO 646, 1-byte katakana, JIS 208, JIS 212 */
171 kCFStringEncodingEUC_CN
= 0x0930, /* ISO 646, GB 2312-80 */
172 kCFStringEncodingEUC_TW
= 0x0931, /* ISO 646, CNS 11643-1992 Planes 1-16 */
173 kCFStringEncodingEUC_KR
= 0x0940, /* ISO 646, KS C 5601-1987 */
175 /* Misc standards begin at 0xA00 */
176 kCFStringEncodingShiftJIS
= 0x0A01, /* plain Shift-JIS */
177 kCFStringEncodingKOI8_R
= 0x0A02, /* Russian internet standard */
178 kCFStringEncodingBig5
= 0x0A03, /* Big-5 (has variants) */
179 kCFStringEncodingMacRomanLatin1
= 0x0A04, /* Mac OS Roman permuted to align with ISO Latin-1 */
180 kCFStringEncodingHZ_GB_2312
= 0x0A05, /* HZ (RFC 1842, for Chinese mail & news) */
181 kCFStringEncodingBig5_HKSCS_1999
= 0x0A06, /* Big-5 with Hong Kong special char set supplement*/
182 kCFStringEncodingVISCII
= 0x0A07, /* RFC 1456, Vietnamese */
183 kCFStringEncodingKOI8_U
= 0x0A08, /* RFC 2319, Ukrainian */
184 kCFStringEncodingBig5_E
= 0x0A09, /* Taiwan Big-5E standard */
186 /* Other platform encodings*/
187 /* kCFStringEncodingNextStepLatin = 0x0B01, defined in CoreFoundation/CFString.h */
188 kCFStringEncodingNextStepJapanese
= 0x0B02, /* NextStep Japanese encoding */
190 /* EBCDIC & IBM host encodings begin at 0xC00 */
191 kCFStringEncodingEBCDIC_US
= 0x0C01, /* basic EBCDIC-US */
192 kCFStringEncodingEBCDIC_CP037
= 0x0C02, /* code page 037, extended EBCDIC (Latin-1 set) for US,Canada... */
194 #if MAC_OS_X_VERSION_10_6 <= MAC_OS_X_VERSION_MAX_ALLOWED
195 kCFStringEncodingUTF7
= 0x04000100, /* kTextEncodingUnicodeDefault + kUnicodeUTF7Format RFC2152 */
196 kCFStringEncodingUTF7_IMAP
= 0x0A10, /* UTF-7 (IMAP folder variant) RFC3501 */
197 #endif /* MAC_OS_X_VERSION_10_6 <= MAC_OS_X_VERSION_MAX_ALLOWED */
199 /* Deprecated constants */
200 kCFStringEncodingShiftJIS_X0213_00
= 0x0628 /* Shift-JIS format encoding of JIS X0213 planes 1 and 2 (DEPRECATED) */
202 typedef CFIndex CFStringEncodings
;
206 #endif /* ! __COREFOUNDATION_CFSTRINGENCODINGEXT__ */