master
 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
 9#include <crtdefs.h>
10#include <ctype.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16#ifndef _mbctype
17  _CRTIMP unsigned char * __cdecl __p__mbctype(void);
18#define _mbctype (__p__mbctype())
19#endif
20
21#ifndef _mbcasemap
22  _CRTIMP unsigned char * __cdecl __p__mbcasemap(void);
23#define _mbcasemap (__p__mbcasemap())
24#endif
25
26  extern pthreadmbcinfo __ptmbcinfo;
27  extern int __globallocalestatus;
28  extern int __locale_changed;
29  extern struct threadmbcinfostruct __initialmbcinfo;
30  pthreadmbcinfo __cdecl __updatetmbcinfo(void);
31
32#define _MS 0x01
33#define _MP 0x02
34#define _M1 0x04
35#define _M2 0x08
36
37#define _SBUP 0x10
38#define _SBLOW 0x20
39
40#define _MBC_SINGLE 0
41#define _MBC_LEAD 1
42#define _MBC_TRAIL 2
43#define _MBC_ILLEGAL (-1)
44
45#define _KANJI_CP 932
46
47#define _MB_CP_SBCS 0
48#define _MB_CP_OEM -2
49#define _MB_CP_ANSI -3
50#define _MB_CP_LOCALE -4
51
52#ifndef _MBCTYPE_DEFINED
53#define _MBCTYPE_DEFINED
54
55  _CRTIMP int __cdecl _setmbcp(int _CodePage);
56  _CRTIMP int __cdecl _getmbcp(void);
57  _CRTIMP int __cdecl _ismbbkalnum(unsigned int _C);
58  _CRTIMP int __cdecl _ismbbkalnum_l(unsigned int _C,_locale_t _Locale);
59  _CRTIMP int __cdecl _ismbbkana(unsigned int _C);
60  _CRTIMP int __cdecl _ismbbkana_l(unsigned int _C,_locale_t _Locale);
61  _CRTIMP int __cdecl _ismbbkpunct(unsigned int _C);
62  _CRTIMP int __cdecl _ismbbkpunct_l(unsigned int _C,_locale_t _Locale);
63  _CRTIMP int __cdecl _ismbbkprint(unsigned int _C);
64  _CRTIMP int __cdecl _ismbbkprint_l(unsigned int _C,_locale_t _Locale);
65  _CRTIMP int __cdecl _ismbbalpha(unsigned int _C);
66  _CRTIMP int __cdecl _ismbbalpha_l(unsigned int _C,_locale_t _Locale);
67  _CRTIMP int __cdecl _ismbbpunct(unsigned int _C);
68  _CRTIMP int __cdecl _ismbbpunct_l(unsigned int _C,_locale_t _Locale);
69  _CRTIMP int __cdecl _ismbbalnum(unsigned int _C);
70  _CRTIMP int __cdecl _ismbbalnum_l(unsigned int _C,_locale_t _Locale);
71  _CRTIMP int __cdecl _ismbbprint(unsigned int _C);
72  _CRTIMP int __cdecl _ismbbprint_l(unsigned int _C,_locale_t _Locale);
73  _CRTIMP int __cdecl _ismbbgraph(unsigned int _C);
74  _CRTIMP int __cdecl _ismbbgraph_l(unsigned int _C,_locale_t _Locale);
75#ifndef _MBLEADTRAIL_DEFINED
76#define _MBLEADTRAIL_DEFINED
77  _CRTIMP int __cdecl _ismbblead(unsigned int _C);
78  _CRTIMP int __cdecl _ismbblead_l(unsigned int _C,_locale_t _Locale);
79  _CRTIMP int __cdecl _ismbbtrail(unsigned int _C);
80  _CRTIMP int __cdecl _ismbbtrail_l(unsigned int _C,_locale_t _Locale);
81  _CRTIMP int __cdecl _ismbslead(const unsigned char *_Str,const unsigned char *_Pos);
82  _CRTIMP int __cdecl _ismbslead_l(const unsigned char *_Str,const unsigned char *_Pos,_locale_t _Locale);
83  _CRTIMP int __cdecl _ismbstrail(const unsigned char *_Str,const unsigned char *_Pos);
84  _CRTIMP int __cdecl _ismbstrail_l(const unsigned char *_Str,const unsigned char *_Pos,_locale_t _Locale);
85#endif
86#endif
87
88_CRTIMP void __cdecl _mbccpy (unsigned char *dest, const unsigned char *src) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
89_CRTIMP void __cdecl _mbccpy_l(unsigned char *dest,const unsigned char *src,_locale_t locale) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
90
91#ifdef __cplusplus
92}
93#endif
94#endif