mbctype.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef _INC_MBCTYPE
  7. #define _INC_MBCTYPE
  8. #include <crtdefs.h>
  9. #include <ctype.h>
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. #ifndef _mbctype
  14. #ifdef _MSVCRT_
  15. extern unsigned char _mbctype[257];
  16. #else
  17. extern unsigned char ** __MINGW_IMP_SYMBOL(_mbctype);
  18. #define _mbctype (* __MINGW_IMP_SYMBOL(_mbctype))
  19. #endif
  20. #endif
  21. #ifndef _mbcasemap
  22. #ifdef _MSVCRT_
  23. extern unsigned char *_mbcasemap;
  24. #else
  25. extern unsigned char ** __MINGW_IMP_SYMBOL(_mbcasemap);
  26. #define _mbcasemap (* __MINGW_IMP_SYMBOL(_mbcasemap))
  27. #endif
  28. #endif
  29. extern pthreadmbcinfo __ptmbcinfo;
  30. extern int __globallocalestatus;
  31. extern int __locale_changed;
  32. extern struct threadmbcinfostruct __initialmbcinfo;
  33. pthreadmbcinfo __cdecl __updatetmbcinfo(void);
  34. #define _MS 0x01
  35. #define _MP 0x02
  36. #define _M1 0x04
  37. #define _M2 0x08
  38. #define _SBUP 0x10
  39. #define _SBLOW 0x20
  40. #define _MBC_SINGLE 0
  41. #define _MBC_LEAD 1
  42. #define _MBC_TRAIL 2
  43. #define _MBC_ILLEGAL (-1)
  44. #define _KANJI_CP 932
  45. #define _MB_CP_SBCS 0
  46. #define _MB_CP_OEM -2
  47. #define _MB_CP_ANSI -3
  48. #define _MB_CP_LOCALE -4
  49. #ifndef _MBCTYPE_DEFINED
  50. #define _MBCTYPE_DEFINED
  51. _CRTIMP int __cdecl _setmbcp(int _CodePage);
  52. _CRTIMP int __cdecl _getmbcp(void);
  53. _CRTIMP int __cdecl _ismbbkalnum(unsigned int _C);
  54. _CRTIMP int __cdecl _ismbbkalnum_l(unsigned int _C,_locale_t _Locale);
  55. _CRTIMP int __cdecl _ismbbkana(unsigned int _C);
  56. _CRTIMP int __cdecl _ismbbkana_l(unsigned int _C,_locale_t _Locale);
  57. _CRTIMP int __cdecl _ismbbkpunct(unsigned int _C);
  58. _CRTIMP int __cdecl _ismbbkpunct_l(unsigned int _C,_locale_t _Locale);
  59. _CRTIMP int __cdecl _ismbbkprint(unsigned int _C);
  60. _CRTIMP int __cdecl _ismbbkprint_l(unsigned int _C,_locale_t _Locale);
  61. _CRTIMP int __cdecl _ismbbalpha(unsigned int _C);
  62. _CRTIMP int __cdecl _ismbbalpha_l(unsigned int _C,_locale_t _Locale);
  63. _CRTIMP int __cdecl _ismbbpunct(unsigned int _C);
  64. _CRTIMP int __cdecl _ismbbpunct_l(unsigned int _C,_locale_t _Locale);
  65. _CRTIMP int __cdecl _ismbbalnum(unsigned int _C);
  66. _CRTIMP int __cdecl _ismbbalnum_l(unsigned int _C,_locale_t _Locale);
  67. _CRTIMP int __cdecl _ismbbprint(unsigned int _C);
  68. _CRTIMP int __cdecl _ismbbprint_l(unsigned int _C,_locale_t _Locale);
  69. _CRTIMP int __cdecl _ismbbgraph(unsigned int _C);
  70. _CRTIMP int __cdecl _ismbbgraph_l(unsigned int _C,_locale_t _Locale);
  71. #ifndef _MBLEADTRAIL_DEFINED
  72. #define _MBLEADTRAIL_DEFINED
  73. _CRTIMP int __cdecl _ismbblead(unsigned int _C);
  74. _CRTIMP int __cdecl _ismbblead_l(unsigned int _C,_locale_t _Locale);
  75. _CRTIMP int __cdecl _ismbbtrail(unsigned int _C);
  76. _CRTIMP int __cdecl _ismbbtrail_l(unsigned int _C,_locale_t _Locale);
  77. _CRTIMP int __cdecl _ismbslead(const unsigned char *_Str,const unsigned char *_Pos);
  78. _CRTIMP int __cdecl _ismbslead_l(const unsigned char *_Str,const unsigned char *_Pos,_locale_t _Locale);
  79. _CRTIMP int __cdecl _ismbstrail(const unsigned char *_Str,const unsigned char *_Pos);
  80. _CRTIMP int __cdecl _ismbstrail_l(const unsigned char *_Str,const unsigned char *_Pos,_locale_t _Locale);
  81. #endif
  82. #endif
  83. _CRTIMP void __cdecl _mbccpy (unsigned char *dest, const unsigned char *src) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  84. _CRTIMP void __cdecl _mbccpy_l(unsigned char *dest,const unsigned char *src,_locale_t locale) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  85. #ifdef __cplusplus
  86. }
  87. #endif
  88. #endif