2001-04-11 01:21:43 +02:00
|
|
|
/*
|
|
|
|
* Unicode definitions
|
|
|
|
*
|
|
|
|
* Derived from the mingw header written by Colin Peters.
|
|
|
|
* Modified for Wine use by Jon Griffiths and Francois Gouget.
|
|
|
|
* This file is in the public domain.
|
|
|
|
*/
|
|
|
|
#ifndef __WINE_WCHAR_H
|
|
|
|
#define __WINE_WCHAR_H
|
2007-02-20 09:35:41 +01:00
|
|
|
|
2008-12-11 22:37:34 +01:00
|
|
|
#include <crtdefs.h>
|
2002-12-18 21:17:20 +01:00
|
|
|
#include <stdarg.h>
|
2001-04-11 01:21:43 +02:00
|
|
|
|
2008-12-11 22:37:34 +01:00
|
|
|
#include <pshpack8.h>
|
|
|
|
|
2002-12-18 21:17:20 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef NULL
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#define NULL 0
|
|
|
|
#else
|
|
|
|
#define NULL ((void *)0)
|
|
|
|
#endif
|
|
|
|
#endif
|
2001-04-11 01:21:43 +02:00
|
|
|
|
|
|
|
#define WCHAR_MIN 0
|
2004-06-25 03:19:15 +02:00
|
|
|
#define WCHAR_MAX ((wchar_t)-1)
|
2001-04-11 01:21:43 +02:00
|
|
|
|
2007-02-06 08:35:50 +01:00
|
|
|
#ifndef DECLSPEC_ALIGN
|
|
|
|
# if defined(_MSC_VER) && (_MSC_VER >= 1300) && !defined(MIDL_PASS)
|
|
|
|
# define DECLSPEC_ALIGN(x) __declspec(align(x))
|
|
|
|
# elif defined(__GNUC__)
|
|
|
|
# define DECLSPEC_ALIGN(x) __attribute__((aligned(x)))
|
|
|
|
# else
|
|
|
|
# define DECLSPEC_ALIGN(x)
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
typedef int mbstate_t;
|
2001-04-11 01:21:43 +02:00
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
#ifndef WEOF
|
|
|
|
#define WEOF (wint_t)(0xFFFF)
|
|
|
|
#endif
|
2002-12-18 21:17:20 +01:00
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
#ifndef _FSIZE_T_DEFINED
|
2009-05-23 11:38:59 +02:00
|
|
|
typedef __msvcrt_ulong _fsize_t;
|
2004-06-25 03:19:15 +02:00
|
|
|
#define _FSIZE_T_DEFINED
|
2002-12-18 21:17:20 +01:00
|
|
|
#endif
|
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
#ifndef _DEV_T_DEFINED
|
2002-12-18 21:17:20 +01:00
|
|
|
typedef unsigned int _dev_t;
|
2004-06-25 03:19:15 +02:00
|
|
|
#define _DEV_T_DEFINED
|
2002-12-18 21:17:20 +01:00
|
|
|
#endif
|
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
#ifndef _INO_T_DEFINED
|
2002-12-18 21:17:20 +01:00
|
|
|
typedef unsigned short _ino_t;
|
2004-06-25 03:19:15 +02:00
|
|
|
#define _INO_T_DEFINED
|
2001-04-11 01:21:43 +02:00
|
|
|
#endif
|
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
#ifndef _OFF_T_DEFINED
|
|
|
|
typedef int _off_t;
|
|
|
|
#define _OFF_T_DEFINED
|
2002-12-18 21:17:20 +01:00
|
|
|
#endif
|
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
#ifndef _TM_DEFINED
|
|
|
|
#define _TM_DEFINED
|
|
|
|
struct tm {
|
2002-12-18 21:17:20 +01:00
|
|
|
int tm_sec;
|
|
|
|
int tm_min;
|
|
|
|
int tm_hour;
|
|
|
|
int tm_mday;
|
|
|
|
int tm_mon;
|
|
|
|
int tm_year;
|
|
|
|
int tm_wday;
|
|
|
|
int tm_yday;
|
|
|
|
int tm_isdst;
|
|
|
|
};
|
2004-06-25 03:19:15 +02:00
|
|
|
#endif /* _TM_DEFINED */
|
2002-12-18 21:17:20 +01:00
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
#ifndef _FILE_DEFINED
|
|
|
|
#define _FILE_DEFINED
|
|
|
|
typedef struct _iobuf
|
2002-12-18 21:17:20 +01:00
|
|
|
{
|
|
|
|
char* _ptr;
|
|
|
|
int _cnt;
|
|
|
|
char* _base;
|
|
|
|
int _flag;
|
|
|
|
int _file;
|
|
|
|
int _charbuf;
|
|
|
|
int _bufsiz;
|
|
|
|
char* _tmpfname;
|
2004-06-25 03:19:15 +02:00
|
|
|
} FILE;
|
|
|
|
#endif /* _FILE_DEFINED */
|
2002-12-18 21:17:20 +01:00
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
#ifndef _WFINDDATA_T_DEFINED
|
|
|
|
#define _WFINDDATA_T_DEFINED
|
2002-12-18 21:17:20 +01:00
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
struct _wfinddata_t {
|
2002-12-18 21:17:20 +01:00
|
|
|
unsigned attrib;
|
2004-06-25 03:19:15 +02:00
|
|
|
time_t time_create;
|
|
|
|
time_t time_access;
|
|
|
|
time_t time_write;
|
|
|
|
_fsize_t size;
|
|
|
|
wchar_t name[260];
|
2002-12-18 21:17:20 +01:00
|
|
|
};
|
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
struct _wfinddatai64_t {
|
2002-12-18 21:17:20 +01:00
|
|
|
unsigned attrib;
|
2004-06-25 03:19:15 +02:00
|
|
|
time_t time_create;
|
|
|
|
time_t time_access;
|
|
|
|
time_t time_write;
|
2009-11-21 14:23:22 +01:00
|
|
|
__int64 DECLSPEC_ALIGN(8) size;
|
2004-06-25 03:19:15 +02:00
|
|
|
wchar_t name[260];
|
2002-12-18 21:17:20 +01:00
|
|
|
};
|
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
#endif /* _WFINDDATA_T_DEFINED */
|
2002-12-18 21:17:20 +01:00
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
#ifndef _STAT_DEFINED
|
|
|
|
#define _STAT_DEFINED
|
2002-12-18 21:17:20 +01:00
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
struct _stat {
|
|
|
|
_dev_t st_dev;
|
|
|
|
_ino_t st_ino;
|
2002-12-18 21:17:20 +01:00
|
|
|
unsigned short st_mode;
|
|
|
|
short st_nlink;
|
|
|
|
short st_uid;
|
|
|
|
short st_gid;
|
2004-06-25 03:19:15 +02:00
|
|
|
_dev_t st_rdev;
|
|
|
|
_off_t st_size;
|
|
|
|
time_t st_atime;
|
|
|
|
time_t st_mtime;
|
|
|
|
time_t st_ctime;
|
2002-12-18 21:17:20 +01:00
|
|
|
};
|
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
struct stat {
|
|
|
|
_dev_t st_dev;
|
|
|
|
_ino_t st_ino;
|
2004-03-25 01:10:06 +01:00
|
|
|
unsigned short st_mode;
|
|
|
|
short st_nlink;
|
|
|
|
short st_uid;
|
|
|
|
short st_gid;
|
2004-06-25 03:19:15 +02:00
|
|
|
_dev_t st_rdev;
|
|
|
|
_off_t st_size;
|
|
|
|
time_t st_atime;
|
|
|
|
time_t st_mtime;
|
|
|
|
time_t st_ctime;
|
2004-03-25 01:10:06 +01:00
|
|
|
};
|
|
|
|
|
2011-01-23 17:46:30 +01:00
|
|
|
struct _stat32 {
|
|
|
|
_dev_t st_dev;
|
|
|
|
_ino_t st_ino;
|
|
|
|
unsigned short st_mode;
|
|
|
|
short st_nlink;
|
|
|
|
short st_uid;
|
|
|
|
short st_gid;
|
|
|
|
_dev_t st_rdev;
|
|
|
|
_off_t st_size;
|
|
|
|
__time32_t st_atime;
|
|
|
|
__time32_t st_mtime;
|
|
|
|
__time32_t st_ctime;
|
|
|
|
};
|
|
|
|
|
2011-01-26 05:23:52 +01:00
|
|
|
struct _stat32i64 {
|
|
|
|
_dev_t st_dev;
|
|
|
|
_ino_t st_ino;
|
|
|
|
unsigned short st_mode;
|
|
|
|
short st_nlink;
|
|
|
|
short st_uid;
|
|
|
|
short st_gid;
|
|
|
|
_dev_t st_rdev;
|
|
|
|
__int64 DECLSPEC_ALIGN(8) st_size;
|
|
|
|
time_t st_atime;
|
|
|
|
time_t st_mtime;
|
|
|
|
time_t st_ctime;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _stat64i32 {
|
|
|
|
_dev_t st_dev;
|
|
|
|
_ino_t st_ino;
|
|
|
|
unsigned short st_mode;
|
|
|
|
short st_nlink;
|
|
|
|
short st_uid;
|
|
|
|
short st_gid;
|
|
|
|
_dev_t st_rdev;
|
|
|
|
_off_t st_size;
|
|
|
|
__time64_t st_atime;
|
|
|
|
__time64_t st_mtime;
|
|
|
|
__time64_t st_ctime;
|
|
|
|
};
|
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
struct _stati64 {
|
|
|
|
_dev_t st_dev;
|
|
|
|
_ino_t st_ino;
|
2002-12-18 21:17:20 +01:00
|
|
|
unsigned short st_mode;
|
|
|
|
short st_nlink;
|
|
|
|
short st_uid;
|
|
|
|
short st_gid;
|
2004-06-25 03:19:15 +02:00
|
|
|
_dev_t st_rdev;
|
2007-02-06 08:35:50 +01:00
|
|
|
__int64 DECLSPEC_ALIGN(8) st_size;
|
2004-06-25 03:19:15 +02:00
|
|
|
time_t st_atime;
|
|
|
|
time_t st_mtime;
|
|
|
|
time_t st_ctime;
|
2002-12-18 21:17:20 +01:00
|
|
|
};
|
2007-02-14 11:24:27 +01:00
|
|
|
|
|
|
|
struct _stat64 {
|
|
|
|
_dev_t st_dev;
|
|
|
|
_ino_t st_ino;
|
|
|
|
unsigned short st_mode;
|
|
|
|
short st_nlink;
|
|
|
|
short st_uid;
|
|
|
|
short st_gid;
|
|
|
|
_dev_t st_rdev;
|
|
|
|
__int64 DECLSPEC_ALIGN(8) st_size;
|
|
|
|
__time64_t st_atime;
|
|
|
|
__time64_t st_mtime;
|
|
|
|
__time64_t st_ctime;
|
|
|
|
};
|
2004-06-25 03:19:15 +02:00
|
|
|
#endif /* _STAT_DEFINED */
|
2002-12-18 21:17:20 +01:00
|
|
|
|
|
|
|
/* ASCII char classification table - binary compatible */
|
|
|
|
#define _UPPER 0x0001 /* C1_UPPER */
|
|
|
|
#define _LOWER 0x0002 /* C1_LOWER */
|
|
|
|
#define _DIGIT 0x0004 /* C1_DIGIT */
|
|
|
|
#define _SPACE 0x0008 /* C1_SPACE */
|
|
|
|
#define _PUNCT 0x0010 /* C1_PUNCT */
|
|
|
|
#define _CONTROL 0x0020 /* C1_CNTRL */
|
|
|
|
#define _BLANK 0x0040 /* C1_BLANK */
|
|
|
|
#define _HEX 0x0080 /* C1_XDIGIT */
|
|
|
|
#define _LEADBYTE 0x8000
|
|
|
|
#define _ALPHA (0x0100|_UPPER|_LOWER) /* (C1_ALPHA|_UPPER|_LOWER) */
|
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
#ifndef _WCTYPE_DEFINED
|
|
|
|
#define _WCTYPE_DEFINED
|
2008-12-17 14:45:18 +01:00
|
|
|
int __cdecl is_wctype(wint_t,wctype_t);
|
|
|
|
int __cdecl isleadbyte(int);
|
|
|
|
int __cdecl iswalnum(wint_t);
|
|
|
|
int __cdecl iswalpha(wint_t);
|
|
|
|
int __cdecl iswascii(wint_t);
|
|
|
|
int __cdecl iswcntrl(wint_t);
|
|
|
|
int __cdecl iswctype(wint_t,wctype_t);
|
|
|
|
int __cdecl iswdigit(wint_t);
|
|
|
|
int __cdecl iswgraph(wint_t);
|
|
|
|
int __cdecl iswlower(wint_t);
|
|
|
|
int __cdecl iswprint(wint_t);
|
|
|
|
int __cdecl iswpunct(wint_t);
|
|
|
|
int __cdecl iswspace(wint_t);
|
|
|
|
int __cdecl iswupper(wint_t);
|
|
|
|
int __cdecl iswxdigit(wint_t);
|
|
|
|
wchar_t __cdecl towlower(wchar_t);
|
|
|
|
wchar_t __cdecl towupper(wchar_t);
|
2004-06-25 03:19:15 +02:00
|
|
|
#endif /* _WCTYPE_DEFINED */
|
|
|
|
|
|
|
|
#ifndef _WDIRECT_DEFINED
|
|
|
|
#define _WDIRECT_DEFINED
|
2008-12-17 14:45:18 +01:00
|
|
|
int __cdecl _wchdir(const wchar_t*);
|
|
|
|
wchar_t* __cdecl _wgetcwd(wchar_t*,int);
|
|
|
|
wchar_t* __cdecl _wgetdcwd(int,wchar_t*,int);
|
|
|
|
int __cdecl _wmkdir(const wchar_t*);
|
|
|
|
int __cdecl _wrmdir(const wchar_t*);
|
2004-06-25 03:19:15 +02:00
|
|
|
#endif /* _WDIRECT_DEFINED */
|
|
|
|
|
|
|
|
#ifndef _WIO_DEFINED
|
|
|
|
#define _WIO_DEFINED
|
2008-12-17 14:45:18 +01:00
|
|
|
int __cdecl _waccess(const wchar_t*,int);
|
|
|
|
int __cdecl _wchmod(const wchar_t*,int);
|
|
|
|
int __cdecl _wcreat(const wchar_t*,int);
|
2012-01-06 21:57:30 +01:00
|
|
|
intptr_t __cdecl _wfindfirst(const wchar_t*,struct _wfinddata_t*);
|
|
|
|
intptr_t __cdecl _wfindfirsti64(const wchar_t*, struct _wfinddatai64_t*);
|
|
|
|
int __cdecl _wfindnext(intptr_t,struct _wfinddata_t*);
|
|
|
|
int __cdecl _wfindnexti64(intptr_t, struct _wfinddatai64_t*);
|
2008-12-17 14:45:18 +01:00
|
|
|
wchar_t* __cdecl _wmktemp(wchar_t*);
|
2017-11-02 10:19:18 +01:00
|
|
|
int WINAPIV _wopen(const wchar_t*,int,...);
|
2008-12-17 14:45:18 +01:00
|
|
|
int __cdecl _wrename(const wchar_t*,const wchar_t*);
|
2017-11-02 10:19:18 +01:00
|
|
|
int WINAPIV _wsopen(const wchar_t*,int,int,...);
|
2008-12-17 14:45:18 +01:00
|
|
|
int __cdecl _wunlink(const wchar_t*);
|
2004-06-25 03:19:15 +02:00
|
|
|
#endif /* _WIO_DEFINED */
|
|
|
|
|
|
|
|
#ifndef _WLOCALE_DEFINED
|
|
|
|
#define _WLOCALE_DEFINED
|
2008-12-17 14:45:18 +01:00
|
|
|
wchar_t* __cdecl _wsetlocale(int,const wchar_t*);
|
2004-06-25 03:19:15 +02:00
|
|
|
#endif /* _WLOCALE_DEFINED */
|
|
|
|
|
|
|
|
#ifndef _WPROCESS_DEFINED
|
|
|
|
#define _WPROCESS_DEFINED
|
2017-11-02 10:19:18 +01:00
|
|
|
int WINAPIV _wexecl(const wchar_t*,const wchar_t*,...);
|
|
|
|
int WINAPIV _wexecle(const wchar_t*,const wchar_t*,...);
|
|
|
|
int WINAPIV _wexeclp(const wchar_t*,const wchar_t*,...);
|
|
|
|
int WINAPIV _wexeclpe(const wchar_t*,const wchar_t*,...);
|
2008-12-17 14:45:18 +01:00
|
|
|
int __cdecl _wexecv(const wchar_t*,const wchar_t* const *);
|
|
|
|
int __cdecl _wexecve(const wchar_t*,const wchar_t* const *,const wchar_t* const *);
|
|
|
|
int __cdecl _wexecvp(const wchar_t*,const wchar_t* const *);
|
|
|
|
int __cdecl _wexecvpe(const wchar_t*,const wchar_t* const *,const wchar_t* const *);
|
2017-11-02 10:19:18 +01:00
|
|
|
int WINAPIV _wspawnl(int,const wchar_t*,const wchar_t*,...);
|
|
|
|
int WINAPIV _wspawnle(int,const wchar_t*,const wchar_t*,...);
|
|
|
|
int WINAPIV _wspawnlp(int,const wchar_t*,const wchar_t*,...);
|
|
|
|
int WINAPIV _wspawnlpe(int,const wchar_t*,const wchar_t*,...);
|
2008-12-17 14:45:18 +01:00
|
|
|
int __cdecl _wspawnv(int,const wchar_t*,const wchar_t* const *);
|
|
|
|
int __cdecl _wspawnve(int,const wchar_t*,const wchar_t* const *,const wchar_t* const *);
|
|
|
|
int __cdecl _wspawnvp(int,const wchar_t*,const wchar_t* const *);
|
|
|
|
int __cdecl _wspawnvpe(int,const wchar_t*,const wchar_t* const *,const wchar_t* const *);
|
|
|
|
int __cdecl _wsystem(const wchar_t*);
|
2004-06-25 03:19:15 +02:00
|
|
|
#endif /* _WPROCESS_DEFINED */
|
|
|
|
|
|
|
|
#ifndef _WSTAT_DEFINED
|
|
|
|
#define _WSTAT_DEFINED
|
2008-12-17 14:45:18 +01:00
|
|
|
int __cdecl _wstat(const wchar_t*,struct _stat*);
|
2011-01-23 17:46:30 +01:00
|
|
|
int __cdecl _wstat32(const wchar_t*, struct _stat32*);
|
2008-12-17 14:45:18 +01:00
|
|
|
int __cdecl _wstati64(const wchar_t*,struct _stati64*);
|
|
|
|
int __cdecl _wstat64(const wchar_t*,struct _stat64*);
|
2004-06-25 03:19:15 +02:00
|
|
|
#endif /* _WSTAT_DEFINED */
|
|
|
|
|
|
|
|
#ifndef _WSTDIO_DEFINED
|
|
|
|
#define _WSTDIO_DEFINED
|
2014-11-09 20:17:31 +01:00
|
|
|
wint_t __cdecl _fgetwc_nolock(FILE*);
|
2008-12-17 14:45:18 +01:00
|
|
|
wint_t __cdecl _fgetwchar(void);
|
2014-11-09 20:17:31 +01:00
|
|
|
wint_t __cdecl _fputwc_nolock(wint_t,FILE*);
|
2008-12-17 14:45:18 +01:00
|
|
|
wint_t __cdecl _fputwchar(wint_t);
|
2014-11-09 20:17:31 +01:00
|
|
|
wint_t __cdecl _getwc_nolock(FILE*);
|
2008-12-17 14:45:18 +01:00
|
|
|
wchar_t* __cdecl _getws(wchar_t*);
|
2014-11-09 20:17:31 +01:00
|
|
|
wint_t __cdecl _putwc_nolock(wint_t,FILE*);
|
2008-12-17 14:45:18 +01:00
|
|
|
int __cdecl _putws(const wchar_t*);
|
2017-11-02 10:19:18 +01:00
|
|
|
int WINAPIV _snwprintf(wchar_t*,size_t,const wchar_t*,...);
|
|
|
|
int WINAPIV _snwprintf_s(wchar_t*,size_t,size_t,const wchar_t*,...);
|
|
|
|
int WINAPIV _scwprintf(const wchar_t*,...);
|
2014-11-09 20:17:31 +01:00
|
|
|
wint_t __cdecl _ungetwc_nolock(wint_t,FILE*);
|
2009-03-26 12:45:59 +01:00
|
|
|
int __cdecl _vscwprintf(const wchar_t*,__ms_va_list);
|
2013-04-30 14:28:34 +02:00
|
|
|
int __cdecl _vscwprintf_p_l(const wchar_t*,_locale_t,__ms_va_list);
|
2009-01-06 21:09:58 +01:00
|
|
|
int __cdecl _vsnwprintf(wchar_t*,size_t,const wchar_t*,__ms_va_list);
|
2010-06-16 23:42:49 +02:00
|
|
|
int __cdecl _vsnwprintf_s(wchar_t*,size_t,size_t,const wchar_t*,__ms_va_list);
|
2011-09-20 10:32:29 +02:00
|
|
|
int __cdecl _vswprintf_p_l(wchar_t*,size_t,const wchar_t*,_locale_t,__ms_va_list);
|
2008-12-17 14:45:18 +01:00
|
|
|
FILE* __cdecl _wfdopen(int,const wchar_t*);
|
|
|
|
FILE* __cdecl _wfopen(const wchar_t*,const wchar_t*);
|
2010-06-16 23:42:49 +02:00
|
|
|
errno_t __cdecl _wfopen_s(FILE**,const wchar_t*,const wchar_t*);
|
2008-12-17 14:45:18 +01:00
|
|
|
FILE* __cdecl _wfreopen(const wchar_t*,const wchar_t*,FILE*);
|
|
|
|
FILE* __cdecl _wfsopen(const wchar_t*,const wchar_t*,int);
|
|
|
|
void __cdecl _wperror(const wchar_t*);
|
|
|
|
FILE* __cdecl _wpopen(const wchar_t*,const wchar_t*);
|
|
|
|
int __cdecl _wremove(const wchar_t*);
|
|
|
|
wchar_t* __cdecl _wtempnam(const wchar_t*,const wchar_t*);
|
|
|
|
wchar_t* __cdecl _wtmpnam(wchar_t*);
|
|
|
|
|
|
|
|
wint_t __cdecl fgetwc(FILE*);
|
|
|
|
wchar_t* __cdecl fgetws(wchar_t*,int,FILE*);
|
|
|
|
wint_t __cdecl fputwc(wint_t,FILE*);
|
|
|
|
int __cdecl fputws(const wchar_t*,FILE*);
|
2017-11-02 10:19:18 +01:00
|
|
|
int WINAPIV fwprintf(FILE*,const wchar_t*,...);
|
|
|
|
int WINAPIV fwprintf_s(FILE*,const wchar_t*,...);
|
2008-12-17 14:45:18 +01:00
|
|
|
int __cdecl fputws(const wchar_t*,FILE*);
|
2017-11-02 10:19:18 +01:00
|
|
|
int WINAPIV fwscanf(FILE*,const wchar_t*,...);
|
|
|
|
int WINAPIV fwscanf_s(FILE*,const wchar_t*,...);
|
2008-12-17 14:45:18 +01:00
|
|
|
wint_t __cdecl getwc(FILE*);
|
|
|
|
wint_t __cdecl getwchar(void);
|
|
|
|
wchar_t* __cdecl getws(wchar_t*);
|
|
|
|
wint_t __cdecl putwc(wint_t,FILE*);
|
|
|
|
wint_t __cdecl putwchar(wint_t);
|
|
|
|
int __cdecl putws(const wchar_t*);
|
2017-11-02 10:19:18 +01:00
|
|
|
int WINAPIV swprintf(wchar_t*,const wchar_t*,...);
|
|
|
|
int WINAPIV swprintf_s(wchar_t*,size_t,const wchar_t*,...);
|
|
|
|
int WINAPIV swscanf(const wchar_t*,const wchar_t*,...);
|
|
|
|
int WINAPIV swscanf_s(const wchar_t*,const wchar_t*,...);
|
2008-12-17 14:45:18 +01:00
|
|
|
wint_t __cdecl ungetwc(wint_t,FILE*);
|
2009-01-06 21:09:58 +01:00
|
|
|
int __cdecl vfwprintf(FILE*,const wchar_t*,__ms_va_list);
|
2010-11-24 21:12:35 +01:00
|
|
|
int __cdecl vfwprintf_s(FILE*,const wchar_t*,__ms_va_list);
|
2009-01-06 21:09:58 +01:00
|
|
|
int __cdecl vswprintf(wchar_t*,const wchar_t*,__ms_va_list);
|
2010-06-16 23:42:49 +02:00
|
|
|
int __cdecl vswprintf_s(wchar_t*,size_t,const wchar_t*,__ms_va_list);
|
2009-01-06 21:09:58 +01:00
|
|
|
int __cdecl vwprintf(const wchar_t*,__ms_va_list);
|
2010-11-24 21:25:30 +01:00
|
|
|
int __cdecl vwprintf_s(const wchar_t*,__ms_va_list);
|
2017-11-02 10:19:18 +01:00
|
|
|
int WINAPIV wprintf(const wchar_t*,...);
|
|
|
|
int WINAPIV wprintf_s(const wchar_t*,...);
|
|
|
|
int WINAPIV wscanf(const wchar_t*,...);
|
|
|
|
int WINAPIV wscanf_s(const wchar_t*,...);
|
2004-06-25 03:19:15 +02:00
|
|
|
#endif /* _WSTDIO_DEFINED */
|
|
|
|
|
|
|
|
#ifndef _WSTDLIB_DEFINED
|
|
|
|
#define _WSTDLIB_DEFINED
|
2008-12-17 14:45:18 +01:00
|
|
|
wchar_t* __cdecl _itow(int,wchar_t*,int);
|
|
|
|
wchar_t* __cdecl _i64tow(__int64,wchar_t*,int);
|
2009-05-23 11:38:59 +02:00
|
|
|
wchar_t* __cdecl _ltow(__msvcrt_long,wchar_t*,int);
|
2008-12-17 14:45:18 +01:00
|
|
|
wchar_t* __cdecl _ui64tow(unsigned __int64,wchar_t*,int);
|
2009-05-23 11:38:59 +02:00
|
|
|
wchar_t* __cdecl _ultow(__msvcrt_ulong,wchar_t*,int);
|
2008-12-17 14:45:18 +01:00
|
|
|
wchar_t* __cdecl _wfullpath(wchar_t*,const wchar_t*,size_t);
|
|
|
|
wchar_t* __cdecl _wgetenv(const wchar_t*);
|
|
|
|
void __cdecl _wmakepath(wchar_t*,const wchar_t*,const wchar_t*,const wchar_t*,const wchar_t*);
|
|
|
|
void __cdecl _wperror(const wchar_t*);
|
|
|
|
int __cdecl _wputenv(const wchar_t*);
|
|
|
|
void __cdecl _wsearchenv(const wchar_t*,const wchar_t*,wchar_t*);
|
|
|
|
void __cdecl _wsplitpath(const wchar_t*,wchar_t*,wchar_t*,wchar_t*,wchar_t*);
|
2010-06-16 23:42:49 +02:00
|
|
|
errno_t __cdecl _wsplitpath_s(const wchar_t*,wchar_t*,size_t,wchar_t*,size_t,
|
|
|
|
wchar_t*,size_t,wchar_t*,size_t);
|
2008-12-17 14:45:18 +01:00
|
|
|
int __cdecl _wsystem(const wchar_t*);
|
2010-06-16 23:42:49 +02:00
|
|
|
double __cdecl _wtof(const wchar_t*);
|
2008-12-17 14:45:18 +01:00
|
|
|
int __cdecl _wtoi(const wchar_t*);
|
|
|
|
__int64 __cdecl _wtoi64(const wchar_t*);
|
2009-05-23 11:38:59 +02:00
|
|
|
__msvcrt_long __cdecl _wtol(const wchar_t*);
|
2008-12-17 14:45:18 +01:00
|
|
|
|
|
|
|
size_t __cdecl mbstowcs(wchar_t*,const char*,size_t);
|
2010-06-16 23:42:49 +02:00
|
|
|
errno_t __cdecl mbstowcs_s(size_t*,wchar_t*,size_t,const char*,size_t);
|
2008-12-17 14:45:18 +01:00
|
|
|
int __cdecl mbtowc(wchar_t*,const char*,size_t);
|
2018-02-16 16:22:42 +01:00
|
|
|
float __cdecl wcstof(const wchar_t*,wchar_t**);
|
2008-12-17 14:45:18 +01:00
|
|
|
double __cdecl wcstod(const wchar_t*,wchar_t**);
|
2009-05-23 11:38:59 +02:00
|
|
|
__msvcrt_long __cdecl wcstol(const wchar_t*,wchar_t**,int);
|
2008-12-17 14:45:18 +01:00
|
|
|
size_t __cdecl wcstombs(char*,const wchar_t*,size_t);
|
2010-06-16 23:42:49 +02:00
|
|
|
errno_t __cdecl wcstombs_s(size_t*,char*,size_t,const wchar_t*,size_t);
|
2009-05-23 11:38:59 +02:00
|
|
|
__msvcrt_ulong __cdecl wcstoul(const wchar_t*,wchar_t**,int);
|
2008-12-17 14:45:18 +01:00
|
|
|
int __cdecl wctomb(char*,wchar_t);
|
2004-06-25 03:19:15 +02:00
|
|
|
#endif /* _WSTDLIB_DEFINED */
|
|
|
|
|
|
|
|
#ifndef _WSTRING_DEFINED
|
|
|
|
#define _WSTRING_DEFINED
|
2013-03-30 20:42:29 +01:00
|
|
|
int __cdecl _wcscoll_l(const wchar_t*,const wchar_t*,_locale_t);
|
2008-12-17 14:45:18 +01:00
|
|
|
wchar_t* __cdecl _wcsdup(const wchar_t*);
|
|
|
|
int __cdecl _wcsicmp(const wchar_t*,const wchar_t*);
|
|
|
|
int __cdecl _wcsicoll(const wchar_t*,const wchar_t*);
|
2013-03-30 20:42:29 +01:00
|
|
|
int __cdecl _wcsicoll_l(const wchar_t*,const wchar_t*,_locale_t);
|
2008-12-17 14:45:18 +01:00
|
|
|
wchar_t* __cdecl _wcslwr(wchar_t*);
|
2013-03-30 20:42:29 +01:00
|
|
|
int __cdecl _wcsncoll(const wchar_t*,const wchar_t*,size_t);
|
|
|
|
int __cdecl _wcsncoll_l(const wchar_t*,const wchar_t*,size_t,_locale_t);
|
2008-12-17 14:45:18 +01:00
|
|
|
int __cdecl _wcsnicmp(const wchar_t*,const wchar_t*,size_t);
|
2010-12-03 18:12:23 +01:00
|
|
|
int __cdecl _wcsnicoll(const wchar_t*,const wchar_t*,size_t);
|
2013-03-30 20:42:29 +01:00
|
|
|
int __cdecl _wcsnicoll_l(const wchar_t*,const wchar_t*,size_t,_locale_t);
|
2008-12-17 14:45:18 +01:00
|
|
|
wchar_t* __cdecl _wcsnset(wchar_t*,wchar_t,size_t);
|
|
|
|
wchar_t* __cdecl _wcsrev(wchar_t*);
|
|
|
|
wchar_t* __cdecl _wcsset(wchar_t*,wchar_t);
|
|
|
|
wchar_t* __cdecl _wcsupr(wchar_t*);
|
|
|
|
|
|
|
|
wchar_t* __cdecl wcscat(wchar_t*,const wchar_t*);
|
2010-06-16 23:42:49 +02:00
|
|
|
errno_t __cdecl wcscat_s(wchar_t*,size_t,const wchar_t*);
|
2008-12-17 14:45:18 +01:00
|
|
|
wchar_t* __cdecl wcschr(const wchar_t*,wchar_t);
|
|
|
|
int __cdecl wcscmp(const wchar_t*,const wchar_t*);
|
|
|
|
int __cdecl wcscoll(const wchar_t*,const wchar_t*);
|
|
|
|
wchar_t* __cdecl wcscpy(wchar_t*,const wchar_t*);
|
2010-06-16 23:42:49 +02:00
|
|
|
errno_t __cdecl wcscpy_s(wchar_t*,size_t,const wchar_t*);
|
2008-12-17 14:45:18 +01:00
|
|
|
size_t __cdecl wcscspn(const wchar_t*,const wchar_t*);
|
|
|
|
size_t __cdecl wcslen(const wchar_t*);
|
|
|
|
wchar_t* __cdecl wcsncat(wchar_t*,const wchar_t*,size_t);
|
|
|
|
int __cdecl wcsncmp(const wchar_t*,const wchar_t*,size_t);
|
|
|
|
wchar_t* __cdecl wcsncpy(wchar_t*,const wchar_t*,size_t);
|
2010-06-16 23:42:49 +02:00
|
|
|
errno_t __cdecl wcsncpy_s(wchar_t*,size_t,const wchar_t*,size_t);
|
2008-12-17 14:45:18 +01:00
|
|
|
wchar_t* __cdecl wcspbrk(const wchar_t*,const wchar_t*);
|
|
|
|
wchar_t* __cdecl wcsrchr(const wchar_t*,wchar_t wcFor);
|
|
|
|
size_t __cdecl wcsspn(const wchar_t*,const wchar_t*);
|
|
|
|
wchar_t* __cdecl wcsstr(const wchar_t*,const wchar_t*);
|
|
|
|
wchar_t* __cdecl wcstok(wchar_t*,const wchar_t*);
|
|
|
|
size_t __cdecl wcsxfrm(wchar_t*,const wchar_t*,size_t);
|
2004-06-25 03:19:15 +02:00
|
|
|
#endif /* _WSTRING_DEFINED */
|
|
|
|
|
|
|
|
#ifndef _WTIME_DEFINED
|
|
|
|
#define _WTIME_DEFINED
|
2009-05-23 11:06:29 +02:00
|
|
|
|
|
|
|
#ifdef _USE_32BIT_TIME_T
|
|
|
|
#define _wctime32 _wctime
|
|
|
|
#endif
|
|
|
|
|
2008-12-17 14:45:18 +01:00
|
|
|
wchar_t* __cdecl _wasctime(const struct tm*);
|
|
|
|
size_t __cdecl wcsftime(wchar_t*,size_t,const wchar_t*,const struct tm*);
|
2009-05-23 11:06:29 +02:00
|
|
|
wchar_t* __cdecl _wctime32(const __time32_t*);
|
|
|
|
wchar_t* __cdecl _wctime64(const __time64_t*);
|
2008-12-17 14:45:18 +01:00
|
|
|
wchar_t* __cdecl _wstrdate(wchar_t*);
|
2010-08-27 01:46:00 +02:00
|
|
|
errno_t __cdecl _wstrdate_s(wchar_t*,size_t);
|
2008-12-17 14:45:18 +01:00
|
|
|
wchar_t* __cdecl _wstrtime(wchar_t*);
|
2010-08-27 01:45:31 +02:00
|
|
|
errno_t __cdecl _wstrtime_s(wchar_t*,size_t);
|
2009-05-23 11:06:29 +02:00
|
|
|
|
|
|
|
#ifndef _USE_32BIT_TIME_T
|
|
|
|
static inline wchar_t* _wctime(const time_t *t) { return _wctime64(t); }
|
|
|
|
#endif
|
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
#endif /* _WTIME_DEFINED */
|
|
|
|
|
2008-12-17 14:45:18 +01:00
|
|
|
wchar_t __cdecl btowc(int);
|
|
|
|
size_t __cdecl mbrlen(const char *,size_t,mbstate_t*);
|
|
|
|
size_t __cdecl mbrtowc(wchar_t*,const char*,size_t,mbstate_t*);
|
|
|
|
size_t __cdecl mbsrtowcs(wchar_t*,const char**,size_t,mbstate_t*);
|
|
|
|
size_t __cdecl wcrtomb(char*,wchar_t,mbstate_t*);
|
|
|
|
size_t __cdecl wcsrtombs(char*,const wchar_t**,size_t,mbstate_t*);
|
|
|
|
int __cdecl wctob(wint_t);
|
2001-04-11 01:21:43 +02:00
|
|
|
|
2018-05-28 05:05:52 +02:00
|
|
|
static inline wchar_t *wmemchr(const wchar_t *s, wchar_t c, size_t n)
|
|
|
|
{
|
|
|
|
const wchar_t *end;
|
|
|
|
for (end = s + n; s < end; s++)
|
|
|
|
if (*s == c) return (wchar_t*)s;
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2018-05-28 05:05:53 +02:00
|
|
|
static inline int wmemcmp(const wchar_t *s1, const wchar_t *s2, size_t n)
|
|
|
|
{
|
|
|
|
size_t i;
|
|
|
|
for (i = 0; i < n; i++)
|
|
|
|
{
|
|
|
|
if (s1[i] > s2[i]) return 1;
|
|
|
|
if (s1[i] < s2[i]) return -1;
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2001-04-11 01:21:43 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2007-02-20 09:35:41 +01:00
|
|
|
#include <poppack.h>
|
|
|
|
|
2001-04-11 01:21:43 +02:00
|
|
|
#endif /* __WINE_WCHAR_H */
|