2001-12-05 22:11:35 +00:00
|
|
|
/*
|
|
|
|
* Multibyte string definitions
|
|
|
|
*
|
|
|
|
* Copyright 2001 Francois Gouget.
|
2002-03-09 23:29:33 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2001-12-05 22:11:35 +00:00
|
|
|
*/
|
|
|
|
#ifndef __WINE_MBSTRING_H
|
|
|
|
#define __WINE_MBSTRING_H
|
2003-07-18 22:57:15 +00:00
|
|
|
#ifndef __WINE_USE_MSVCRT
|
2001-12-05 22:11:35 +00:00
|
|
|
#define __WINE_USE_MSVCRT
|
2003-07-18 22:57:15 +00:00
|
|
|
#endif
|
2001-12-05 22:11:35 +00:00
|
|
|
|
2004-06-25 01:19:15 +00:00
|
|
|
#ifndef _SIZE_T_DEFINED
|
|
|
|
typedef unsigned int size_t;
|
|
|
|
#define _SIZE_T_DEFINED
|
2001-12-05 22:11:35 +00:00
|
|
|
#endif
|
|
|
|
|
2004-06-25 01:19:15 +00:00
|
|
|
#ifndef _NLSCMP_DEFINED
|
2001-12-05 22:11:35 +00:00
|
|
|
#define _NLSCMPERROR ((unsigned int)0x7fffffff)
|
2004-06-25 01:19:15 +00:00
|
|
|
#define _NLSCMP_DEFINED
|
2002-12-18 20:17:20 +00:00
|
|
|
#endif
|
2001-12-05 22:11:35 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
int _ismbcalnum(unsigned int);
|
|
|
|
int _ismbcalpha(unsigned int);
|
|
|
|
int _ismbcdigit(unsigned int);
|
|
|
|
int _ismbcgraph(unsigned int);
|
|
|
|
int _ismbchira(unsigned int);
|
|
|
|
int _ismbckata(unsigned int);
|
|
|
|
int _ismbcl0(unsigned int);
|
|
|
|
int _ismbcl1(unsigned int);
|
|
|
|
int _ismbcl2(unsigned int);
|
|
|
|
int _ismbclegal(unsigned int);
|
|
|
|
int _ismbclower(unsigned int);
|
|
|
|
int _ismbcprint(unsigned int);
|
|
|
|
int _ismbcpunct(unsigned int);
|
|
|
|
int _ismbcspace(unsigned int);
|
|
|
|
int _ismbcsymbol(unsigned int);
|
|
|
|
int _ismbcupper(unsigned int);
|
|
|
|
unsigned int _mbbtombc(unsigned int);
|
|
|
|
int _mbbtype(unsigned char,int);
|
|
|
|
#define _mbccmp(_cpc1,_cpc2) _mbsncmp((_cpc1),(_cpc2),1)
|
|
|
|
void _mbccpy(unsigned char*,const unsigned char*);
|
|
|
|
unsigned int _mbcjistojms(unsigned int);
|
|
|
|
unsigned int _mbcjmstojis(unsigned int);
|
2004-06-25 01:19:15 +00:00
|
|
|
size_t _mbclen(const unsigned char*);
|
2001-12-05 22:11:35 +00:00
|
|
|
unsigned int _mbctohira(unsigned int);
|
|
|
|
unsigned int _mbctokata(unsigned int);
|
|
|
|
unsigned int _mbctolower(unsigned int);
|
|
|
|
unsigned int _mbctombb(unsigned int);
|
|
|
|
unsigned int _mbctoupper(unsigned int);
|
2004-06-25 01:19:15 +00:00
|
|
|
int _mbsbtype(const unsigned char*,size_t);
|
2001-12-05 22:11:35 +00:00
|
|
|
unsigned char* _mbscat(unsigned char*,const unsigned char*);
|
|
|
|
unsigned char* _mbschr(const unsigned char*,unsigned int);
|
|
|
|
int _mbscmp(const unsigned char*,const unsigned char*);
|
|
|
|
int _mbscoll(const unsigned char*,const unsigned char*);
|
|
|
|
unsigned char* _mbscpy(unsigned char*,const unsigned char*);
|
2004-06-25 01:19:15 +00:00
|
|
|
size_t _mbscspn(const unsigned char*,const unsigned char*);
|
2001-12-05 22:11:35 +00:00
|
|
|
unsigned char* _mbsdec(const unsigned char*,const unsigned char*);
|
|
|
|
unsigned char* _mbsdup(const unsigned char*);
|
|
|
|
int _mbsicmp(const unsigned char*,const unsigned char*);
|
|
|
|
int _mbsicoll(const unsigned char*,const unsigned char*);
|
|
|
|
unsigned char* _mbsinc(const unsigned char*);
|
2004-06-25 01:19:15 +00:00
|
|
|
size_t _mbslen(const unsigned char*);
|
2001-12-05 22:11:35 +00:00
|
|
|
unsigned char* _mbslwr(unsigned char*);
|
2004-06-25 01:19:15 +00:00
|
|
|
unsigned char* _mbsnbcat(unsigned char*,const unsigned char*,size_t);
|
|
|
|
int _mbsnbcmp(const unsigned char*,const unsigned char*,size_t);
|
|
|
|
int _mbsnbcoll(const unsigned char*,const unsigned char*,size_t);
|
|
|
|
size_t _mbsnbcnt(const unsigned char*,size_t);
|
2001-12-05 22:11:35 +00:00
|
|
|
unsigned char* _mbsnbcpy(unsigned char*,const unsigned char*
|
2004-06-25 01:19:15 +00:00
|
|
|
,size_t);
|
|
|
|
int _mbsnbicmp(const unsigned char*,const unsigned char*,size_t);
|
|
|
|
int _mbsnbicoll(const unsigned char*,const unsigned char*,size_t);
|
|
|
|
unsigned char* _mbsnbset(unsigned char*,unsigned int,size_t)
|
2001-12-05 22:11:35 +00:00
|
|
|
;
|
|
|
|
unsigned char* _mbsncat(unsigned char*,const unsigned char*,
|
2004-06-25 01:19:15 +00:00
|
|
|
size_t);
|
|
|
|
size_t _mbsnccnt(const unsigned char*,size_t);
|
|
|
|
int _mbsncmp(const unsigned char*,const unsigned char*,size_t);
|
|
|
|
int _mbsncoll(const unsigned char*,const unsigned char*,size_t);
|
|
|
|
unsigned char* _mbsncpy(unsigned char*,const unsigned char*,size_t);
|
2001-12-05 22:11:35 +00:00
|
|
|
unsigned int _mbsnextc (const unsigned char*);
|
2004-06-25 01:19:15 +00:00
|
|
|
int _mbsnicmp(const unsigned char*,const unsigned char*,size_t);
|
|
|
|
int _mbsnicoll(const unsigned char*,const unsigned char*,size_t);
|
|
|
|
unsigned char* _mbsninc(const unsigned char*,size_t);
|
|
|
|
unsigned char* _mbsnset(unsigned char*,unsigned int,size_t);
|
2001-12-05 22:11:35 +00:00
|
|
|
unsigned char* _mbspbrk(const unsigned char*,const unsigned char*);
|
|
|
|
unsigned char* _mbsrchr(const unsigned char*,unsigned int);
|
|
|
|
unsigned char* _mbsrev(unsigned char*);
|
|
|
|
unsigned char* _mbsset(unsigned char*,unsigned int);
|
2004-06-25 01:19:15 +00:00
|
|
|
size_t _mbsspn(const unsigned char*,const unsigned char*);
|
2001-12-05 22:11:35 +00:00
|
|
|
unsigned char* _mbsspnp(const unsigned char*,const unsigned char*);
|
|
|
|
unsigned char* _mbsstr(const unsigned char*,const unsigned char*);
|
|
|
|
unsigned char* _mbstok(unsigned char*,const unsigned char*);
|
|
|
|
unsigned char* _mbsupr(unsigned char*);
|
|
|
|
|
2004-06-25 01:19:15 +00:00
|
|
|
#ifndef _MBLEADTRAIL_DEFINED
|
|
|
|
#define _MBLEADTRAIL_DEFINED
|
2002-12-18 20:17:20 +00:00
|
|
|
int _ismbblead(unsigned int);
|
|
|
|
int _ismbbtrail(unsigned int);
|
|
|
|
int _ismbslead(const unsigned char*,const unsigned char*);
|
|
|
|
int _ismbstrail(const unsigned char*,const unsigned char*);
|
2004-06-25 01:19:15 +00:00
|
|
|
#endif /* _MBLEADTRAIL_DEFINED */
|
2002-12-18 20:17:20 +00:00
|
|
|
|
2001-12-05 22:11:35 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __WINE_MBSTRING_H */
|