2001-12-05 23:11:35 +01:00
|
|
|
/*
|
|
|
|
* Multibyte string definitions
|
|
|
|
*
|
|
|
|
* Copyright 2001 Francois Gouget.
|
2002-03-10 00:29:33 +01: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
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2001-12-05 23:11:35 +01:00
|
|
|
*/
|
|
|
|
#ifndef __WINE_MBSTRING_H
|
|
|
|
#define __WINE_MBSTRING_H
|
2003-07-19 00:57:15 +02:00
|
|
|
#ifndef __WINE_USE_MSVCRT
|
2001-12-05 23:11:35 +01:00
|
|
|
#define __WINE_USE_MSVCRT
|
2003-07-19 00:57:15 +02:00
|
|
|
#endif
|
2001-12-05 23:11:35 +01:00
|
|
|
|
2007-02-20 09:35:41 +01:00
|
|
|
#include <pshpack8.h>
|
|
|
|
|
2006-10-16 21:29:23 +02:00
|
|
|
#if defined(__x86_64__) && !defined(_WIN64)
|
|
|
|
#define _WIN64
|
|
|
|
#endif
|
|
|
|
|
2007-06-06 13:12:57 +02:00
|
|
|
#if !defined(_MSC_VER) && !defined(__int64)
|
|
|
|
# ifdef _WIN64
|
|
|
|
# define __int64 long
|
|
|
|
# else
|
|
|
|
# define __int64 long long
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
#ifndef _SIZE_T_DEFINED
|
2006-07-10 12:28:25 +02:00
|
|
|
#ifdef _WIN64
|
|
|
|
typedef unsigned __int64 size_t;
|
|
|
|
#else
|
2004-06-25 03:19:15 +02:00
|
|
|
typedef unsigned int size_t;
|
2006-07-10 12:28:25 +02:00
|
|
|
#endif
|
2004-06-25 03:19:15 +02:00
|
|
|
#define _SIZE_T_DEFINED
|
2001-12-05 23:11:35 +01:00
|
|
|
#endif
|
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
#ifndef _NLSCMP_DEFINED
|
2001-12-05 23:11:35 +01:00
|
|
|
#define _NLSCMPERROR ((unsigned int)0x7fffffff)
|
2004-06-25 03:19:15 +02:00
|
|
|
#define _NLSCMP_DEFINED
|
2002-12-18 21:17:20 +01:00
|
|
|
#endif
|
2001-12-05 23:11:35 +01: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 03:19:15 +02:00
|
|
|
size_t _mbclen(const unsigned char*);
|
2001-12-05 23:11:35 +01: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 03:19:15 +02:00
|
|
|
int _mbsbtype(const unsigned char*,size_t);
|
2001-12-05 23:11:35 +01: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 03:19:15 +02:00
|
|
|
size_t _mbscspn(const unsigned char*,const unsigned char*);
|
2001-12-05 23:11:35 +01: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 03:19:15 +02:00
|
|
|
size_t _mbslen(const unsigned char*);
|
2001-12-05 23:11:35 +01:00
|
|
|
unsigned char* _mbslwr(unsigned char*);
|
2004-06-25 03:19:15 +02: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 23:11:35 +01:00
|
|
|
unsigned char* _mbsnbcpy(unsigned char*,const unsigned char*
|
2004-06-25 03:19:15 +02: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 23:11:35 +01:00
|
|
|
;
|
|
|
|
unsigned char* _mbsncat(unsigned char*,const unsigned char*,
|
2004-06-25 03:19:15 +02: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 23:11:35 +01:00
|
|
|
unsigned int _mbsnextc (const unsigned char*);
|
2004-06-25 03:19:15 +02: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 23:11:35 +01: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 03:19:15 +02:00
|
|
|
size_t _mbsspn(const unsigned char*,const unsigned char*);
|
2001-12-05 23:11:35 +01: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 03:19:15 +02:00
|
|
|
#ifndef _MBLEADTRAIL_DEFINED
|
|
|
|
#define _MBLEADTRAIL_DEFINED
|
2002-12-18 21:17:20 +01: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 03:19:15 +02:00
|
|
|
#endif /* _MBLEADTRAIL_DEFINED */
|
2002-12-18 21:17:20 +01:00
|
|
|
|
2001-12-05 23:11:35 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2007-02-20 09:35:41 +01:00
|
|
|
#include <poppack.h>
|
|
|
|
|
2001-12-05 23:11:35 +01:00
|
|
|
#endif /* __WINE_MBSTRING_H */
|