]> git.saurik.com Git - apple/cf.git/blob - String.subproj/CFStringEncodingExt.h
CF-368.27.tar.gz
[apple/cf.git] / String.subproj / CFStringEncodingExt.h
1 /*
2 * Copyright (c) 2005 Apple Computer, 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-2005, 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 #if defined(__cplusplus)
33 extern "C" {
34 #endif
35
36 typedef enum {
37 /* kCFStringEncodingMacRoman = 0L, defined in CoreFoundation/CFString.h */
38 kCFStringEncodingMacJapanese = 1,
39 kCFStringEncodingMacChineseTrad = 2,
40 kCFStringEncodingMacKorean = 3,
41 kCFStringEncodingMacArabic = 4,
42 kCFStringEncodingMacHebrew = 5,
43 kCFStringEncodingMacGreek = 6,
44 kCFStringEncodingMacCyrillic = 7,
45 kCFStringEncodingMacDevanagari = 9,
46 kCFStringEncodingMacGurmukhi = 10,
47 kCFStringEncodingMacGujarati = 11,
48 kCFStringEncodingMacOriya = 12,
49 kCFStringEncodingMacBengali = 13,
50 kCFStringEncodingMacTamil = 14,
51 kCFStringEncodingMacTelugu = 15,
52 kCFStringEncodingMacKannada = 16,
53 kCFStringEncodingMacMalayalam = 17,
54 kCFStringEncodingMacSinhalese = 18,
55 kCFStringEncodingMacBurmese = 19,
56 kCFStringEncodingMacKhmer = 20,
57 kCFStringEncodingMacThai = 21,
58 kCFStringEncodingMacLaotian = 22,
59 kCFStringEncodingMacGeorgian = 23,
60 kCFStringEncodingMacArmenian = 24,
61 kCFStringEncodingMacChineseSimp = 25,
62 kCFStringEncodingMacTibetan = 26,
63 kCFStringEncodingMacMongolian = 27,
64 kCFStringEncodingMacEthiopic = 28,
65 kCFStringEncodingMacCentralEurRoman = 29,
66 kCFStringEncodingMacVietnamese = 30,
67 kCFStringEncodingMacExtArabic = 31,
68 /* The following use script code 0, smRoman */
69 kCFStringEncodingMacSymbol = 33,
70 kCFStringEncodingMacDingbats = 34,
71 kCFStringEncodingMacTurkish = 35,
72 kCFStringEncodingMacCroatian = 36,
73 kCFStringEncodingMacIcelandic = 37,
74 kCFStringEncodingMacRomanian = 38,
75 kCFStringEncodingMacCeltic = 39,
76 kCFStringEncodingMacGaelic = 40,
77 /* The following use script code 4, smArabic */
78 kCFStringEncodingMacFarsi = 0x8C, /* Like MacArabic but uses Farsi digits */
79 /* The following use script code 7, smCyrillic */
80 kCFStringEncodingMacUkrainian = 0x98,
81 /* The following use script code 32, smUnimplemented */
82 kCFStringEncodingMacInuit = 0xEC,
83 kCFStringEncodingMacVT100 = 0xFC, /* VT100/102 font from Comm Toolbox: Latin-1 repertoire + box drawing etc */
84 /* Special Mac OS encodings*/
85 kCFStringEncodingMacHFS = 0xFF, /* Meta-value, should never appear in a table */
86
87 /* Unicode & ISO UCS encodings begin at 0x100 */
88 /* We don't use Unicode variations defined in TextEncoding; use the ones in CFString.h, instead. */
89
90 /* ISO 8-bit and 7-bit encodings begin at 0x200 */
91 /* kCFStringEncodingISOLatin1 = 0x0201, defined in CoreFoundation/CFString.h */
92 kCFStringEncodingISOLatin2 = 0x0202, /* ISO 8859-2 */
93 kCFStringEncodingISOLatin3 = 0x0203, /* ISO 8859-3 */
94 kCFStringEncodingISOLatin4 = 0x0204, /* ISO 8859-4 */
95 kCFStringEncodingISOLatinCyrillic = 0x0205, /* ISO 8859-5 */
96 kCFStringEncodingISOLatinArabic = 0x0206, /* ISO 8859-6, =ASMO 708, =DOS CP 708 */
97 kCFStringEncodingISOLatinGreek = 0x0207, /* ISO 8859-7 */
98 kCFStringEncodingISOLatinHebrew = 0x0208, /* ISO 8859-8 */
99 kCFStringEncodingISOLatin5 = 0x0209, /* ISO 8859-9 */
100 kCFStringEncodingISOLatin6 = 0x020A, /* ISO 8859-10 */
101 kCFStringEncodingISOLatinThai = 0x020B, /* ISO 8859-11 */
102 kCFStringEncodingISOLatin7 = 0x020D, /* ISO 8859-13 */
103 kCFStringEncodingISOLatin8 = 0x020E, /* ISO 8859-14 */
104 kCFStringEncodingISOLatin9 = 0x020F, /* ISO 8859-15 */
105 #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
106 kCFStringEncodingISOLatin10 = 0x0210, /* ISO 8859-16 */
107 #endif /* MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4 */
108
109 /* MS-DOS & Windows encodings begin at 0x400 */
110 kCFStringEncodingDOSLatinUS = 0x0400, /* code page 437 */
111 kCFStringEncodingDOSGreek = 0x0405, /* code page 737 (formerly code page 437G) */
112 kCFStringEncodingDOSBalticRim = 0x0406, /* code page 775 */
113 kCFStringEncodingDOSLatin1 = 0x0410, /* code page 850, "Multilingual" */
114 kCFStringEncodingDOSGreek1 = 0x0411, /* code page 851 */
115 kCFStringEncodingDOSLatin2 = 0x0412, /* code page 852, Slavic */
116 kCFStringEncodingDOSCyrillic = 0x0413, /* code page 855, IBM Cyrillic */
117 kCFStringEncodingDOSTurkish = 0x0414, /* code page 857, IBM Turkish */
118 kCFStringEncodingDOSPortuguese = 0x0415, /* code page 860 */
119 kCFStringEncodingDOSIcelandic = 0x0416, /* code page 861 */
120 kCFStringEncodingDOSHebrew = 0x0417, /* code page 862 */
121 kCFStringEncodingDOSCanadianFrench = 0x0418, /* code page 863 */
122 kCFStringEncodingDOSArabic = 0x0419, /* code page 864 */
123 kCFStringEncodingDOSNordic = 0x041A, /* code page 865 */
124 kCFStringEncodingDOSRussian = 0x041B, /* code page 866 */
125 kCFStringEncodingDOSGreek2 = 0x041C, /* code page 869, IBM Modern Greek */
126 kCFStringEncodingDOSThai = 0x041D, /* code page 874, also for Windows */
127 kCFStringEncodingDOSJapanese = 0x0420, /* code page 932, also for Windows */
128 kCFStringEncodingDOSChineseSimplif = 0x0421, /* code page 936, also for Windows */
129 kCFStringEncodingDOSKorean = 0x0422, /* code page 949, also for Windows; Unified Hangul Code */
130 kCFStringEncodingDOSChineseTrad = 0x0423, /* code page 950, also for Windows */
131 /* kCFStringEncodingWindowsLatin1 = 0x0500, defined in CoreFoundation/CFString.h */
132 kCFStringEncodingWindowsLatin2 = 0x0501, /* code page 1250, Central Europe */
133 kCFStringEncodingWindowsCyrillic = 0x0502, /* code page 1251, Slavic Cyrillic */
134 kCFStringEncodingWindowsGreek = 0x0503, /* code page 1253 */
135 kCFStringEncodingWindowsLatin5 = 0x0504, /* code page 1254, Turkish */
136 kCFStringEncodingWindowsHebrew = 0x0505, /* code page 1255 */
137 kCFStringEncodingWindowsArabic = 0x0506, /* code page 1256 */
138 kCFStringEncodingWindowsBalticRim = 0x0507, /* code page 1257 */
139 kCFStringEncodingWindowsVietnamese = 0x0508, /* code page 1258 */
140 kCFStringEncodingWindowsKoreanJohab = 0x0510, /* code page 1361, for Windows NT */
141
142 /* Various national standards begin at 0x600 */
143 /* kCFStringEncodingASCII = 0x0600, defined in CoreFoundation/CFString.h */
144 #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
145 kCFStringEncodingANSEL = 0x0601, /* ANSEL (ANSI Z39.47) */
146 #endif /* MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4 */
147 kCFStringEncodingJIS_X0201_76 = 0x0620,
148 kCFStringEncodingJIS_X0208_83 = 0x0621,
149 kCFStringEncodingJIS_X0208_90 = 0x0622,
150 kCFStringEncodingJIS_X0212_90 = 0x0623,
151 kCFStringEncodingJIS_C6226_78 = 0x0624,
152 kCFStringEncodingShiftJIS_X0213_00 = 0x0628, /* Shift-JIS format encoding of JIS X0213 planes 1 and 2*/
153 #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
154 kCFStringEncodingShiftJIS_X0213_MenKuTen = 0x0629, /* JIS X0213 in plane-row-column notation */
155 #endif /* MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4 */
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_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
188 kCFStringEncodingVISCII = 0x0A07, /* RFC 1456, Vietnamese */
189 kCFStringEncodingKOI8_U = 0x0A08, /* RFC 2319, Ukrainian */
190 kCFStringEncodingBig5_E = 0x0A09, /* Taiwan Big-5E standard */
191 #endif /* MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4 */
192
193 /* Other platform encodings*/
194 /* kCFStringEncodingNextStepLatin = 0x0B01, defined in CoreFoundation/CFString.h */
195 #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
196 kCFStringEncodingNextStepJapanese = 0x0B02, /* NextStep Japanese encoding */
197 #endif /* MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4 */
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 } CFStringEncodings;
203
204 #if defined(__cplusplus)
205 }
206 #endif
207
208 #endif /* !__COREFOUNDATION_CFSTRINGENCODINGEXT__ */
209