📄 wchar.h
字号:
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcsupr (wchar_t*);#endif /* Not _NO_OLDNAMES */#endif /* Not strict ANSI */#define _WSTRING_DEFINED#endif /* _WSTRING_DEFINED *//* These are resolved by -lmingwex. Alternatively, they can be resolved by adding -lmsvcp60 to your command line, which will give you the VC++ versions of these functions. If you want the latter and don't have msvcp60.dll in your windows system directory, you can easily obtain it with a search from your favorite search engine. */#ifndef __STRICT_ANSI__typedef wchar_t _Wint_t;#endiftypedef int mbstate_t;wint_t __cdecl __MINGW_NOTHROW btowc(int);size_t __cdecl __MINGW_NOTHROW mbrlen(const char * __restrict__, size_t, mbstate_t * __restrict__);size_t __cdecl __MINGW_NOTHROW mbrtowc(wchar_t * __restrict__, const char * __restrict__, size_t, mbstate_t * __restrict__);size_t __cdecl __MINGW_NOTHROW mbsrtowcs(wchar_t * __restrict__, const char ** __restrict__, size_t, mbstate_t * __restrict__);size_t __cdecl __MINGW_NOTHROW wcrtomb(char * __restrict__, wchar_t, mbstate_t * __restrict__);size_t __cdecl __MINGW_NOTHROW wcsrtombs(char * __restrict__, const wchar_t ** __restrict__, size_t, mbstate_t * __restrict__);int __cdecl __MINGW_NOTHROW wctob(wint_t);#ifndef __NO_ISOCEXT /* these need static lib libmingwex.a */int __cdecl __MINGW_NOTHROW fwide(FILE*, int);int __cdecl __MINGW_NOTHROW mbsinit(const mbstate_t*);#ifndef __NO_INLINE____CRT_INLINE int __cdecl __MINGW_NOTHROW fwide(FILE* __UNUSED_PARAM(stream), int mode) {return mode;} /* Nothing to do */__CRT_INLINE int __cdecl __MINGW_NOTHROW mbsinit(const mbstate_t* __UNUSED_PARAM(ps)) {return 1;}#endifwchar_t* __cdecl __MINGW_NOTHROW wmemset(wchar_t *, wchar_t, size_t);wchar_t* __cdecl __MINGW_NOTHROW wmemchr(const wchar_t*, wchar_t, size_t);int wmemcmp(const wchar_t*, const wchar_t *, size_t);wchar_t* __cdecl __MINGW_NOTHROW wmemcpy(wchar_t* __restrict__, const wchar_t* __restrict__, size_t);wchar_t* __cdecl __MINGW_NOTHROW wmemmove(wchar_t* s1, const wchar_t *, size_t);long long __cdecl __MINGW_NOTHROW wcstoll(const wchar_t * __restrict__, wchar_t** __restrict__, int);unsigned long long __cdecl __MINGW_NOTHROW wcstoull(const wchar_t * __restrict__, wchar_t ** __restrict__, int);#endif /* __NO_ISOCEXT */#ifndef __STRICT_ANSI__/* non-ANSI wide char functions from io.h, direct.h, sys/stat.h and locale.h. */#ifndef _FSIZE_T_DEFINEDtypedef unsigned long _fsize_t;#define _FSIZE_T_DEFINED#endif#ifndef _WFINDDATA_T_DEFINEDstruct _wfinddata_t { unsigned attrib; time_t time_create; /* -1 for FAT file systems */ time_t time_access; /* -1 for FAT file systems */ time_t time_write; _fsize_t size; wchar_t name[260]; /* may include spaces. */};struct _wfinddatai64_t { unsigned attrib; time_t time_create; time_t time_access; time_t time_write; __int64 size; wchar_t name[260];};#if __MSVCRT_VERSION__ >= 0x0601struct __wfinddata64_t { unsigned attrib; __time64_t time_create; __time64_t time_access; __time64_t time_write;/* 8 bytes are returned so it can't be _fsize_t */ __int64 size; wchar_t name[260];};#endif#define _WFINDDATA_T_DEFINED#endif/* Wide character versions. Also defined in io.h. *//* CHECK: I believe these only exist in MSVCRT, and not in CRTDLL. Also applies to other wide character versions? */#if !defined (_WIO_DEFINED)#if defined (__MSVCRT__)#include <stdint.h> /* For intptr_t. */_CRTIMP int __cdecl __MINGW_NOTHROW _waccess (const wchar_t*, int);_CRTIMP int __cdecl __MINGW_NOTHROW _wchmod (const wchar_t*, int);_CRTIMP int __cdecl __MINGW_NOTHROW _wcreat (const wchar_t*, int);_CRTIMP long __cdecl __MINGW_NOTHROW _wfindfirst (const wchar_t*, struct _wfinddata_t *);_CRTIMP int __cdecl __MINGW_NOTHROW _wfindnext (long, struct _wfinddata_t *);_CRTIMP int __cdecl __MINGW_NOTHROW _wunlink (const wchar_t*);_CRTIMP int __cdecl __MINGW_NOTHROW _wopen (const wchar_t*, int, ...);_CRTIMP int __cdecl __MINGW_NOTHROW _wsopen (const wchar_t*, int, int, ...);_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wmktemp (wchar_t*);_CRTIMP long __cdecl __MINGW_NOTHROW _wfindfirsti64 (const wchar_t*, struct _wfinddatai64_t*);_CRTIMP int __cdecl __MINGW_NOTHROW _wfindnexti64 (long, struct _wfinddatai64_t*);#if __MSVCRT_VERSION__ >= 0x0601_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wfindfirst64(const wchar_t*, struct __wfinddata64_t*); _CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wfindnext64(intptr_t, struct __wfinddata64_t*);#endif /* __MSVCRT_VERSION__ >= 0x0601 */#endif /* defined (__MSVCRT__) */#define _WIO_DEFINED#endif /* _WIO_DEFINED */#ifndef _WDIRECT_DEFINED/* Also in direct.h */#ifdef __MSVCRT___CRTIMP int __cdecl __MINGW_NOTHROW _wchdir (const wchar_t*);_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wgetcwd (wchar_t*, int);_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wgetdcwd (int, wchar_t*, int);_CRTIMP int __cdecl __MINGW_NOTHROW _wmkdir (const wchar_t*);_CRTIMP int __cdecl __MINGW_NOTHROW _wrmdir (const wchar_t*);#endif /* __MSVCRT__ */#define _WDIRECT_DEFINED#endif /* _WDIRECT_DEFINED */#ifndef _STAT_DEFINED/* * The structure manipulated and returned by stat and fstat. * * NOTE: If called on a directory the values in the time fields are not only * invalid, they will cause localtime et. al. to return NULL. And calling * asctime with a NULL pointer causes an Invalid Page Fault. So watch it! */struct _stat{ _dev_t st_dev; /* Equivalent to drive number 0=A 1=B ... */ _ino_t st_ino; /* Always zero ? */ _mode_t st_mode; /* See above constants */ short st_nlink; /* Number of links. */ short st_uid; /* User: Maybe significant on NT ? */ short st_gid; /* Group: Ditto */ _dev_t st_rdev; /* Seems useless (not even filled in) */ _off_t st_size; /* File size in bytes */ time_t st_atime; /* Accessed date (always 00:00 hrs local * on FAT) */ time_t st_mtime; /* Modified time */ time_t st_ctime; /* Creation time */};#ifndef _NO_OLDNAMES/* NOTE: Must be the same as _stat above. */struct stat{ dev_t st_dev; /* Equivalent to drive number 0=A 1=B ... */ ino_t st_ino; /* Always zero ? */ mode_t st_mode; /* See above constants */ short st_nlink; /* Number of links. */ short st_uid; /* User: Maybe significant on NT ? */ short st_gid; /* Group: Ditto */ dev_t st_rdev; /* Seems useless (not even filled in) */ off_t st_size; /* File size in bytes */ time_t st_atime; /* Accessed date (always 00:00 hrs local * on FAT) */ time_t st_mtime; /* Modified time */ time_t st_ctime; /* Creation time */};#endif /* _NO_OLDNAMES */#if defined (__MSVCRT__)struct _stati64 { _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 st_size; time_t st_atime; time_t st_mtime; time_t st_ctime;};#if __MSVCRT_VERSION__ >= 0x0601struct __stat64{ _dev_t st_dev; _ino_t st_ino; _mode_t st_mode; short st_nlink; short st_uid; short st_gid; _dev_t st_rdev; __int64 st_size; __time64_t st_atime; __time64_t st_mtime; __time64_t st_ctime;};#endif /* __MSVCRT_VERSION__ */#endif /* __MSVCRT__ */#define _STAT_DEFINED#endif /* _STAT_DEFINED */#if !defined ( _WSTAT_DEFINED)/* also declared in sys/stat.h */#if defined __MSVCRT___CRTIMP int __cdecl __MINGW_NOTHROW _wstat (const wchar_t*, struct _stat*);_CRTIMP int __cdecl __MINGW_NOTHROW _wstati64 (const wchar_t*, struct _stati64*);#if __MSVCRT_VERSION__ >= 0x0601_CRTIMP int __cdecl __MINGW_NOTHROW _wstat64 (const wchar_t*, struct __stat64*);#endif /* __MSVCRT_VERSION__ >= 0x0601 */#endif /* __MSVCRT__ */#define _WSTAT_DEFINED#endif /* ! _WSTAT_DEFIND */#ifndef _WLOCALE_DEFINED /* also declared in locale.h */_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wsetlocale (int, const wchar_t*);#define _WLOCALE_DEFINED#endif#ifndef _WPROCESS_DEFINED /* also declared in process.h */#include <stdint.h> /* For intptr_t. */_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexecl (const wchar_t*, const wchar_t*, ...);_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexecle (const wchar_t*, const wchar_t*, ...);_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexeclp (const wchar_t*, const wchar_t*, ...);_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexeclpe (const wchar_t*, const wchar_t*, ...);_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexecv (const wchar_t*, const wchar_t* const*);_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexecve (const wchar_t*, const wchar_t* const*, const wchar_t* const*);_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexecvp (const wchar_t*, const wchar_t* const*);_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexecvpe (const wchar_t*, const wchar_t* const*, const wchar_t* const*);_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wspawnl (int, const wchar_t*, const wchar_t*, ...);_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wspawnle (int, const wchar_t*, const wchar_t*, ...);_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wspawnlp (int, const wchar_t*, const wchar_t*, ...);_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wspawnlpe (int, const wchar_t*, const wchar_t*, ...);_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wspawnv (int, const wchar_t*, const wchar_t* const*);_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wspawnve (int, const wchar_t*, const wchar_t* const*, const wchar_t* const*);_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wspawnvp (int, const wchar_t*, const wchar_t* const*);_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wspawnvpe (int, const wchar_t*, const wchar_t* const*, const wchar_t* const*);#define _WPROCESS_DEFINED#endif#endif /* not __STRICT_ANSI__ */#ifdef __cplusplus} /* end of extern "C" */#endif#endif /* Not RC_INVOKED */#endif /* not _WCHAR_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -