YSTest: Encoding.h 源文件

YSTest PreAlpha_b800_20170810 The YSLib Test Project

- 首页
- 相关页面
- 模块
- 命名空间
- 类
- 文件

- 文件列表
- 文件成员

Encoding.h
浏览该文件的文档.
1 /*
2 © 2009-2013, 2015 FrankHB.
3
4 This file is part of the YSLib project, and may only be used,
5 modified, and distributed under the terms of the YSLib project
6 license, LICENSE.TXT. By continuing to use, modify, or distribute
7 this file you indicate that you have read the license and
8 understand and accept it fully.
9 */
10
28 #ifndef INC_CHRLib_encoding_h_
29 #define INC_CHRLib_encoding_h_ 1
30
31 #include "YModules.h"
32 #include YFM_CHRLib_CharacterDefinition
33 #include <ystdex/cstdint.hpp> // for ystdex::byte_order;
34
35 namespace CHRLib
36 {
37
39 using ByteOrder = ystdex::byte_order;
40
41 namespace CharSet
42 {
43
58 enum Encoding
59 {
61
62 Null = 0,
65 other = 1,
67 unknown = 2,
69 csASCII = 3,
70 csISOLatin1 = 4,
71 csISOLatin2 = 5,
72 csISOLatin3 = 6,
73 csISOLatin4 = 7,
74 csISOLatinCyrillic = 8,
75 csISOLatinArabic = 9,
76 csISOLatinGreek = 10,
77 csISOLatinHebrew = 11,
78 csISOLatin5 = 12,
79 csISOLatin6 = 13,
80 csISOTextComm = 14,
81 csHalfWidthKatakana = 15,
82 csJISEncoding = 16,
83 csShiftJIS = 17,
84 csEUCPkdFmtJapanese = 18,
85 csEUCFixWidJapanese = 19,
86 csISO4UnitedKingdom = 20,
87 csISO11SwedishForNames = 21,
88 csISO15Italian = 22,
89 csISO17Spanish = 23,
90 csISO21German = 24,
91 csISO60DanishNorwegian = 25,
92 csISO69French = 26,
93 csISO10646UTF1 = 27,
94 csISO646basic1983 = 28,
95 csINVARIANT = 29,
96 csISO2IntlRefVersion = 30,
97 csNATSSEFI = 31,
98 csNATSSEFIADD = 32,
99 csNATSDANO = 33,
100 csNATSDANOADD = 34,
101 csISO10Swedish = 35,
102 csKSC56011987 = 36,
103 csISO2022KR = 37,
104 csEUCKR = 38,
105 csISO2022JP = 39,
106 csISO2022JP2 = 40,
107 csISO13JISC6220jp = 41,
108 csISO14JISC6220ro = 42,
109 csISO16Portuguese = 43,
110 csISO18Greek7Old = 44,
111 csISO19LatinGreek = 45,
112 csISO25French = 46,
113 csISO27LatinGreek1 = 47,
114 csISO5427Cyrillic = 48,
115 csISO42JISC62261978 = 49,
116 csISO47BSViewdata = 50,
117 csISO49INIS = 51,
118 csISO50INIS8 = 52,
119 csISO51INISCyrillic = 53,
120 csISO54271981 = 54,
121 csISO5428Greek = 55,
122 csISO57GB1988 = 56,
123 csISO58GB231280 = 57,
124 csISO61Norwegian2 = 58,
125 csISO70VideotexSupp1 = 59,
126 csISO84Portuguese2 = 60,
127 csISO85Spanish2 = 61,
128 csISO86Hungarian = 62,
129 csISO87JISX0208 = 63,
130 csISO88Greek7 = 64,
131 csISO89ASMO449 = 65,
132 csISO90 = 66,
133 csISO91JISC62291984a = 67,
134 csISO92JISC62991984b = 68,
135 csISO93JIS62291984badd = 69,
136 csISO94JIS62291984hand = 70,
137 csISO95JIS62291984handadd = 71,
138 csISO96JISC62291984kana = 72,
139 csISO2033 = 73,
140 csISO99NAPLPS = 74,
141 csISO102T617bit = 75,
142 csISO103T618bit = 76,
143 csISO111ECMACyrillic = 77,
144 csa71 = 78,
145 csa72 = 79,
146 csISO123CSAZ24341985gr = 80,
147 csISO88596E = 81,
148 csISO88596I = 82,
149 csISO128T101G2 = 83,
150 csISO88598E = 84,
151 csISO88598I = 85,
152 csISO139CSN369103 = 86,
153 csISO141JUSIB1002 = 87,
154 csISO143IECP271 = 88,
155 csISO146Serbian = 89,
156 csISO147Macedonian = 90,
157 csISO150 = 91,
158 csISO151Cuba = 92,
159 csISO6937Add = 93,
160 csISO153GOST1976874 = 94,
161 csISO8859Supp = 95,
162 csISO10367Box = 96,
163 csISO158Lap = 97,
164 csISO159JISX02121990 = 98,
165 csISO646Danish = 99,
166 csUSDK = 100,
167 csDKUS = 101,
168 csKSC5636 = 102,
169 csUnicode11UTF7 = 103,
170 csISO2022CN = 104,
171 csISO2022CNEXT = 105,
172 csUTF8 = 106,
173 csISO885913 = 109,
174 csISO885914 = 110,
175 csISO885915 = 111,
176 csISO885916 = 112,
177 csGBK = 113,
178 csGB18030 = 114,
179 csOSDEBCDICDF0415 = 115,
180 csOSDEBCDICDF03IRV = 116,
181 csOSDEBCDICDF041 = 117,
182 csISO115481 = 118,
183 csKZ1048 = 119,
184 csUnicode = 1000,
185 csUCS4 = 1001,
186 csUnicodeASCII = 1002,
187 csUnicodeLatin1 = 1003,
188 csUnicodeIBM1261 = 1005,
189 csUnicodeIBM1268 = 1006,
190 csUnicodeIBM1276 = 1007,
191 csUnicodeIBM1264 = 1008,
192 csUnicodeIBM1265 = 1009,
193 csUnicode11 = 1010,
194 csSCSU = 1011,
195 csUTF7 = 1012,
196 csUTF16BE = 1013,
197 csUTF16LE = 1014,
198 csUTF16 = 1015,
199 csCESU8 = 1016,
200 csUTF32 = 1017,
201 csUTF32BE = 1018,
202 csUTF32LE = 1019,
203 csBOCU1 = 1020,
204 csWindows30Latin1 = 2000,
205 csWindows31Latin1 = 2001,
206 csWindows31Latin2 = 2002,
207 csWindows31Latin5 = 2003,
208 csHPRoman8 = 2004,
209 csAdobeStandardEncoding = 2005,
210 csVenturaUS = 2006,
211 csVenturaInternational = 2007,
212 csDECMCS = 2008,
213 csPC850Multilingual = 2009,
214 csPCp852 = 2010,
215 csPC8CodePage437 = 2011,
216 csPC8DanishNorwegian = 2012,
217 csPC862LatinHebrew = 2013,
218 csPC8Turkish = 2014,
219 csIBMSymbols = 2015,
220 csIBMThai = 2016,
221 csHPLegal = 2017,
222 csHPPiFont = 2018,
223 csHPMath8 = 2019,
224 csHPPSMath = 2020,
225 csHPDesktop = 2021,
226 csVenturaMath = 2022,
227 csMicrosoftPublishing = 2023,
228 csWindows31J = 2024,
229 csGB2312 = 2025,
230 csBig5 = 2026,
231 csMacintosh = 2027,
232 csIBM037 = 2028,
233 csIBM038 = 2029,
234 csIBM273 = 2030,
235 csIBM274 = 2031,
236 csIBM275 = 2032,
237 csIBM277 = 2033,
238 csIBM278 = 2034,
239 csIBM280 = 2035,
240 csIBM281 = 2036,
241 csIBM284 = 2037,
242 csIBM285 = 2038,
243 csIBM290 = 2039,
244 csIBM297 = 2040,
245 csIBM420 = 2041,
246 csIBM423 = 2042,
247 csIBM424 = 2043,
248 csIBM500 = 2044,
249 csIBM851 = 2045,
250 csIBM855 = 2046,
251 csIBM857 = 2047,
252 csIBM860 = 2048,
253 csIBM861 = 2049,
254 csIBM863 = 2050,
255 csIBM864 = 2051,
256 csIBM865 = 2052,
257 csIBM868 = 2053,
258 csIBM869 = 2054,
259 csIBM870 = 2055,
260 csIBM871 = 2056,
261 csIBM880 = 2057,
262 csIBM891 = 2058,
263 csIBM903 = 2059,
264 csIBBM904 = 2060,
265 csIBM905 = 2061,
266 csIBM918 = 2062,
267 csIBM1026 = 2063,
268 csIBMEBCDICATDE = 2064,
269 csEBCDICATDEA = 2065,
270 csEBCDICCAFR = 2066,
271 csEBCDICDKNO = 2067,
272 csEBCDICDKNOA = 2068,
273 csEBCDICFISE = 2069,
274 csEBCDICFISEA = 2070,
275 csEBCDICFR = 2071,
276 csEBCDICIT = 2072,
277 csEBCDICPT = 2073,
278 csEBCDICES = 2074,
279 csEBCDICESA = 2075,
280 csEBCDICESS = 2076,
281 csEBCDICUK = 2077,
282 csEBCDICUS = 2078,
283 csUnknown8BiT = 2079,
284 csMnemonic = 2080,
285 csMnem = 2081,
286 csVISCII = 2082,
287 csVIQR = 2083,
288 csKOI8R = 2084,
289 csHZGB2312 = 2085,
290 csIBM866 = 2086,
291 csPC775Baltic = 2087,
292 csKOI8U = 2088,
293 csIBM00858 = 2089,
294 csIBM00924 = 2090,
295 csIBM01140 = 2091,
296 csIBM01141 = 2092,
297 csIBM01142 = 2093,
298 csIBM01143 = 2094,
299 csIBM01144 = 2095,
300 csIBM01145 = 2096,
301 csIBM01146 = 2097,
302 csIBM01147 = 2098,
303 csIBM01148 = 2099,
304 csIBM01149 = 2100,
305 csBig5HKSCS = 2101,
306 csIBM1047 = 2102,
307 csPTCP154 = 2103,
308 csAmiga1251 = 2104,
309 csKOI7switched = 2105,
310 csBRF = 2106,
311 csTSCII = 2107,
312 csCP51932 = 2108,
313 cswindows874 = 2109,
314 cswindows1250 = 2250,
315 cswindows1251 = 2251,
316 cswindows1252 = 2252,
317 cswindows1253 = 2253,
318 cswindows1254 = 2254,
319 cswindows1255 = 2255,
320 cswindows1256 = 2256,
321 cswindows1257 = 2257,
322 cswindows1258 = 2258,
323 csTIS620 = 2259,
324 cs50220 = 2260,
325 reserved = 3000
326 };
327
329 yconstexpr const Encoding US_ASCII(csASCII), SHIFT_JIS(csShiftJIS),
330 KS_C_5601_1987(csKSC56011987), EUC_KR(csEUCKR), ASMO_449(csISO89ASMO449),
331 UTF_8(csUTF8), GBK(csGBK), GB18030(csGB18030), ISO_10646_UCS_2(csUnicode),
332 ISO_10646_UCS_4(csUCS4), ISO_10646_UCS_Basic(csUnicodeASCII), UTF_7(csUTF7),
333 UTF_16BE(csUTF16BE), UTF_16LE(csUTF16LE), UTF_16(csUTF16), UTF_32(csUTF32),
334 UTF_32BE(csUTF32BE), UTF_32LE(csUTF32LE),
335 GB2312(csGB2312),
336 Big5(csBig5)//,
337 ;
338 //未归类在 MIB 枚举中。
339 /*
340 HZ_GB_2312 = 52396, //!< Chinese Simplified (HZ)，GB2312 的另一种实现。
341 MIK; //!< Supports Bulgarian and Russian as well
342 */
343
345 yconstexpr const Encoding iso_ir_6(US_ASCII), ISO646_US(US_ASCII),
346 ASCII(US_ASCII), us(US_ASCII), IBM367(US_ASCII), cp367(US_ASCII),
347 MS_Kanji(SHIFT_JIS), windows_932_(SHIFT_JIS), iso_ir_149(KS_C_5601_1987),
348 KS_C_5601_1989(KS_C_5601_1987), KSC_5601(KS_C_5601_1987),
349 korean(KS_C_5601_1987), windows_949_(KS_C_5601_1987), windows_65001_(UTF_8),
350 CP936(GBK), MS936(GBK), windows_936(GBK), windows_54936_(GB18030),
351 windows_1201_(UTF_16BE), windows_1200_(UTF_16LE), EUC_CN_(GB2312),
352 windows_51936_(GB2312), windows_950_(Big5);
353
362 template<Encoding>
363 struct EncodingTraits
364 {
365 static yconstexpr const ByteOrder byte_order = ByteOrder::unknown;
366 using type = char;
367 };
368
369 template<>
370 struct EncodingTraits<csUTF8>
371 {
372 static yconstexpr const ByteOrder byte_order = ByteOrder::neutral;
373 using type = char;
374 };
375
376 template<>
377 struct EncodingTraits<csUnicode>
378 {
379 static yconstexpr const ByteOrder byte_order = ByteOrder::unknown;
380 using type = char16_t;
381 };
382
383 template<>
384 struct EncodingTraits<csUCS4>
385 {
386 static yconstexpr const ByteOrder byte_order = ByteOrder::unknown;
387 using type = char32_t;
388 };
389
390 template<>
391 struct EncodingTraits<csUTF16>
392 {
393 static yconstexpr ByteOrder byte_order = ByteOrder::unknown;
394 using type = char16_t;
395 };
396
397 template<>
398 struct EncodingTraits<csUTF16BE> : EncodingTraits<csUTF16>
399 {
400 static yconstexpr ByteOrder byte_order = ByteOrder::big;
401 };
402
403 template<>
404 struct EncodingTraits<csUTF16LE> : EncodingTraits<csUTF16>
405 {
406 static yconstexpr ByteOrder byte_order = ByteOrder::little;
407 };
408
409 template<>
410 struct EncodingTraits<csUTF32>
411 {
412 static yconstexpr ByteOrder byte_order = ByteOrder::unknown;
413 using type = char32_t;
414 };
415
416 template<>
417 struct EncodingTraits<csUTF32BE> : EncodingTraits<csUTF32>
418 {
419 static yconstexpr ByteOrder byte_order = ByteOrder::big;
420 };
421
422 template<>
423 struct EncodingTraits<csUTF32LE> : EncodingTraits<csUTF32>
424 {
425 static yconstexpr ByteOrder byte_order = ByteOrder::little;
426 };
428
429 } // namespace CharSet;
430
431 } // namespace CHRLib;
432
433 #endif
434
CHRLib::CharSet::csISO88598I
Definition: Encoding.h:151
CHRLib::CharSet::csCP51932
Definition: Encoding.h:312
CHRLib::CharSet::csHPLegal
Definition: Encoding.h:221
CHRLib::CharSet::cswindows1255
Definition: Encoding.h:319
CHRLib::CharSet::csIBM851
Definition: Encoding.h:249
CHRLib::CharSet::reserved
Definition: Encoding.h:325
CHRLib::CharSet::csMicrosoftPublishing
Definition: Encoding.h:227
CHRLib::CharSet::csISO5428Greek
Definition: Encoding.h:121
CHRLib::CharSet::csBig5HKSCS
Definition: Encoding.h:305
CHRLib::CharSet::US_ASCII
yconstexpr const Encoding US_ASCII(csASCII)
通用别名。
CHRLib::CharSet::csVenturaUS
Definition: Encoding.h:210
CHRLib::CharSet::csHZGB2312
Definition: Encoding.h:289
CHRLib::CharSet::csa72
Definition: Encoding.h:145
CHRLib::CharSet::csMnem
Definition: Encoding.h:285
CHRLib::CharSet::cswindows1253
Definition: Encoding.h:317
CHRLib::CharSet::csIBM857
Definition: Encoding.h:251
CHRLib::CharSet::ISO_10646_UCS_2
yconstexpr const Encoding ISO_10646_UCS_2(csUnicode)
CHRLib::CharSet::EUC_KR
yconstexpr const Encoding EUC_KR(csEUCKR)
CHRLib::CharSet::csIBM281
Definition: Encoding.h:240
CHRLib::CharSet::csISO111ECMACyrillic
Definition: Encoding.h:143
CHRLib::CharSet::csEBCDICCAFR
Definition: Encoding.h:270
CHRLib::CharSet::csISO70VideotexSupp1
Definition: Encoding.h:125
CHRLib::CharSet::csUTF32LE
Definition: Encoding.h:202
CHRLib::CharSet::csISO4UnitedKingdom
Definition: Encoding.h:86
CHRLib::CharSet::csISOLatin4
Definition: Encoding.h:73
CHRLib::CharSet::csKSC56011987
Definition: Encoding.h:102
CHRLib::CharSet::UTF_16LE
yconstexpr const Encoding UTF_16LE(csUTF16LE)
CHRLib::CharSet::EncodingTraits::byte_order
static yconstexpr const ByteOrder byte_order
Definition: Encoding.h:365
CHRLib::CharSet::cswindows1250
Definition: Encoding.h:314
CHRLib::CharSet::csISO47BSViewdata
Definition: Encoding.h:116
CHRLib::CharSet::csEBCDICFR
Definition: Encoding.h:275
CHRLib::CharSet::csIBBM904
Definition: Encoding.h:264
CHRLib::CharSet::csIBM285
Definition: Encoding.h:242
CHRLib::CharSet::csAmiga1251
Definition: Encoding.h:308
CHRLib::CharSet::csISOLatin3
Definition: Encoding.h:72
CHRLib::CharSet::csWindows31Latin5
Definition: Encoding.h:207
CHRLib::CharSet::csUTF16
Definition: Encoding.h:198
CHRLib::CharSet::csISO13JISC6220jp
Definition: Encoding.h:107
CHRLib::CharSet::csISO88Greek7
Definition: Encoding.h:130
CHRLib::CharSet::csHalfWidthKatakana
Definition: Encoding.h:81
CHRLib::CharSet::csPC8Turkish
Definition: Encoding.h:218
CHRLib::CharSet::csBOCU1
Definition: Encoding.h:203
CHRLib::CharSet::csEBCDICFISE
Definition: Encoding.h:273
CHRLib::CharSet::windows_936
yconstexpr const Encoding windows_936(GBK)
CHRLib::CharSet::EncodingTraits< csUTF8 >::type
char type
Definition: Encoding.h:373
CHRLib::CharSet::csISO87JISX0208
Definition: Encoding.h:129
CHRLib::CharSet::GBK
yconstexpr const Encoding GBK(csGBK)
CHRLib::CharSet::windows_950_
yconstexpr const Encoding windows_950_(Big5)
CHRLib::CharSet::csEUCKR
Definition: Encoding.h:104
CHRLib::CharSet::csIBM420
Definition: Encoding.h:245
CHRLib::CharSet::csISO103T618bit
Definition: Encoding.h:142
CHRLib::CharSet::csIBM863
Definition: Encoding.h:254
CHRLib::CharSet::csISO61Norwegian2
Definition: Encoding.h:124
CHRLib::CharSet::csISOLatin1
Definition: Encoding.h:70
CHRLib::CharSet::csHPPiFont
Definition: Encoding.h:222
CHRLib::CharSet::csEUCPkdFmtJapanese
Definition: Encoding.h:84
CHRLib::CharSet::csISO128T101G2
Definition: Encoding.h:149
CHRLib::CharSet::csIBM865
Definition: Encoding.h:256
CHRLib::CharSet::csIBM275
Definition: Encoding.h:236
CHRLib::CharSet::csISO17Spanish
Definition: Encoding.h:89
CHRLib::CharSet::us
yconstexpr const Encoding us(US_ASCII)
CHRLib::CharSet::cswindows1251
Definition: Encoding.h:315
CHRLib::CharSet::csIBM1047
Definition: Encoding.h:306
CHRLib::CharSet::csEBCDICDKNOA
Definition: Encoding.h:272
CHRLib::CharSet::csIBM01146
Definition: Encoding.h:301
CHRLib::CharSet::csBig5
Definition: Encoding.h:230
CHRLib::CharSet::csNATSSEFI
Definition: Encoding.h:97
CHRLib::CharSet::csIBM284
Definition: Encoding.h:241
CHRLib::CharSet::csIBM00858
Definition: Encoding.h:293
CHRLib::CharSet::EncodingTraits< csUTF16 >::type
char16_t type
Definition: Encoding.h:394
CHRLib::CharSet::csIBM01147
Definition: Encoding.h:302
CHRLib::CharSet::csISO91JISC62291984a
Definition: Encoding.h:133
CHRLib::CharSet::csEBCDICATDEA
Definition: Encoding.h:269
CHRLib::CharSet::csHPMath8
Definition: Encoding.h:223
CHRLib::CharSet::cswindows1256
Definition: Encoding.h:320
CHRLib::CharSet::csUnicode11UTF7
Definition: Encoding.h:169
CHRLib::CharSet::csISOLatin5
Definition: Encoding.h:78
CHRLib::CharSet::EncodingTraits::type
char type
Definition: Encoding.h:366
CHRLib::CharSet::csISOLatinArabic
Definition: Encoding.h:75
CHRLib::CharSet::csISO95JIS62291984handadd
Definition: Encoding.h:137
CHRLib::CharSet::csIBM424
Definition: Encoding.h:247
CHRLib::CharSet::ASCII
yconstexpr const Encoding ASCII(US_ASCII)
CHRLib::CharSet::csIBM01140
Definition: Encoding.h:295
CHRLib::CharSet::csISOLatinGreek
Definition: Encoding.h:76
CHRLib::CharSet::csNATSDANOADD
Definition: Encoding.h:100
CHRLib::CharSet::csUnicodeIBM1268
Definition: Encoding.h:189
CHRLib::CharSet::csIBM870
Definition: Encoding.h:259
CHRLib::CharSet::csVISCII
Definition: Encoding.h:286
CHRLib::CharSet::csIBM423
Definition: Encoding.h:246
CHRLib::CharSet::csISO8859Supp
Definition: Encoding.h:161
CHRLib::CharSet::csISO27LatinGreek1
Definition: Encoding.h:113
CHRLib::CharSet::csISO51INISCyrillic
Definition: Encoding.h:119
CHRLib::CharSet::csISO146Serbian
Definition: Encoding.h:155
CHRLib::CharSet::GB2312
yconstexpr const Encoding GB2312(csGB2312)
CHRLib::CharSet::csIBM037
Definition: Encoding.h:232
CHRLib::CharSet::csUTF32
Definition: Encoding.h:200
CHRLib::CharSet::csUnicodeIBM1261
Definition: Encoding.h:188
CHRLib::CharSet::csEUCFixWidJapanese
Definition: Encoding.h:85
CHRLib::CharSet::csUnicodeASCII
Definition: Encoding.h:186
CHRLib::CharSet::MS_Kanji
yconstexpr const Encoding MS_Kanji(SHIFT_JIS)
yconstexpr
#define yconstexpr
指定编译时常量表达式。
Definition: ydef.h:679
CHRLib::CharSet::csUnicodeIBM1265
Definition: Encoding.h:192
CHRLib::CharSet::csISO2IntlRefVersion
Definition: Encoding.h:96
CHRLib::CharSet::ISO_10646_UCS_4
yconstexpr const Encoding ISO_10646_UCS_4(csUCS4)
CHRLib::CharSet::csIBM00924
Definition: Encoding.h:294
CHRLib::CharSet::csISO2022KR
Definition: Encoding.h:103
CHRLib::CharSet::EncodingTraits< csUTF32 >::type
char32_t type
Definition: Encoding.h:413
CHRLib::CharSet::csISO16Portuguese
Definition: Encoding.h:109
CHRLib::CharSet::csTIS620
Definition: Encoding.h:323
CHRLib::CharSet::Null
空字符集。
Definition: Encoding.h:63
CHRLib::CharSet::csIBM280
Definition: Encoding.h:239
CHRLib::CharSet::csIBM01141
Definition: Encoding.h:296
CHRLib::CharSet::windows_1200_
yconstexpr const Encoding windows_1200_(UTF_16LE)
CHRLib::CharSet::csKOI7switched
Definition: Encoding.h:309
CHRLib::CharSet::csISO153GOST1976874
Definition: Encoding.h:160
CHRLib::CharSet::unknown
Definition: Encoding.h:67
CHRLib::CharSet::csIBM01148
Definition: Encoding.h:303
CHRLib::CharSet::csISO141JUSIB1002
Definition: Encoding.h:153
CHRLib::CharSet::windows_54936_
yconstexpr const Encoding windows_54936_(GB18030)
CHRLib::CharSet::csIBM1026
Definition: Encoding.h:267
CHRLib::CharSet::csISOLatinCyrillic
Definition: Encoding.h:74
CHRLib::CharSet::csISO54271981
Definition: Encoding.h:120
CHRLib::CharSet::csGBK
Definition: Encoding.h:177
CHRLib::CharSet::csIBM860
Definition: Encoding.h:252
CHRLib::CharSet::csEBCDICESS
Definition: Encoding.h:280
CHRLib::CharSet::csISO2033
Definition: Encoding.h:139
CHRLib::CharSet::csUSDK
Definition: Encoding.h:166
CHRLib::CharSet::csEBCDICIT
Definition: Encoding.h:276
CHRLib::CharSet::csUTF8
Definition: Encoding.h:172
CHRLib::CharSet::csEBCDICES
Definition: Encoding.h:278
CHRLib::CharSet::csISO88598E
Definition: Encoding.h:150
CHRLib::CharSet::csIBM290
Definition: Encoding.h:243
CHRLib::CharSet::csUTF16LE
Definition: Encoding.h:197
CHRLib::CharSet::csIBMThai
Definition: Encoding.h:220
CHRLib::CharSet::windows_1201_
yconstexpr const Encoding windows_1201_(UTF_16BE)
CHRLib::CharSet::csISO2022JP2
Definition: Encoding.h:106
CHRLib::CharSet::csISO115481
Definition: Encoding.h:182
CHRLib::CharSet::UTF_16BE
yconstexpr const Encoding UTF_16BE(csUTF16BE)
CHRLib::CharSet::csISO885916
Definition: Encoding.h:176
CHRLib::CharSet::csINVARIANT
Definition: Encoding.h:95
CHRLib::CharSet::csIBM918
Definition: Encoding.h:266
CHRLib::CharSet::UTF_32LE
yconstexpr const Encoding UTF_32LE(csUTF32LE)
CHRLib::CharSet::csISO88596I
Definition: Encoding.h:148
CHRLib::CharSet::windows_65001_
yconstexpr const Encoding windows_65001_(UTF_8)
CHRLib::CharSet::csIBM500
Definition: Encoding.h:248
CHRLib::CharSet::korean
yconstexpr const Encoding korean(KS_C_5601_1987)
CHRLib::CharSet::csISO15Italian
Definition: Encoding.h:88
CHRLib::CharSet::csIBM01144
Definition: Encoding.h:299
CHRLib::CharSet::UTF_32BE
yconstexpr const Encoding UTF_32BE(csUTF32BE)
CHRLib::CharSet::csISO57GB1988
Definition: Encoding.h:122
CHRLib::CharSet::csISO19LatinGreek
Definition: Encoding.h:111
CHRLib::CharSet::csKSC5636
Definition: Encoding.h:168
CHRLib::CharSet::csTSCII
Definition: Encoding.h:311
CHRLib::CharSet::csISO2022CNEXT
Definition: Encoding.h:171
CHRLib::CharSet::csIBM01145
Definition: Encoding.h:300
CHRLib::CharSet::iso_ir_149
yconstexpr const Encoding iso_ir_149(KS_C_5601_1987)
CHRLib::CharSet::csIBM866
Definition: Encoding.h:290
CHRLib::CharSet::csISO147Macedonian
Definition: Encoding.h:156
CHRLib::CharSet::csDKUS
Definition: Encoding.h:167
CHRLib::CharSet::csISO49INIS
Definition: Encoding.h:117
CHRLib::CharSet::csMacintosh
Definition: Encoding.h:231
CHRLib::CharSet::csEBCDICESA
Definition: Encoding.h:279
CHRLib::CharSet::csKZ1048
Definition: Encoding.h:183
CHRLib::CharSet::csPC8CodePage437
Definition: Encoding.h:215
CHRLib::CharSet::UTF_8
yconstexpr const Encoding UTF_8(csUTF8)
CHRLib::CharSet::csISO150
Definition: Encoding.h:157
CHRLib::CharSet::EUC_CN_
yconstexpr const Encoding EUC_CN_(GB2312)
CHRLib::CharSet::UTF_7
yconstexpr const Encoding UTF_7(csUTF7)
CHRLib::CharSet::csISO11SwedishForNames
Definition: Encoding.h:87
CHRLib::CharSet::csPTCP154
Definition: Encoding.h:307
CHRLib::CharSet::csHPRoman8
Definition: Encoding.h:208
CHRLib::CharSet::csISO85Spanish2
Definition: Encoding.h:127
CHRLib::CharSet::csEBCDICUK
Definition: Encoding.h:281
CHRLib::CharSet::csPC850Multilingual
Definition: Encoding.h:213
CHRLib::CharSet::csJISEncoding
Definition: Encoding.h:82
CHRLib::CharSet::csDECMCS
Definition: Encoding.h:212
CHRLib::CharSet::csUnicodeIBM1276
Definition: Encoding.h:190
CHRLib::CharSet::csIBM277
Definition: Encoding.h:237
CHRLib::CharSet::KS_C_5601_1987
yconstexpr const Encoding KS_C_5601_1987(csKSC56011987)
YModules.h
CHRLib::CharSet::EncodingTraits< csUnicode >::type
char16_t type
Definition: Encoding.h:380
CHRLib::CharSet::csISO159JISX02121990
Definition: Encoding.h:164
CHRLib::CharSet::csISO646Danish
Definition: Encoding.h:165
CHRLib::CharSet::csPC8DanishNorwegian
Definition: Encoding.h:216
CHRLib::CharSet::csEBCDICPT
Definition: Encoding.h:277
CHRLib::CharSet::csUnicodeIBM1264
Definition: Encoding.h:191
CHRLib::CharSet::csKOI8R
Definition: Encoding.h:288
CHRLib::CharSet::csISOLatin2
Definition: Encoding.h:71
CHRLib::CharSet::csISO10646UTF1
Definition: Encoding.h:93
CHRLib::CharSet::csASCII
Definition: Encoding.h:69
CHRLib::CharSet::csIBM297
Definition: Encoding.h:244
CHRLib::CharSet::csWindows31Latin1
Definition: Encoding.h:205
CHRLib::CharSet::csa71
Definition: Encoding.h:144
CHRLib::CharSet::csWindows31J
Definition: Encoding.h:228
CHRLib::CharSet::csNATSSEFIADD
Definition: Encoding.h:98
CHRLib::CharSet::iso_ir_6
yconstexpr const Encoding iso_ir_6(US_ASCII)
其它别名。
CHRLib::CharSet::cswindows1258
Definition: Encoding.h:322
CHRLib::CharSet::csWindows30Latin1
Definition: Encoding.h:204
CHRLib::CharSet::csSCSU
Definition: Encoding.h:194
CHRLib::CharSet::cp367
yconstexpr const Encoding cp367(US_ASCII)
CHRLib::CharSet::cs50220
Definition: Encoding.h:324
CHRLib::CharSet::MS936
yconstexpr const Encoding MS936(GBK)
CHRLib::CharSet::csISO6937Add
Definition: Encoding.h:159
CHRLib::CharSet::csVenturaInternational
Definition: Encoding.h:211
CHRLib::CharSet::EncodingTraits
取编码对应的字符类型。
Definition: Encoding.h:363
CHRLib::CharSet::csIBM274
Definition: Encoding.h:235
CHRLib::CharSet::csBRF
Definition: Encoding.h:310
CHRLib::CharSet::csIBMEBCDICATDE
Definition: Encoding.h:268
CHRLib::CharSet::csISO143IECP271
Definition: Encoding.h:154
CHRLib::CharSet::csISO69French
Definition: Encoding.h:92
CHRLib::CharSet::csISO646basic1983
Definition: Encoding.h:94
CHRLib::CharSet::csUTF16BE
Definition: Encoding.h:196
CHRLib::CharSet::csISO151Cuba
Definition: Encoding.h:158
CHRLib::CharSet::csIBM903
Definition: Encoding.h:263
CHRLib::CharSet::csISO885913
Definition: Encoding.h:173
CHRLib::CharSet::csISO2022JP
Definition: Encoding.h:105
CHRLib::CharSet::csIBM864
Definition: Encoding.h:255
CHRLib::CharSet::csISO42JISC62261978
Definition: Encoding.h:115
CHRLib::CharSet::csOSDEBCDICDF03IRV
Definition: Encoding.h:180
CHRLib::CharSet::csISO58GB231280
Definition: Encoding.h:123
CHRLib::CharSet::GB18030
yconstexpr const Encoding GB18030(csGB18030)
CHRLib::CharSet::cswindows1252
Definition: Encoding.h:316
CHRLib::CharSet::other
Definition: Encoding.h:65
CHRLib::CharSet::csISO10Swedish
Definition: Encoding.h:101
CHRLib::CharSet::csWindows31Latin2
Definition: Encoding.h:206
CHRLib::CharSet::csISO88596E
Definition: Encoding.h:147
cstdint.hpp
ISO C 标准整数类型和相关扩展操作。
CHRLib::CharSet::csEBCDICFISEA
Definition: Encoding.h:274
CHRLib
Definition: CharacterDefinition.h:38
CHRLib::CharSet::csPCp852
Definition: Encoding.h:214
CHRLib::CharSet::csVIQR
Definition: Encoding.h:287
CHRLib::CharSet::csIBM891
Definition: Encoding.h:262
CHRLib::CharSet::csPC862LatinHebrew
Definition: Encoding.h:217
CHRLib::CharSet::cswindows874
Definition: Encoding.h:313
CHRLib::CharSet::csISO93JIS62291984badd
Definition: Encoding.h:135
CHRLib::CharSet::csUCS4
Definition: Encoding.h:185
CHRLib::CharSet::csISO60DanishNorwegian
Definition: Encoding.h:91
CHRLib::CharSet::UTF_16
yconstexpr const Encoding UTF_16(csUTF16)
CHRLib::CharSet::csMnemonic
Definition: Encoding.h:284
CHRLib::CharSet::csPC775Baltic
Definition: Encoding.h:291
ystdex::byte_order
byte_order
字节序。
Definition: cstdint.hpp:47
CHRLib::CharSet::csISO94JIS62291984hand
Definition: Encoding.h:136
CHRLib::CharSet::csISO21German
Definition: Encoding.h:90
CHRLib::CharSet::csGB2312
Definition: Encoding.h:229
CHRLib::CharSet::csIBM01142
Definition: Encoding.h:297
CHRLib::CharSet::Encoding
Encoding
字符流编码标识。
Definition: Encoding.h:58
CHRLib::CharSet::csUnknown8BiT
Definition: Encoding.h:283
CHRLib::CharSet::cswindows1257
Definition: Encoding.h:321
CHRLib::CharSet::csIBM038
Definition: Encoding.h:233
CHRLib::CharSet::csIBM855
Definition: Encoding.h:250
CHRLib::CharSet::csIBM01143
Definition: Encoding.h:298
CHRLib::CharSet::csISO84Portuguese2
Definition: Encoding.h:126
CHRLib::CharSet::csISO96JISC62291984kana
Definition: Encoding.h:138
CHRLib::CharSet::KS_C_5601_1989
yconstexpr const Encoding KS_C_5601_1989(KS_C_5601_1987)
CHRLib::CharSet::UTF_32
yconstexpr const Encoding UTF_32(csUTF32)
CHRLib::CharSet::CP936
yconstexpr const Encoding CP936(GBK)
CHRLib::CharSet::csEBCDICDKNO
Definition: Encoding.h:271
CHRLib::CharSet::ISO_10646_UCS_Basic
yconstexpr const Encoding ISO_10646_UCS_Basic(csUnicodeASCII)
CHRLib::CharSet::csISO10367Box
Definition: Encoding.h:162
CHRLib::CharSet::csISO25French
Definition: Encoding.h:112
CHRLib::CharSet::csUnicode11
Definition: Encoding.h:193
CHRLib::CharSet::ASMO_449
yconstexpr const Encoding ASMO_449(csISO89ASMO449)
CHRLib::CharSet::csISO102T617bit
Definition: Encoding.h:141
CHRLib::CharSet::csIBM880
Definition: Encoding.h:261
CHRLib::CharSet::EncodingTraits< csUCS4 >::type
char32_t type
Definition: Encoding.h:387
CHRLib::char16_t
char16_t((*c_ptr<< CHAR_BIT)|c_ptr[1])) inline PDefH(char16_t
取 c_ptr 指向的小端序双字节字符。
CHRLib::CharSet::csVenturaMath
Definition: Encoding.h:226
CHRLib::CharSet::csHPPSMath
Definition: Encoding.h:224
CHRLib::CharSet::windows_51936_
yconstexpr const Encoding windows_51936_(GB2312)
CHRLib::CharSet::csISO158Lap
Definition: Encoding.h:163
CHRLib::CharSet::csIBM868
Definition: Encoding.h:257
CHRLib::CharSet::csKOI8U
Definition: Encoding.h:292
CHRLib::CharSet::csIBM905
Definition: Encoding.h:265
CHRLib::CharSet::csISO50INIS8
Definition: Encoding.h:118
YSLib::Drawing::char32_t
tr TextRegion &tr char32_t
Definition: TextLayout.h:92
CHRLib::CharSet::SHIFT_JIS
yconstexpr const Encoding SHIFT_JIS(csShiftJIS)
CHRLib::CharSet::csUnicode
Definition: Encoding.h:184
CHRLib::CharSet::csIBM273
Definition: Encoding.h:234
CHRLib::CharSet::csCESU8
Definition: Encoding.h:199
CHRLib::CharSet::csUnicodeLatin1
Definition: Encoding.h:187
CHRLib::CharSet::csISO123CSAZ24341985gr
Definition: Encoding.h:146
CHRLib::CharSet::csISO89ASMO449
Definition: Encoding.h:131
CHRLib::CharSet::windows_949_
yconstexpr const Encoding windows_949_(KS_C_5601_1987)
CHRLib::CharSet::csNATSDANO
Definition: Encoding.h:99
CHRLib::CharSet::csISO14JISC6220ro
Definition: Encoding.h:108
CHRLib::CharSet::csIBMSymbols
Definition: Encoding.h:219
CHRLib::CharSet::csISO2022CN
Definition: Encoding.h:170
CHRLib::CharSet::csISO86Hungarian
Definition: Encoding.h:128
CHRLib::CharSet::csOSDEBCDICDF041
Definition: Encoding.h:181
CHRLib::CharSet::csISO5427Cyrillic
Definition: Encoding.h:114
CHRLib::CharSet::IBM367
yconstexpr const Encoding IBM367(US_ASCII)
CHRLib::CharSet::ISO646_US
yconstexpr const Encoding ISO646_US(US_ASCII)
CHRLib::CharSet::csIBM278
Definition: Encoding.h:238
CHRLib::CharSet::csISO92JISC62991984b
Definition: Encoding.h:134
CHRLib::CharSet::cswindows1254
Definition: Encoding.h:318
CHRLib::CharSet::csISO885915
Definition: Encoding.h:175
CHRLib::CharSet::csHPDesktop
Definition: Encoding.h:225
CHRLib::CharSet::csISOLatinHebrew
Definition: Encoding.h:77
CHRLib::CharSet::csEBCDICUS
Definition: Encoding.h:282
CHRLib::CharSet::csGB18030
Definition: Encoding.h:178
CHRLib::CharSet::csShiftJIS
Definition: Encoding.h:83
CHRLib::CharSet::csIBM01149
Definition: Encoding.h:304
CHRLib::CharSet::csOSDEBCDICDF0415
Definition: Encoding.h:179
CHRLib::CharSet::csAdobeStandardEncoding
Definition: Encoding.h:209
CHRLib::CharSet::csISOLatin6
Definition: Encoding.h:79
CHRLib::CharSet::csISOTextComm
Definition: Encoding.h:80
CHRLib::CharSet::csUTF32BE
Definition: Encoding.h:201
CHRLib::CharSet::Big5
yconstexpr const Encoding Big5(csBig5)
< 仅 EUC-CN ，GB2312 最常用实现。
CHRLib::CharSet::csISO99NAPLPS
Definition: Encoding.h:140
CHRLib::CharSet::csISO18Greek7Old
Definition: Encoding.h:110
CHRLib::CharSet::csIBM861
Definition: Encoding.h:253
CHRLib::CharSet::csISO885914
Definition: Encoding.h:174
CHRLib::CharSet::csUTF7
Definition: Encoding.h:195
CHRLib::CharSet::windows_932_
yconstexpr const Encoding windows_932_(SHIFT_JIS)
CHRLib::CharSet::csIBM869
Definition: Encoding.h:258
CHRLib::CharSet::csIBM871
Definition: Encoding.h:260
CHRLib::CharSet::KSC_5601
yconstexpr const Encoding KSC_5601(KS_C_5601_1987)
CHRLib::CharSet::csISO90
Definition: Encoding.h:132
CHRLib::CharSet::csISO139CSN369103
Definition: Encoding.h:152