2 * Multibyte string definitions
4 * Copyright 2001 Francois Gouget.
6 #ifndef __WINE_MBSTRING_H
7 #define __WINE_MBSTRING_H
8 #define __WINE_USE_MSVCRT
10 #include "msvcrt/mbctype.h"
12 #ifdef USE_MSVCRT_PREFIX
13 #define MSVCRT(x) MSVCRT_##x
18 #ifndef MSVCRT_SIZE_T_DEFINED
19 typedef unsigned int MSVCRT(size_t);
20 #define MSVCRT_SIZE_T_DEFINED
23 #define _NLSCMPERROR ((unsigned int)0x7fffffff)
30 int _ismbcalnum(unsigned int);
31 int _ismbcalpha(unsigned int);
32 int _ismbcdigit(unsigned int);
33 int _ismbcgraph(unsigned int);
34 int _ismbchira(unsigned int);
35 int _ismbckata(unsigned int);
36 int _ismbcl0(unsigned int);
37 int _ismbcl1(unsigned int);
38 int _ismbcl2(unsigned int);
39 int _ismbclegal(unsigned int);
40 int _ismbclower(unsigned int);
41 int _ismbcprint(unsigned int);
42 int _ismbcpunct(unsigned int);
43 int _ismbcspace(unsigned int);
44 int _ismbcsymbol(unsigned int);
45 int _ismbcupper(unsigned int);
46 unsigned int _mbbtombc(unsigned int);
47 int _mbbtype(unsigned char,int);
48 #define _mbccmp(_cpc1,_cpc2) _mbsncmp((_cpc1),(_cpc2),1)
49 void _mbccpy(unsigned char*,const unsigned char*);
50 unsigned int _mbcjistojms(unsigned int);
51 unsigned int _mbcjmstojis(unsigned int);
52 MSVCRT(size_t) _mbclen(const unsigned char*);
53 unsigned int _mbctohira(unsigned int);
54 unsigned int _mbctokata(unsigned int);
55 unsigned int _mbctolower(unsigned int);
56 unsigned int _mbctombb(unsigned int);
57 unsigned int _mbctoupper(unsigned int);
58 int _mbsbtype(const unsigned char*,MSVCRT(size_t));
59 unsigned char* _mbscat(unsigned char*,const unsigned char*);
60 unsigned char* _mbschr(const unsigned char*,unsigned int);
61 int _mbscmp(const unsigned char*,const unsigned char*);
62 int _mbscoll(const unsigned char*,const unsigned char*);
63 unsigned char* _mbscpy(unsigned char*,const unsigned char*);
64 MSVCRT(size_t) _mbscspn(const unsigned char*,const unsigned char*);
65 unsigned char* _mbsdec(const unsigned char*,const unsigned char*);
66 unsigned char* _mbsdup(const unsigned char*);
67 int _mbsicmp(const unsigned char*,const unsigned char*);
68 int _mbsicoll(const unsigned char*,const unsigned char*);
69 unsigned char* _mbsinc(const unsigned char*);
70 MSVCRT(size_t) _mbslen(const unsigned char*);
71 unsigned char* _mbslwr(unsigned char*);
72 unsigned char* _mbsnbcat(unsigned char*,const unsigned char*,MSVCRT(size_t));
73 int _mbsnbcmp(const unsigned char*,const unsigned char*,MSVCRT(size_t));
74 int _mbsnbcoll(const unsigned char*,const unsigned char*,MSVCRT(size_t));
75 MSVCRT(size_t) _mbsnbcnt(const unsigned char*,MSVCRT(size_t));
76 unsigned char* _mbsnbcpy(unsigned char*,const unsigned char*
78 int _mbsnbicmp(const unsigned char*,const unsigned char*,MSVCRT(size_t));
79 int _mbsnbicoll(const unsigned char*,const unsigned char*,MSVCRT(size_t));
80 unsigned char* _mbsnbset(unsigned char*,unsigned int,MSVCRT(size_t))
82 unsigned char* _mbsncat(unsigned char*,const unsigned char*,
84 MSVCRT(size_t) _mbsnccnt(const unsigned char*,MSVCRT(size_t));
85 int _mbsncmp(const unsigned char*,const unsigned char*,MSVCRT(size_t));
86 int _mbsncoll(const unsigned char*,const unsigned char*,MSVCRT(size_t));
87 unsigned char* _mbsncpy(unsigned char*,const unsigned char*,MSVCRT(size_t));
88 unsigned int _mbsnextc (const unsigned char*);
89 int _mbsnicmp(const unsigned char*,const unsigned char*,MSVCRT(size_t));
90 int _mbsnicoll(const unsigned char*,const unsigned char*,MSVCRT(size_t));
91 unsigned char* _mbsninc(const unsigned char*,MSVCRT(size_t));
92 unsigned char* _mbsnset(unsigned char*,unsigned int,MSVCRT(size_t));
93 unsigned char* _mbspbrk(const unsigned char*,const unsigned char*);
94 unsigned char* _mbsrchr(const unsigned char*,unsigned int);
95 unsigned char* _mbsrev(unsigned char*);
96 unsigned char* _mbsset(unsigned char*,unsigned int);
97 MSVCRT(size_t) _mbsspn(const unsigned char*,const unsigned char*);
98 unsigned char* _mbsspnp(const unsigned char*,const unsigned char*);
99 unsigned char* _mbsstr(const unsigned char*,const unsigned char*);
100 unsigned char* _mbstok(unsigned char*,const unsigned char*);
101 unsigned char* _mbsupr(unsigned char*);
107 #endif /* __WINE_MBSTRING_H */