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