FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
NSStringEncoding.h
Go to the documentation of this file.
1 //
2 // NSStringEncoding.h
3 // FoundationExtension
4 //
5 // Created by Jeong YunWon on 10. 11. 1..
6 // Copyright 2010 youknowone.org All rights reserved.
7 //
8 
20 enum {
21  // NSMacOSRomanStringEncoding = 0x80000000, // defined as 30
29  // missing 08
53  // missing 20
54  /* The following use script code 0, smRoman */
64  /* The following use script code 4, smArabic */
66  /* The following use script code 7, smCyrillic */
68  /* The following use script code 32, smUnimplemented */
70  NSMacVT100StringEncoding = 0x800000fc, /* VT100/102 font from Comm Toolbox: Latin-1 repertoire + box drawing etc */
71  /* ICecial Mac OS encodings*/
72  NSMacHFSStringEncoding = 0x800000ff,
73 
74  /* Unicode & ISO UCS encodings begin at 0x100 */
75  // NSUnicodeStringEncoding = 0x80000100,
76  // NSUTF8StringEncoding = 0x88000100, // defined as 4
77  // NSUTF16StringEncoding = 0x90000100,
78  // NSUTF16BigEndianStringEncoding = 0x90000100,
79  // NSUTF16LittleEndianStringEncoding = 0x94000100,
80  // NSUTF32StringEncoding = 0x8c000100,
81  // NSUTF32BigEndianStringEncoding = 0x98000100,
82  // NSUTF32LittleEndianStringEncoding = 0x9c000100,
83 #if MAC_OS_X_VERSION_10_6 <= MAC_OS_X_VERSION_MAX_ALLOWED || __IPHONE_2_0 <= __IPHONE_OS_VERSION_MAX_ALLOWED
84  NSUTF7StringEncoding = 0x84000100, /* kTextEncodingUnicodeDefault + kUnicodeUTF7Format RFC2152 */
85  NSUTF7IMAPStringEncoding = 0x80000A10, /* UTF-7 (IMAP folder variant) RFC3501 */
86 #endif
87 
88  /* ISO 8-bit and 7-bit encodings begin at 0x200 */
89  // NSISOLatin1StringEncoding = 0x80000201, /* ISO 8859-1, defined as 5 */
90  // NSISOLatin2StringEncoding = 0x80000202, /* ISO 8859-2, defined as 9 */
91  NSISOLatin3StringEncoding = 0x80000203, /* ISO 8859-3 */
92  NSISOLatin4StringEncoding = 0x80000204, /* ISO 8859-4 */
93  NSISOLatinCyrillicStringEncoding = 0x80000205, /* ISO 8859-5 */
94  NSISOLatinArabicStringEncoding = 0x80000206, /* ISO 8859-6, StringEncoding=ASMO 708, StringEncoding=DOS CP 708 */
95  NSISOLatinGreekStringEncoding = 0x80000207, /* ISO 8859-7 */
96  NSISOLatinHebrewStringEncoding = 0x80000208, /* ISO 8859-8 */
97  NSISOLatin5StringEncoding = 0x80000209, /* ISO 8859-9 */
98  NSISOLatin6StringEncoding = 0x8000020a, /* ISO 8859-10 */
99  NSISOLatinThaiStringEncoding = 0x8000020b, /* ISO 8859-11 */
100  // missing 0c
101  NSISOLatin7StringEncoding = 0x8000020d, /* ISO 8859-13 */
102  NSISOLatin8StringEncoding = 0x8000020e, /* ISO 8859-14 */
103  NSISOLatin9StringEncoding = 0x8000020f, /* ISO 8859-15 */
104 #if MAC_OS_X_VERSION_10_4 <= MAC_OS_X_VERSION_MAX_ALLOWED || __IPHONE_2_0 <= __IPHONE_OS_VERSION_MAX_ALLOWED
105  NSISOLatin10StringEncoding = 0x80000210, /* ISO 8859-16 */
106 #endif
107 
112 
113  /* MS-DOS & Windows encodings begin at 0x400 */
114  NSDOSLatinUSStringEncoding = 0x80000400, /* code page 437 */
115  NSDOSGreekStringEncoding = 0x80000405, /* code page 737 (formerly code page 437G) */
116  NSDOSBalticRimStringEncoding = 0x80000406, /* code page 775 */
117  NSDOSLatin1StringEncoding = 0x80000410, /* code page 850, "Multilingual" */
118  NSDOSGreek1StringEncoding = 0x80000411, /* code page 851 */
119  NSDOSLatin2StringEncoding = 0x80000412, /* code page 852, Slavic */
120  NSDOSCyrillicStringEncoding = 0x80000413, /* code page 855, IBM Cyrillic */
121  NSDOSTurkishStringEncoding = 0x80000414, /* code page 857, IBM Turkish */
122  NSDOICortugueseStringEncoding = 0x80000415, /* code page 860 */
123  NSDOSIcelandicStringEncoding = 0x80000416, /* code page 861 */
124  NSDOSHebrewStringEncoding = 0x80000417, /* code page 862 */
125  NSDOSCanadianFrenchStringEncoding = 0x80000418, /* code page 863 */
126  NSDOSArabicStringEncoding = 0x80000419, /* code page 864 */
127  NSDOSNordicStringEncoding = 0x8000041A, /* code page 865 */
128  NSDOSRussianStringEncoding = 0x8000041B, /* code page 866 */
129  NSDOSGreek2StringEncoding = 0x8000041C, /* code page 869, IBM Modern Greek */
130  NSDOSThaiStringEncoding = 0x8000041D, /* code page 874, also for Windows */
131  NSDOSJapaneseStringEncoding = 0x80000420, /* code page 932, also for Windows */
132  NSDOSChineseSimplifStringEncoding = 0x80000421, /* code page 936, also for Windows */
133  NSDOSKoreanStringEncoding = 0x80000422, /* code page 949, also for Windows; Unified Hangul Code */
134  NSDOSChineseTradStringEncoding = 0x80000423, /* code page 950, also for Windows */
135  NSWindowsLatin1StringEncoding = 0x80000500, /* code page 1252 */
136  NSWindowsLatin2StringEncoding = 0x80000501, /* code page 1250, Central Europe */
137  NSWindowsCyrillicStringEncoding = 0x80000502, /* code page 1251, Slavic Cyrillic */
138  NSWindowsGreekStringEncoding = 0x80000503, /* code page 1253 */
139  NSWindowsLatin5StringEncoding = 0x80000504, /* code page 1254, Turkish */
140  NSWindowsHebrewStringEncoding = 0x80000505, /* code page 1255 */
141  NSWindowsArabicStringEncoding = 0x80000506, /* code page 1256 */
142  NSWindowsBalticRimStringEncoding = 0x80000507, /* code page 1257 */
143  NSWindowsVietnameseStringEncoding = 0x80000508, /* code page 1258 */
144  NSWindowsKoreanJohabStringEncoding = 0x80000510, /* code page 1361, for Windows NT */
145 
146  // NSASCIIStringEncoding = 0x80000600, /* 0..127 defined as 1 */
152 #if MAC_OS_X_VERSION_10_5 <= MAC_OS_X_VERSION_MAX_ALLOWED || __IPHONE_2_0 <= __IPHONE_OS_VERSION_MAX_ALLOWED
153  NSShiftJIS_X0213StringEncoding = 0x80000628, /* Shift-JIS format encoding of JIS X0213 planes 1 and 2*/
154 #endif
155 #if MAC_OS_X_VERSION_10_4 <= MAC_OS_X_VERSION_MAX_ALLOWED || __IPHONE_2_0 <= __IPHONE_OS_VERSION_MAX_ALLOWED
156  NSShiftJIS_X0213_MenKuTenStringEncoding = 0x80000629, /* JIS X0213 in plane-row-column notation */
157  NSShiftJIS_X0213_00StringEncoding = 0x80000629, /* Shift-JIS format encoding of JIS X0213 planes 1 and 2 (DEPRECATED) */
158 #endif
160  NSGBK_95StringEncoding = 0x80000631, /* annex to GB 13000-93; for Windows 95 */
162  NSKSC_5601_87StringEncoding = 0x80000640, /* same as KSC 5601-92 without Johab annex */
163  NSKSC_5601_92_JohabStringEncoding = 0x80000641, /* KSC 5601-92 Johab annex */
164  NSCNS_11643_92_P1StringEncoding = 0x80000651, /* CNS 11643-1992 plane 1 */
165  NSCNS_11643_92_P2StringEncoding = 0x80000652, /* CNS 11643-1992 plane 2 */
166  NSCNS_11643_92_P3StringEncoding = 0x80000653, /* CNS 11643-1992 plane 3 (was plane 14 in 1986 version) */
167 
168  /* ISO 2022 collections begin at 0x800 */
171  NSISO2022Japanese1StringEncoding = 0x80000822, /* RFC 2237*/
172  NSISO2022Japanese3StringEncoding = 0x80000823, /* JIS X0213*/
176 
177  /* EUC collections begin at 0x900 */
178  NSEUCJapaneseStringEncoding = 0x80000920, /* ISO 646, 1-byte katakana, JIS 208, JIS 212 */
179  NSEUCChineseStringEncoding = 0x80000930, /* ISO 646, GB 2312-80 */
180  NSEUCTaiwanChineseStringEncoding = 0x80000931, /* ISO 646, CNS 11643-1992 Planes 1-16 */
181  NSEUCKoreanStringEncoding = 0x80000940, /* ISO 646, KS C 5601-1987 */
182 
186 
187  /* Misc standards begin at 0xA00 */
188  // NSShiftJISStringEncoding = 0x80000A01, /* plain Shift-JIS */
189  NSKOI8RStringEncoding = 0x80000A02, /* Russian internet standard */
190  NSBig5StringEncoding = 0x80000A03, /* Big-5 (has variants) */
191  NSMacRomanLatin1StringEncoding = 0x80000A04, /* Mac OS Roman permuted to align with ISO Latin-1 */
192  NSHZ_GB_2312StringEncoding = 0x80000A05, /* HZ (RFC 1842, for Chinese mail & news) */
193  NSBig5_HKSCS_1999StringEncoding = 0x80000A06, /* Big-5 with Hong Kong ICecial char set supplement*/
194 #if MAC_OS_X_VERSION_10_4 <= MAC_OS_X_VERSION_MAX_ALLOWED || __IPHONE_2_0 <= __IPHONE_OS_VERSION_MAX_ALLOWED
195  NSVISCIIStringEncoding = 0x80000A07, /* RFC 1456, Vietnamese */
196  NSKOI8UStringEncoding = 0x80000A08, /* RFC 2319, Ukrainian */
197  NSBig5EStringEncoding = 0x80000A09, /* Taiwan Big-5E standard */
198 #endif
199 
200  /* Other platform encodings*/
201  NSNextStepLatinStringEncoding = 0x80000B01, /* NextStep Latin encoding */
202 #if MAC_OS_X_VERSION_10_4 <= MAC_OS_X_VERSION_MAX_ALLOWED || __IPHONE_2_0 <= __IPHONE_OS_VERSION_MAX_ALLOWED
203  NSNextStepJapaneseStringEncoding = 0x80000B02, /* NextStep Japanese encoding */
204 #endif
205 
206  // NSNonLossyASCIIStringEncoding = 0x80000bff,
207 
208  /* EBCDIC & IBM host encodings begin at 0xC00 */
209  NSEBCDICUSStringEncoding = 0x80000C01, /* basic EBCDIC-US */
210  NSEBCDICCP037StringEncoding = 0x80000C02, /* code page 037, extended EBCDIC (Latin-1 set) for US,Canada... */
211 };
Definition: NSStringEncoding.h:39
Definition: NSStringEncoding.h:175
Definition: NSStringEncoding.h:34
Definition: NSStringEncoding.h:179
Definition: NSStringEncoding.h:58
Definition: NSStringEncoding.h:162
Definition: NSStringEncoding.h:84
Definition: NSStringEncoding.h:153
Definition: NSStringEncoding.h:60
Definition: NSStringEncoding.h:23
Definition: NSStringEncoding.h:25
Definition: NSStringEncoding.h:130
Definition: NSStringEncoding.h:110
Definition: NSStringEncoding.h:148
Definition: NSStringEncoding.h:157
Definition: NSStringEncoding.h:195
Definition: NSStringEncoding.h:143
Definition: NSStringEncoding.h:22
Definition: NSStringEncoding.h:184
Definition: NSStringEncoding.h:103
Definition: NSStringEncoding.h:28
Definition: NSStringEncoding.h:55
Definition: NSStringEncoding.h:131
Definition: NSStringEncoding.h:178
Definition: NSStringEncoding.h:121
Definition: NSStringEncoding.h:38
Definition: NSStringEncoding.h:91
Definition: NSStringEncoding.h:161
Definition: NSStringEncoding.h:96
Definition: NSStringEncoding.h:115
Definition: NSStringEncoding.h:95
Definition: NSStringEncoding.h:37
Definition: NSStringEncoding.h:40
Definition: NSStringEncoding.h:49
Definition: NSStringEncoding.h:192
Definition: NSStringEncoding.h:180
Definition: NSStringEncoding.h:42
Definition: NSStringEncoding.h:101
Definition: NSStringEncoding.h:70
Definition: NSStringEncoding.h:163
Definition: NSStringEncoding.h:114
Definition: NSStringEncoding.h:135
Definition: NSStringEncoding.h:151
Definition: NSStringEncoding.h:32
Definition: NSStringEncoding.h:137
Definition: NSStringEncoding.h:99
Definition: NSStringEncoding.h:98
Definition: NSStringEncoding.h:134
Definition: NSStringEncoding.h:62
Definition: NSStringEncoding.h:122
Definition: NSStringEncoding.h:50
Definition: NSStringEncoding.h:173
Definition: NSStringEncoding.h:201
Definition: NSStringEncoding.h:132
Definition: NSStringEncoding.h:149
Definition: NSStringEncoding.h:65
Definition: NSStringEncoding.h:52
Definition: NSStringEncoding.h:170
Definition: NSStringEncoding.h:142
Definition: NSStringEncoding.h:116
Definition: NSStringEncoding.h:190
Definition: NSStringEncoding.h:117
Definition: NSStringEncoding.h:189
Definition: NSStringEncoding.h:171
Definition: NSStringEncoding.h:92
Definition: NSStringEncoding.h:119
Definition: NSStringEncoding.h:136
Definition: NSStringEncoding.h:97
Definition: NSStringEncoding.h:118
Definition: NSStringEncoding.h:30
Definition: NSStringEncoding.h:147
Definition: NSStringEncoding.h:126
Definition: NSStringEncoding.h:47
Definition: NSStringEncoding.h:209
Definition: NSStringEncoding.h:181
Definition: NSStringEncoding.h:108
Definition: NSStringEncoding.h:24
Definition: NSStringEncoding.h:150
Definition: NSStringEncoding.h:183
Definition: NSStringEncoding.h:27
Definition: NSStringEncoding.h:185
Definition: NSStringEncoding.h:127
Definition: NSStringEncoding.h:35
Definition: NSStringEncoding.h:141
Definition: NSStringEncoding.h:128
Definition: NSStringEncoding.h:93
Definition: NSStringEncoding.h:169
Definition: NSStringEncoding.h:36
Definition: NSStringEncoding.h:44
Definition: NSStringEncoding.h:172
Definition: NSStringEncoding.h:67
Definition: NSStringEncoding.h:159
Definition: NSStringEncoding.h:210
Definition: NSStringEncoding.h:197
Definition: NSStringEncoding.h:69
Definition: NSStringEncoding.h:164
Definition: NSStringEncoding.h:31
Definition: NSStringEncoding.h:140
Definition: NSStringEncoding.h:139
Definition: NSStringEncoding.h:166
Definition: NSStringEncoding.h:43
Definition: NSStringEncoding.h:41
Definition: NSStringEncoding.h:72
Definition: NSStringEncoding.h:156
Definition: NSStringEncoding.h:56
Definition: NSStringEncoding.h:26
Definition: NSStringEncoding.h:138
Definition: NSStringEncoding.h:193
Definition: NSStringEncoding.h:144
Definition: NSStringEncoding.h:125
Definition: NSStringEncoding.h:174
Definition: NSStringEncoding.h:123
Definition: NSStringEncoding.h:105
Definition: NSStringEncoding.h:203
Definition: NSStringEncoding.h:120
Definition: NSStringEncoding.h:160
Definition: NSStringEncoding.h:165
Definition: NSStringEncoding.h:45
Definition: NSStringEncoding.h:46
Definition: NSStringEncoding.h:109
Definition: NSStringEncoding.h:85
Definition: NSStringEncoding.h:111
Definition: NSStringEncoding.h:51
Definition: NSStringEncoding.h:48
Definition: NSStringEncoding.h:196
Definition: NSStringEncoding.h:33
Definition: NSStringEncoding.h:191
Definition: NSStringEncoding.h:59
Definition: NSStringEncoding.h:102
Definition: NSStringEncoding.h:133
Definition: NSStringEncoding.h:129
Definition: NSStringEncoding.h:57
Definition: NSStringEncoding.h:124
Definition: NSStringEncoding.h:94
Definition: NSStringEncoding.h:63
Definition: NSStringEncoding.h:61