CFStringEncodingExt.h
上传用户:xjjlds
上传日期:2015-12-05
资源大小:22823k
文件大小:11k
源码类别:

多媒体编程

开发平台:

Visual C++

  1. /*
  2.      File:       CFStringEncodingExt.h
  3.  
  4.      Contains:   CoreFoundation string encodings
  5.  
  6.      Version:    Technology: Mac OS X
  7.                  Release:    QuickTime 6.0.2
  8.  
  9.      Copyright:  (c) 1999-2001 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:      For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __CFSTRINGENCODINGEXT__
  18. #define __CFSTRINGENCODINGEXT__
  19. #ifndef __CFBASE__
  20. #include "CFBase.h"
  21. #endif
  22. #if PRAGMA_ONCE
  23. #pragma once
  24. #endif
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28. #if PRAGMA_IMPORT
  29. #pragma import on
  30. #endif
  31. #if PRAGMA_STRUCT_ALIGN
  32.     #pragma options align=mac68k
  33. #elif PRAGMA_STRUCT_PACKPUSH
  34.     #pragma pack(push, 2)
  35. #elif PRAGMA_STRUCT_PACK
  36.     #pragma pack(2)
  37. #endif
  38. enum {
  39.                                                                 /*  kCFStringEncodingMacRoman = 0L,     */
  40.     kCFStringEncodingMacJapanese = 1,
  41.     kCFStringEncodingMacChineseTrad = 2,
  42.     kCFStringEncodingMacKorean  = 3,
  43.     kCFStringEncodingMacArabic  = 4,
  44.     kCFStringEncodingMacHebrew  = 5,
  45.     kCFStringEncodingMacGreek   = 6,
  46.     kCFStringEncodingMacCyrillic = 7,
  47.     kCFStringEncodingMacDevanagari = 9,
  48.     kCFStringEncodingMacGurmukhi = 10,
  49.     kCFStringEncodingMacGujarati = 11,
  50.     kCFStringEncodingMacOriya   = 12,
  51.     kCFStringEncodingMacBengali = 13,
  52.     kCFStringEncodingMacTamil   = 14,
  53.     kCFStringEncodingMacTelugu  = 15,
  54.     kCFStringEncodingMacKannada = 16,
  55.     kCFStringEncodingMacMalayalam = 17,
  56.     kCFStringEncodingMacSinhalese = 18,
  57.     kCFStringEncodingMacBurmese = 19,
  58.     kCFStringEncodingMacKhmer   = 20,
  59.     kCFStringEncodingMacThai    = 21,
  60.     kCFStringEncodingMacLaotian = 22,
  61.     kCFStringEncodingMacGeorgian = 23,
  62.     kCFStringEncodingMacArmenian = 24,
  63.     kCFStringEncodingMacChineseSimp = 25,
  64.     kCFStringEncodingMacTibetan = 26,
  65.     kCFStringEncodingMacMongolian = 27,
  66.     kCFStringEncodingMacEthiopic = 28,
  67.     kCFStringEncodingMacCentralEurRoman = 29,
  68.     kCFStringEncodingMacVietnamese = 30,
  69.     kCFStringEncodingMacExtArabic = 31,                         /* The following use script code 0, smRoman*/
  70.     kCFStringEncodingMacSymbol  = 33,
  71.     kCFStringEncodingMacDingbats = 34,
  72.     kCFStringEncodingMacTurkish = 35,
  73.     kCFStringEncodingMacCroatian = 36,
  74.     kCFStringEncodingMacIcelandic = 37,
  75.     kCFStringEncodingMacRomanian = 38,                          /* 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,                       /* The following use script code 32, smUnimplemented*/
  79.     kCFStringEncodingMacVT100   = 0xFC,                         /* VT100/102 font from Comm Toolbox: Latin-1 repertoire + box drawing etc*/
  80.                                                                 /* Special Mac OS encodings*/
  81.     kCFStringEncodingMacHFS     = 0xFF,                         /* Meta-value, should never appear in a table.*/
  82.                                                                 /* Unicode & ISO UCS encodings begin at 0x100*/
  83.                                                                 /* We don't use Unicode variations defined in TextEncoding.  Use ones in CFString.h, instead */
  84.                                                                 /* ISO 8-bit and 7-bit encodings begin at 0x200*/
  85.                                                                 /*  kCFStringEncodingISOLatin1 = 0x0201,   */
  86.     kCFStringEncodingISOLatin2  = 0x0202,                       /* ISO 8859-2*/
  87.     kCFStringEncodingISOLatinCyrillic = 0x0205,                 /* ISO 8859-5*/
  88.     kCFStringEncodingISOLatinArabic = 0x0206,                   /* ISO 8859-6, = ASMO 708, =DOS CP 708*/
  89.     kCFStringEncodingISOLatinGreek = 0x0207,                    /* ISO 8859-7*/
  90.     kCFStringEncodingISOLatinHebrew = 0x0208,                   /* ISO 8859-8*/
  91.     kCFStringEncodingISOLatin5  = 0x0209,                       /* ISO 8859-9*/
  92.     kCFStringEncodingISOLatin6  = 0x020A,                       /* ISO 8859-10 */
  93.     kCFStringEncodingISOLatinThai = 0x020B,                     /* ISO 8859-11 */
  94.     kCFStringEncodingISOLatin7  = 0x020D,                       /* ISO 8859-13 */
  95.     kCFStringEncodingISOLatin8  = 0x020E,                       /* ISO 8859-14 */
  96.     kCFStringEncodingISOLatin9  = 0x020F,                       /* ISO 8859-15 */
  97.                                                                 /* MS-DOS & Windows encodings begin at 0x400*/
  98.     kCFStringEncodingDOSLatinUS = 0x0400,                       /* code page 437*/
  99.     kCFStringEncodingDOSGreek   = 0x0405,                       /* code page 737 (formerly code page 437G)*/
  100.     kCFStringEncodingDOSBalticRim = 0x0406,                     /* code page 775*/
  101.     kCFStringEncodingDOSLatin1  = 0x0410,                       /* code page 850, "Multilingual"*/
  102.     kCFStringEncodingDOSGreek1  = 0x0411,                       /* code page 851*/
  103.     kCFStringEncodingDOSLatin2  = 0x0412,                       /* code page 852, Slavic*/
  104.     kCFStringEncodingDOSCyrillic = 0x0413,                      /* code page 855, IBM Cyrillic*/
  105.     kCFStringEncodingDOSTurkish = 0x0414,                       /* code page 857, IBM Turkish*/
  106.     kCFStringEncodingDOSPortuguese = 0x0415,                    /* code page 860*/
  107.     kCFStringEncodingDOSIcelandic = 0x0416,                     /* code page 861*/
  108.     kCFStringEncodingDOSHebrew  = 0x0417,                       /* code page 862*/
  109.     kCFStringEncodingDOSCanadianFrench = 0x0418,                /* code page 863*/
  110.     kCFStringEncodingDOSArabic  = 0x0419,                       /* code page 864*/
  111.     kCFStringEncodingDOSNordic  = 0x041A,                       /* code page 865*/
  112.     kCFStringEncodingDOSRussian = 0x041B,                       /* code page 866*/
  113.     kCFStringEncodingDOSGreek2  = 0x041C,                       /* code page 869, IBM Modern Greek*/
  114.     kCFStringEncodingDOSThai    = 0x041D,                       /* code page 874, also for Windows*/
  115.     kCFStringEncodingDOSJapanese = 0x0420,                      /* code page 932, also for Windows*/
  116.     kCFStringEncodingDOSChineseSimplif = 0x0421,                /* code page 936, also for Windows*/
  117.     kCFStringEncodingDOSKorean  = 0x0422,                       /* code page 949, also for Windows; Unified Hangul Code*/
  118.     kCFStringEncodingDOSChineseTrad = 0x0423,                   /* code page 950, also for Windows*/
  119.                                                                 /*  kCFStringEncodingWindowsLatin1 = 0x0500,  */
  120.     kCFStringEncodingWindowsLatin2 = 0x0501,                    /* code page 1250, Central Europe*/
  121.     kCFStringEncodingWindowsCyrillic = 0x0502,                  /* code page 1251, Slavic Cyrillic*/
  122.     kCFStringEncodingWindowsGreek = 0x0503,                     /* code page 1253*/
  123.     kCFStringEncodingWindowsLatin5 = 0x0504,                    /* code page 1254, Turkish*/
  124.     kCFStringEncodingWindowsHebrew = 0x0505,                    /* code page 1255*/
  125.     kCFStringEncodingWindowsArabic = 0x0506,                    /* code page 1256*/
  126.     kCFStringEncodingWindowsBalticRim = 0x0507,                 /* code page 1257*/
  127.     kCFStringEncodingWindowsKoreanJohab = 0x0510,               /* code page 1361, for Windows NT*/
  128.     kCFStringEncodingWindowsVietnamese = 0x0508,                /* code page 1258*/
  129.                                                                 /* Various national standards begin at 0x600*/
  130.                                                                 /*  kCFStringEncodingASCII = 0x0600,  */
  131.     kCFStringEncodingJIS_X0201_76 = 0x0620,
  132.     kCFStringEncodingJIS_X0208_83 = 0x0621,
  133.     kCFStringEncodingJIS_X0208_90 = 0x0622,
  134.     kCFStringEncodingJIS_X0212_90 = 0x0623,
  135.     kCFStringEncodingJIS_C6226_78 = 0x0624,
  136.     kCFStringEncodingGB_2312_80 = 0x0630,
  137.     kCFStringEncodingGBK_95     = 0x0631,                       /* annex to GB 13000-93; for Windows 95*/
  138.     kCFStringEncodingKSC_5601_87 = 0x0640,                      /* same as KSC 5601-92 without Johab annex*/
  139.     kCFStringEncodingKSC_5601_92_Johab = 0x0641,                /* KSC 5601-92 Johab annex*/
  140.     kCFStringEncodingCNS_11643_92_P1 = 0x0651,                  /* CNS 11643-1992 plane 1*/
  141.     kCFStringEncodingCNS_11643_92_P2 = 0x0652,                  /* CNS 11643-1992 plane 2*/
  142.     kCFStringEncodingCNS_11643_92_P3 = 0x0653,                  /* CNS 11643-1992 plane 3 (was plane 14 in 1986 version)*/
  143.                                                                 /* ISO 2022 collections begin at 0x800*/
  144.     kCFStringEncodingISO_2022_JP = 0x0820,
  145.     kCFStringEncodingISO_2022_JP_2 = 0x0821,
  146.     kCFStringEncodingISO_2022_CN = 0x0830,
  147.     kCFStringEncodingISO_2022_CN_EXT = 0x0831,
  148.     kCFStringEncodingISO_2022_KR = 0x0840,                      /* EUC collections begin at 0x900*/
  149.     kCFStringEncodingEUC_JP     = 0x0920,                       /* ISO 646, 1-byte katakana, JIS 208, JIS 212*/
  150.     kCFStringEncodingEUC_CN     = 0x0930,                       /* ISO 646, GB 2312-80*/
  151.     kCFStringEncodingEUC_TW     = 0x0931,                       /* ISO 646, CNS 11643-1992 Planes 1-16*/
  152.     kCFStringEncodingEUC_KR     = 0x0940,                       /* ISO 646, KS C 5601-1987*/
  153.                                                                 /* Misc standards begin at 0xA00*/
  154.     kCFStringEncodingShiftJIS   = 0x0A01,                       /* plain Shift-JIS*/
  155.     kCFStringEncodingKOI8_R     = 0x0A02,                       /* Russian internet standard*/
  156.     kCFStringEncodingBig5       = 0x0A03,                       /* Big-5 (has variants)*/
  157.     kCFStringEncodingMacRomanLatin1 = 0x0A04,                   /* Mac OS Roman permuted to align with ISO Latin-1*/
  158.     kCFStringEncodingHZ_GB_2312 = 0x0A05,                       /* HZ (RFC 1842, for Chinese mail & news)*/
  159.     kCFStringEncodingAutoDetect_JP = 0x0AFE,                    /* Auto Detect (Japanese) */
  160.                                                                 /* Other platform encodings*/
  161.                                                                 /*  kCFStringEncodingNextStepLatin = 0x0B01,  */
  162.                                                                 /* EBCDIC & IBM host encodings begin at 0xC00*/
  163.     kCFStringEncodingEBCDIC_US  = 0x0C01,                       /* basic EBCDIC-US*/
  164.     kCFStringEncodingEBCDIC_CP037 = 0x0C02                      /* code page 037, extended EBCDIC (Latin-1 set) for US,Canada...*/
  165. };
  166. #if PRAGMA_STRUCT_ALIGN
  167.     #pragma options align=reset
  168. #elif PRAGMA_STRUCT_PACKPUSH
  169.     #pragma pack(pop)
  170. #elif PRAGMA_STRUCT_PACK
  171.     #pragma pack()
  172. #endif
  173. #ifdef PRAGMA_IMPORT_OFF
  174. #pragma import off
  175. #elif PRAGMA_IMPORT
  176. #pragma import reset
  177. #endif
  178. #ifdef __cplusplus
  179. }
  180. #endif
  181. #endif /* __CFSTRINGENCODINGEXT__ */