mbfl_consts.h 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*
  2. * "streamable kanji code filter and converter"
  3. * Copyright (c) 1998-2002 HappySize, Inc. All rights reserved.
  4. *
  5. * LICENSE NOTICES
  6. *
  7. * This file is part of "streamable kanji code filter and converter",
  8. * which is distributed under the terms of GNU Lesser General Public
  9. * License (version 2) as published by the Free Software Foundation.
  10. *
  11. * This software is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with "streamable kanji code filter and converter";
  18. * if not, write to the Free Software Foundation, Inc., 59 Temple Place,
  19. * Suite 330, Boston, MA 02111-1307 USA
  20. *
  21. * The author of this file:
  22. *
  23. */
  24. /*
  25. * The source code included in this files was separated from mbfilter.h
  26. * by Moriyoshi Koizumi <moriyoshi@php.net> on 20 Dec 2002. The file
  27. * mbfilter.h is included in this package .
  28. *
  29. */
  30. #ifndef MBFL_CONSTS_H
  31. #define MBFL_CONSTS_H
  32. #define MBFL_ENCTYPE_SBCS 0x00000001
  33. #define MBFL_ENCTYPE_MBCS 0x00000002
  34. #define MBFL_ENCTYPE_WCS2BE 0x00000010
  35. #define MBFL_ENCTYPE_WCS2LE 0x00000020
  36. #define MBFL_ENCTYPE_MWC2BE 0x00000040
  37. #define MBFL_ENCTYPE_MWC2LE 0x00000080
  38. #define MBFL_ENCTYPE_WCS4BE 0x00000100
  39. #define MBFL_ENCTYPE_WCS4LE 0x00000200
  40. #define MBFL_ENCTYPE_MWC4BE 0x00000400
  41. #define MBFL_ENCTYPE_MWC4LE 0x00000800
  42. #define MBFL_ENCTYPE_SHFTCODE 0x00001000
  43. #define MBFL_ENCTYPE_ENC_STRM 0x00002000
  44. #define MBFL_ENCTYPE_GL_UNSAFE 0x00004000
  45. /* wchar plane, special character */
  46. #define MBFL_WCSPLANE_MASK 0xffff
  47. #define MBFL_WCSPLANE_UCS2MAX 0x00010000
  48. #define MBFL_WCSPLANE_UTF32MAX 0x00110000
  49. #define MBFL_WCSPLANE_SUPMIN 0x00010000
  50. #define MBFL_WCSPLANE_SUPMAX 0x00200000
  51. #define MBFL_WCSPLANE_JIS0213 0x70e00000 /* JIS HEX : 2121h - 7E7Eh */
  52. #define MBFL_WCSPLANE_JIS0208 0x70e10000 /* JIS HEX : 2121h - 7E7Eh */
  53. #define MBFL_WCSPLANE_JIS0212 0x70e20000 /* JIS HEX : 2121h - 7E7Eh */
  54. #define MBFL_WCSPLANE_WINCP932 0x70e30000 /* JIS HEX : 2121h - 9898h */
  55. #define MBFL_WCSPLANE_8859_1 0x70e40000 /* 00h - FFh */
  56. #define MBFL_WCSPLANE_8859_2 0x70e50000 /* 00h - FFh */
  57. #define MBFL_WCSPLANE_8859_3 0x70e60000 /* 00h - FFh */
  58. #define MBFL_WCSPLANE_8859_4 0x70e70000 /* 00h - FFh */
  59. #define MBFL_WCSPLANE_8859_5 0x70e80000 /* 00h - FFh */
  60. #define MBFL_WCSPLANE_8859_6 0x70e90000 /* 00h - FFh */
  61. #define MBFL_WCSPLANE_8859_7 0x70ea0000 /* 00h - FFh */
  62. #define MBFL_WCSPLANE_8859_8 0x70eb0000 /* 00h - FFh */
  63. #define MBFL_WCSPLANE_8859_9 0x70ec0000 /* 00h - FFh */
  64. #define MBFL_WCSPLANE_8859_10 0x70ed0000 /* 00h - FFh */
  65. #define MBFL_WCSPLANE_8859_13 0x70ee0000 /* 00h - FFh */
  66. #define MBFL_WCSPLANE_8859_14 0x70ef0000 /* 00h - FFh */
  67. #define MBFL_WCSPLANE_8859_15 0x70f00000 /* 00h - FFh */
  68. #define MBFL_WCSPLANE_KSC5601 0x70f10000 /* 2121h - 7E7Eh */
  69. #define MBFL_WCSPLANE_GB2312 0x70f20000 /* 2121h - 7E7Eh */
  70. #define MBFL_WCSPLANE_WINCP936 0x70f30000 /* 2121h - 9898h */
  71. #define MBFL_WCSPLANE_BIG5 0x70f40000 /* 2121h - 9898h */
  72. #define MBFL_WCSPLANE_CNS11643 0x70f50000 /* 2121h - 9898h */
  73. #define MBFL_WCSPLANE_UHC 0x70f60000 /* 8141h - fefeh */
  74. #define MBFL_WCSPLANE_CP1251 0x70f70000
  75. #define MBFL_WCSPLANE_CP866 0x70f80000
  76. #define MBFL_WCSPLANE_KOI8R 0x70f90000
  77. #define MBFL_WCSPLANE_8859_16 0x70fa0000 /* 00h - FFh */
  78. #define MBFL_WCSPLANE_ARMSCII8 0x70fb0000
  79. #define MBFL_WCSPLANE_KOI8U 0x70fc0000
  80. #define MBFL_WCSPLANE_CP1254 0x70fd0000 /* 00h - FFh */
  81. #define MBFL_WCSPLANE_CP850 0x70fe0000 /* 00h - FFh */
  82. #define MBFL_WCSPLANE_GB18030 0x70ff0000 /* a1a1h-e3329a35h */
  83. #define MBFL_WCSGROUP_MASK 0xffffff
  84. #define MBFL_WCSGROUP_UCS4MAX 0x70000000
  85. #define MBFL_WCSGROUP_WCHARMAX 0x78000000
  86. #define MBFL_WCSGROUP_THROUGH 0x78000000 /* 000000h - FFFFFFh */
  87. #define MBFL_QPRINT_STS_MIME_HEADER 0x1000000
  88. #define MBFL_BASE64_STS_MIME_HEADER 0x1000000
  89. #endif /* MBFL_CONSTS_H */