2 * Multibyte string definitions
4 * Copyright 2001 Francois Gouget.
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.
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.
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
20 #ifndef __WINE_MBSTRING_H
21 #define __WINE_MBSTRING_H
27 #ifndef _NLSCMP_DEFINED
28 #define _NLSCMPERROR ((unsigned int)0x7fffffff)
29 #define _NLSCMP_DEFINED
36 int __cdecl
_ismbcalnum(unsigned int);
37 int __cdecl
_ismbcalpha(unsigned int);
38 int __cdecl
_ismbcdigit(unsigned int);
39 int __cdecl
_ismbcgraph(unsigned int);
40 int __cdecl
_ismbchira(unsigned int);
41 int __cdecl
_ismbckata(unsigned int);
42 int __cdecl
_ismbcl0(unsigned int);
43 int __cdecl
_ismbcl1(unsigned int);
44 int __cdecl
_ismbcl2(unsigned int);
45 int __cdecl
_ismbclegal(unsigned int);
46 int __cdecl
_ismbclower(unsigned int);
47 int __cdecl
_ismbcprint(unsigned int);
48 int __cdecl
_ismbcpunct(unsigned int);
49 int __cdecl
_ismbcspace(unsigned int);
50 int __cdecl
_ismbcsymbol(unsigned int);
51 int __cdecl
_ismbcupper(unsigned int);
52 unsigned int __cdecl
_mbbtombc(unsigned int);
53 int __cdecl
_mbbtype(unsigned char,int);
54 #define _mbccmp(_cpc1,_cpc2) _mbsncmp((_cpc1),(_cpc2),1)
55 void __cdecl
_mbccpy(unsigned char*,const unsigned char*);
56 unsigned int __cdecl
_mbcjistojms(unsigned int);
57 unsigned int __cdecl
_mbcjmstojis(unsigned int);
58 size_t __cdecl
_mbclen(const unsigned char*);
59 unsigned int __cdecl
_mbctohira(unsigned int);
60 unsigned int __cdecl
_mbctokata(unsigned int);
61 unsigned int __cdecl
_mbctolower(unsigned int);
62 unsigned int __cdecl
_mbctombb(unsigned int);
63 unsigned int __cdecl
_mbctoupper(unsigned int);
64 int __cdecl
_mbsbtype(const unsigned char*,size_t);
65 unsigned char* __cdecl
_mbscat(unsigned char*,const unsigned char*);
66 unsigned char* __cdecl
_mbschr(const unsigned char*,unsigned int);
67 int __cdecl
_mbscmp(const unsigned char*,const unsigned char*);
68 int __cdecl
_mbscoll(const unsigned char*,const unsigned char*);
69 unsigned char* __cdecl
_mbscpy(unsigned char*,const unsigned char*);
70 size_t __cdecl
_mbscspn(const unsigned char*,const unsigned char*);
71 unsigned char* __cdecl
_mbsdec(const unsigned char*,const unsigned char*);
72 unsigned char* __cdecl
_mbsdup(const unsigned char*);
73 int __cdecl
_mbsicmp(const unsigned char*,const unsigned char*);
74 int __cdecl
_mbsicoll(const unsigned char*,const unsigned char*);
75 unsigned char* __cdecl
_mbsinc(const unsigned char*);
76 size_t __cdecl
_mbslen(const unsigned char*);
77 unsigned char* __cdecl
_mbslwr(unsigned char*);
78 unsigned char* __cdecl
_mbsnbcat(unsigned char*,const unsigned char*,size_t);
79 int __cdecl
_mbsnbcmp(const unsigned char*,const unsigned char*,size_t);
80 int __cdecl
_mbsnbcoll(const unsigned char*,const unsigned char*,size_t);
81 size_t __cdecl
_mbsnbcnt(const unsigned char*,size_t);
82 unsigned char* __cdecl
_mbsnbcpy(unsigned char*,const unsigned char*,size_t);
83 int __cdecl
_mbsnbicmp(const unsigned char*,const unsigned char*,size_t);
84 int __cdecl
_mbsnbicoll(const unsigned char*,const unsigned char*,size_t);
85 unsigned char* __cdecl
_mbsnbset(unsigned char*,unsigned int,size_t);
86 unsigned char* __cdecl
_mbsncat(unsigned char*,const unsigned char*, size_t);
87 size_t __cdecl
_mbsnccnt(const unsigned char*,size_t);
88 int __cdecl
_mbsncmp(const unsigned char*,const unsigned char*,size_t);
89 int __cdecl
_mbsncoll(const unsigned char*,const unsigned char*,size_t);
90 unsigned char* __cdecl
_mbsncpy(unsigned char*,const unsigned char*,size_t);
91 unsigned int __cdecl
_mbsnextc (const unsigned char*);
92 int __cdecl
_mbsnicmp(const unsigned char*,const unsigned char*,size_t);
93 int __cdecl
_mbsnicoll(const unsigned char*,const unsigned char*,size_t);
94 unsigned char* __cdecl
_mbsninc(const unsigned char*,size_t);
95 unsigned char* __cdecl
_mbsnset(unsigned char*,unsigned int,size_t);
96 unsigned char* __cdecl
_mbspbrk(const unsigned char*,const unsigned char*);
97 unsigned char* __cdecl
_mbsrchr(const unsigned char*,unsigned int);
98 unsigned char* __cdecl
_mbsrev(unsigned char*);
99 unsigned char* __cdecl
_mbsset(unsigned char*,unsigned int);
100 size_t __cdecl
_mbsspn(const unsigned char*,const unsigned char*);
101 unsigned char* __cdecl
_mbsspnp(const unsigned char*,const unsigned char*);
102 unsigned char* __cdecl
_mbsstr(const unsigned char*,const unsigned char*);
103 unsigned char* __cdecl
_mbstok(unsigned char*,const unsigned char*);
104 unsigned char* __cdecl
_mbsupr(unsigned char*);
106 #ifndef _MBLEADTRAIL_DEFINED
107 #define _MBLEADTRAIL_DEFINED
108 int __cdecl
_ismbblead(unsigned int);
109 int __cdecl
_ismbbtrail(unsigned int);
110 int __cdecl
_ismbslead(const unsigned char*,const unsigned char*);
111 int __cdecl
_ismbstrail(const unsigned char*,const unsigned char*);
112 #endif /* _MBLEADTRAIL_DEFINED */
120 #endif /* __WINE_MBSTRING_H */