ReactOS 0.4.17-dev-635-g26f9205
mbctype.h
Go to the documentation of this file.
1/*
2 * Multibyte char definitions
3 *
4 * Copyright 2001 Francois Gouget.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library 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 GNU
14 * 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 this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20#ifndef __WINE_MBCTYPE_H
21#define __WINE_MBCTYPE_H
22
23#include <corecrt.h>
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29#ifdef __i386__
30_ACRTIMP unsigned char* __cdecl __p__mbctype(void);
31#define _mbctype (__p__mbctype())
32#else
33extern unsigned char MSVCRT_mbctype[];
34#endif
35
36#define _MS 0x01
37#define _MP 0x02
38#define _M1 0x04
39#define _M2 0x08
40
41#define _SBUP 0x10
42#define _SBLOW 0x20
43
44#define _MBC_SINGLE 0
45#define _MBC_LEAD 1
46#define _MBC_TRAIL 2
47#define _MBC_ILLEGAL -1
48
49#define _KANJI_CP 932
50
51#define _MB_CP_SBCS 0
52#define _MB_CP_OEM -2
53#define _MB_CP_ANSI -3
54#define _MB_CP_LOCALE -4
55
56_ACRTIMP int __cdecl _getmbcp(void);
57_ACRTIMP int __cdecl _ismbbalnum(unsigned int);
58_ACRTIMP int __cdecl _ismbbalpha(unsigned int);
59_ACRTIMP int __cdecl _ismbbgraph(unsigned int);
60_ACRTIMP int __cdecl _ismbbkalnum(unsigned int);
61_ACRTIMP int __cdecl _ismbbkana(unsigned int);
62_ACRTIMP int __cdecl _ismbbkprint(unsigned int);
63_ACRTIMP int __cdecl _ismbbkpunct(unsigned int);
64_ACRTIMP int __cdecl _ismbbprint(unsigned int);
65_ACRTIMP int __cdecl _ismbbpunct(unsigned int);
67
68#ifndef _MBLEADTRAIL_DEFINED
69#define _MBLEADTRAIL_DEFINED
70_ACRTIMP int __cdecl _ismbblead(unsigned int);
71_ACRTIMP int __cdecl _ismbblead_l(unsigned int,_locale_t);
72_ACRTIMP int __cdecl _ismbbtrail(unsigned int);
73_ACRTIMP int __cdecl _ismbslead(const unsigned char*,const unsigned char*);
74_ACRTIMP int __cdecl _ismbstrail(const unsigned char*,const unsigned char*);
75#endif /* _MBLEADTRAIL_DEFINED */
76
77#ifdef __cplusplus
78}
79#endif
80
81#endif /* __WINE_MBCTYPE_H */
#define _ismbblead_l(_c, p)
#define __cdecl
Definition: corecrt.h:121
#define _ACRTIMP
Definition: corecrt.h:153
_ACRTIMP int __cdecl _ismbbkana(unsigned int)
Definition: mbcs.c:1831
unsigned char MSVCRT_mbctype[]
Definition: mbcs.c:38
_ACRTIMP int __cdecl _ismbbkpunct(unsigned int)
_ACRTIMP int __cdecl _getmbcp(void)
Definition: mbcs.c:432
_ACRTIMP int __cdecl _ismbbgraph(unsigned int)
_ACRTIMP int __cdecl _setmbcp(int)
Definition: mbcs.c:400
_ACRTIMP int __cdecl _ismbbtrail(unsigned int)
Definition: mbcs.c:2100
_ACRTIMP int __cdecl _ismbbprint(unsigned int)
_ACRTIMP int __cdecl _ismbbpunct(unsigned int)
_ACRTIMP int __cdecl _ismbbalpha(unsigned int)
_ACRTIMP int __cdecl _ismbbkprint(unsigned int)
_ACRTIMP int __cdecl _ismbstrail(const unsigned char *, const unsigned char *)
Definition: mbcs.c:2179
_ACRTIMP int __cdecl _ismbslead(const unsigned char *, const unsigned char *)
Definition: mbcs.c:2156
_ACRTIMP int __cdecl _ismbbalnum(unsigned int)
_ACRTIMP int __cdecl _ismbblead(unsigned int)
Definition: mbcs.c:2077
_ACRTIMP int __cdecl _ismbbkalnum(unsigned int)
unsigned char *CDECL __p__mbctype(void)
Definition: mbcs.c:181