YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
encoding.h
浏览该文件的文档.
1 /*
2  © 2009-2013 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_CHRDefinition
33 
34 namespace CHRLib
35 {
36 
37 namespace CharSet
38 {
39 
40 /*
41 \brief 字符流编码标识。
42 \note MIB(management information base) 是
43  SNMP(simple network management protocal ,简单网络管理协议) 和
44  OSI/ISO 网络管理模型上下文中的虚拟数据库,参见
45  http://en.wikipedia.org/wiki/Management_information_base 。
46 \note 由于历史原因, CharSet(字符集)和相关概念在此作为文本编码的同义词,
47  但不是确切的用法,参见 http://www.iana.org/assignments/ianacharset-mib 。
48 \note 完整枚举项的详细信息参见 http://www.iana.org/assignments/character-sets 。
49 \since build 416
50 
51 编码字符集:使用 IANA 官方字符集名称和 MIBenum(MIB 枚举)。
52 */
54 {
55  //保留。
56  Null = 0,
59 
60  csASCII = 3,
74  csShiftJIS = 17,
88  csNATSSEFI = 31,
90  csNATSDANO = 33,
95  csEUCKR = 38,
123  csISO90 = 66,
130  csISO2033 = 73,
135  csa71 = 78,
136  csa72 = 79,
148  csISO150 = 91,
157  csUSDK = 100,
158  csDKUS = 101,
159  csKSC5636 = 102,
161  csISO2022CN = 104,
163  csUTF8 = 106,
164  csISO885913 = 109,
165  csISO885914 = 110,
166  csISO885915 = 111,
167  csISO885916 = 112,
168  csGBK = 113,
169  csGB18030 = 114,
173  csISO115481 = 118,
174  csKZ1048 = 119,
175  csUnicode = 1000,
176  csUCS4 = 1001,
184  csUnicode11 = 1010,
185  csSCSU = 1011,
186  csUTF7 = 1012,
187  csUTF16BE = 1013,
188  csUTF16LE = 1014,
189  csUTF16 = 1015,
190  csCESU8 = 1016,
191  csUTF32 = 1017,
192  csUTF32BE = 1018,
193  csUTF32LE = 1019,
194  csBOCU1 = 1020,
199  csHPRoman8 = 2004,
201  csVenturaUS = 2006,
203  csDECMCS = 2008,
205  csPCp852 = 2010,
209  csPC8Turkish = 2014,
210  csIBMSymbols = 2015,
211  csIBMThai = 2016,
212  csHPLegal = 2017,
213  csHPPiFont = 2018,
214  csHPMath8 = 2019,
215  csHPPSMath = 2020,
216  csHPDesktop = 2021,
219  csWindows31J = 2024,
220  csGB2312 = 2025,
221  csBig5 = 2026,
222  csMacintosh = 2027,
223  csIBM037 = 2028,
224  csIBM038 = 2029,
225  csIBM273 = 2030,
226  csIBM274 = 2031,
227  csIBM275 = 2032,
228  csIBM277 = 2033,
229  csIBM278 = 2034,
230  csIBM280 = 2035,
231  csIBM281 = 2036,
232  csIBM284 = 2037,
233  csIBM285 = 2038,
234  csIBM290 = 2039,
235  csIBM297 = 2040,
236  csIBM420 = 2041,
237  csIBM423 = 2042,
238  csIBM424 = 2043,
239  csIBM500 = 2044,
240  csIBM851 = 2045,
241  csIBM855 = 2046,
242  csIBM857 = 2047,
243  csIBM860 = 2048,
244  csIBM861 = 2049,
245  csIBM863 = 2050,
246  csIBM864 = 2051,
247  csIBM865 = 2052,
248  csIBM868 = 2053,
249  csIBM869 = 2054,
250  csIBM870 = 2055,
251  csIBM871 = 2056,
252  csIBM880 = 2057,
253  csIBM891 = 2058,
254  csIBM903 = 2059,
255  csIBBM904 = 2060,
256  csIBM905 = 2061,
257  csIBM918 = 2062,
258  csIBM1026 = 2063,
261  csEBCDICCAFR = 2066,
262  csEBCDICDKNO = 2067,
264  csEBCDICFISE = 2069,
266  csEBCDICFR = 2071,
267  csEBCDICIT = 2072,
268  csEBCDICPT = 2073,
269  csEBCDICES = 2074,
270  csEBCDICESA = 2075,
271  csEBCDICESS = 2076,
272  csEBCDICUK = 2077,
273  csEBCDICUS = 2078,
275  csMnemonic = 2080,
276  csMnem = 2081,
277  csVISCII = 2082,
278  csVIQR = 2083,
279  csKOI8R = 2084,
280  csHZGB2312 = 2085,
281  csIBM866 = 2086,
283  csKOI8U = 2088,
284  csIBM00858 = 2089,
285  csIBM00924 = 2090,
286  csIBM01140 = 2091,
287  csIBM01141 = 2092,
288  csIBM01142 = 2093,
289  csIBM01143 = 2094,
290  csIBM01144 = 2095,
291  csIBM01145 = 2096,
292  csIBM01146 = 2097,
293  csIBM01147 = 2098,
294  csIBM01148 = 2099,
295  csIBM01149 = 2100,
296  csBig5HKSCS = 2101,
297  csIBM1047 = 2102,
298  csPTCP154 = 2103,
299  csAmiga1251 = 2104,
301  csBRF = 2106,
302  csTSCII = 2107,
303  csCP51932 = 2108,
304  cswindows874 = 2109,
314  csTIS620 = 2259,
315  cs50220 = 2260,
316  reserved = 3000
317 };
318 
319 //通用别名。
321  US_ASCII(csASCII),
324  EUC_KR(csEUCKR),
326  UTF_8(csUTF8),
327  GBK(csGBK),
329 
333 
334  UTF_7(csUTF7),
337  UTF_16(csUTF16),
338 
339  UTF_32(csUTF32),
342 
343  GB2312(csGB2312),
344  Big5(csBig5)//,
345  ;
346  //未归类在 MIB 枚举中。
347  /*
348  HZ_GB_2312 = 52396, //!< Chinese Simplified (HZ),GB2312 的另一种实现。
349  MIK; //!< Supports Bulgarian and Russian as well
350  */
351 
352 //其它别名。
363 
366 
369 
370 } // namespace CharSet;
371 
372 } // namespace CHRLib;
373 
374 #endif
375 
yconstexpr Encoding us(US_ASCII)
yconstexpr Encoding GB2312(csGB2312)
yconstexpr Encoding UTF_16LE(csUTF16LE)
yconstexpr Encoding UTF_16BE(csUTF16BE)
yconstexpr Encoding iso_ir_149(KS_C_5601_1987)
yconstexpr Encoding windows_1200_(UTF_16LE)
yconstexpr Encoding UTF_32BE(csUTF32BE)
yconstexpr Encoding EUC_CN_(GB2312)
yconstexpr Encoding UTF_16(csUTF16)
yconstexpr Encoding MS_Kanji(SHIFT_JIS)
yconstexpr Encoding ISO_10646_UCS_2(csUnicode)
yconstexpr Encoding KSC_5601(KS_C_5601_1987)
yconstexpr Encoding UTF_7(csUTF7)
yconstexpr Encoding windows_949_(KS_C_5601_1987)
yconstexpr Encoding ISO646_US(US_ASCII)
yconstexpr Encoding windows_932_(SHIFT_JIS)
yconstexpr Encoding KS_C_5601_1987(csKSC56011987)
yconstexpr Encoding korean(KS_C_5601_1987)
yconstexpr Encoding windows_1201_(UTF_16BE)
yconstexpr Encoding UTF_32(csUTF32)
yconstexpr Encoding US_ASCII(csASCII)
yconstexpr Encoding windows_936(GBK)
空字符集。
Definition: encoding.h:56
yconstexpr Encoding windows_51936_(GB2312)
yconstexpr Encoding ASMO_449(csISO89ASMO449)
yconstexpr Encoding windows_950_(Big5)
yconstexpr Encoding windows_65001_(UTF_8)
yconstexpr Encoding cp367(US_ASCII)
yconstexpr Encoding UTF_32LE(csUTF32LE)
yconstexpr Encoding EUC_KR(csEUCKR)
yconstexpr Encoding GBK(csGBK)
yconstexpr Encoding ASCII(US_ASCII)
yconstexpr Encoding GB18030(csGB18030)
yconstexpr Encoding Big5(csBig5)
< 仅 EUC-CN ,GB2312 最常用实现。
#define yconstexpr
指定编译时常量表达式。
Definition: ydef.h:462
yconstexpr Encoding ISO_10646_UCS_Basic(csUnicodeASCII)
yconstexpr Encoding SHIFT_JIS(csShiftJIS)
yconstexpr Encoding IBM367(US_ASCII)
yconstexpr Encoding KS_C_5601_1989(KS_C_5601_1987)
yconstexpr Encoding ISO_10646_UCS_4(csUCS4)
yconstexpr Encoding UTF_8(csUTF8)
yconstexpr Encoding CP936(GBK)
yconstexpr Encoding windows_54936_(GB18030)
yconstexpr Encoding iso_ir_6(US_ASCII)
yconstexpr Encoding MS936(GBK)