32 #define WCHAR_MIN 0x0000
33 #define WCHAR_MAX 0xffff
41 #if _CRT_FUNCTIONS_REQUIRED
103 _ACRTIMP errno_t __cdecl wcrtomb_s(
123 _In_ wchar_t, _Source,
128 _ACRTIMP errno_t __cdecl wcsrtombs_s(
139 errno_t, wcsrtombs_s,
155 _ACRTIMP
int __cdecl
wctob(
159 #if __STDC_WANT_SECURE_LIB__
177 #endif // __STDC_WANT_SECURE_LIB__
192 return _P ==
NULL || _P->_Wchar == 0;
201 for (; 0 <
_N; ++
_S, --
_N)
214 for (; 0 <
_N; ++
_S1, ++_S2, --
_N)
216 return *_S1 < *_S2 ? -1 : 1;
230 #pragma warning(push)
231 #pragma warning(disable : 4995 4996 6386)
232 return (
wchar_t*)
memcpy(_S1, _S2, _N*
sizeof(
wchar_t));
243 #pragma warning(push)
244 #pragma warning(disable : 4996 6386)
245 return (
wchar_t*)
memmove(_S1, _S2, _N*
sizeof(
wchar_t));
273 wchar_t const*
const _SC =
_S;
274 return const_cast<wchar_t*
>(
wmemchr(_SC, _C, _N));
277 #endif // __cplusplus
279 #endif // _CRT_FUNCTIONS_REQUIRED
return
Definition: corecrt_memcpy_s.h:60
#define _In_reads_bytes_opt_(size)
Definition: sal.h:319
_Pre_maybenull_ _In_ _Source
Definition: wchar.h:121
Definition: corecrt.h:489
_VCRTIMP void *__cdecl memmove(_Out_writes_bytes_all_opt_(_Size) void *_Dst, _In_reads_bytes_opt_(_Size) void const *_Src, _In_ size_t _Size)
#define _ACRTIMP
Definition: corecrt.h:27
#define _CRT_UNUSED(x)
Definition: corecrt.h:184
#define _Out_opt_
Definition: sal.h:343
_Pre_maybenull_ _Inout_ _Deref_prepost_z_ wchar_t const _In_ _Count
Definition: wchar.h:148
#define _Check_return_opt_
Definition: corecrt.h:96
_Iter_
Definition: wchar.h:222
_Post_equal_to_(_S1) _At_buffer_(_S1
_Pre_maybenull_ _Dest
Definition: wchar.h:121
__DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_2(_Success_(return==0) errno_t, wcrtomb_s, _Out_opt_ size_t *, _Retval, _Out_writes_opt_z_(_Size) char, _Dest, _In_ wchar_t, _Source, _Inout_opt_ mbstate_t *, _State) __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_SIZE(_ACRTIMP
unsigned short wint_t
Definition: corecrt.h:477
_Success_(return==0) _ACRTIMP errno_t __cdecl mbsrtowcs_s(_Out_opt_ size_t *_Retval
wchar_t _Wint_t
Definition: wchar.h:37
#define _Out_writes_all_(size)
Definition: sal.h:354
_In_ size_t _Deref_pre_opt_z_ char const _In_ size_t _N
Definition: wchar.h:78
int errno_t
Definition: corecrt.h:476
wcrtomb
Definition: wchar.h:121
size_t rsize_t
Definition: corecrt.h:527
__inline _CRT_INSECURE_DEPRECATE_MEMORY(wmemmove_s) wchar_t *__CRTDECL wmemmove(_Out_writes_all_opt_(_N) wchar_t *_S1
#define _CRT_BEGIN_C_HEADER
Definition: vcruntime.h:73
__inline int __CRTDECL wmemcmp(_In_reads_(_N) wchar_t const *_S1, _In_reads_(_N) wchar_t const *_S2, _In_ size_t _N)
Definition: wchar.h:208
_ACRTIMP size_t __cdecl mbrtowc(_Pre_maybenull_ _Post_z_ wchar_t *_DstCh, _In_reads_bytes_opt_(_SizeInBytes) _Pre_opt_z_ char const *_SrcCh, _In_ size_t _SizeInBytes, _Inout_ mbstate_t *_State)
_ACRTIMP wint_t __cdecl btowc(_In_ int _Ch)
#define _Deref_prepost_opt_valid_
Definition: sal.h:1459
_Pre_maybenull_ _In_ _Inout_opt_ mbstate_t _State _In_ size_t _SizeInBytes
Definition: wchar.h:131
#define _Deref_pre_opt_z_
Definition: sal.h:1027
#define __CRTDECL
Definition: vcruntime.h:156
#define _Pre_maybenull_
Definition: sal.h:678
#define _In_opt_z_
Definition: sal.h:311
__DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_3(_Success_(return==0) errno_t, mbsrtowcs_s, _Out_opt_ size_t *, _Retval, _Post_z_ wchar_t, _Dest, _Inout_ _Deref_prepost_opt_valid_ char const **, _PSource, _In_ size_t, _Count, _Inout_ mbstate_t *, _State) __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_3_SIZE(_Success_(return
_Post_satisfies_(_S1[_Iter_]==_S2[_Iter_])) __inline _CRT_INSECURE_DEPRECATE_MEMORY(wmemcpy_s) wchar_t *__CRTDECL wmemcpy(_Out_writes_all_(_N) wchar_t *_S1
#define _Pre_opt_z_
Definition: sal.h:1271
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
#define _In_z_
Definition: sal.h:310
#define _In_
Definition: sal.h:305
_N wchar_t * _S1
Definition: wchar.h:163
_Pre_maybenull_ _Inout_ _Deref_prepost_z_ wchar_t const _In_ _Inout_opt_ mbstate_t _State _ACRTIMP int __cdecl wctob(_In_ wint_t _WCh)
#define _Inout_opt_
Definition: sal.h:376
#define _CONST_RETURN
Definition: corecrt.h:79
#define _In_opt_
Definition: sal.h:306
_Pre_maybenull_ _In_ _Inout_opt_ mbstate_t _State _In_ size_t _Inout_ _Deref_prepost_z_ wchar_t const ** _Src
Definition: wchar.h:131
_In_ size_t _Deref_pre_opt_z_ char const _In_ size_t _Inout_ mbstate_t * _State
Definition: wchar.h:78
#define _Out_writes_all_opt_(size)
Definition: sal.h:355
Definition: corecrt_wstdio.h:25
_In_ wchar_t _C
Definition: wchar.h:253
_N wchar_t _In_ rsize_t _N1
Definition: wchar.h:163
_Check_return_opt_ _ACRTIMP wchar_t *__cdecl _wsetlocale(_In_ int _Category, _In_opt_z_ wchar_t const *_Locale)
_N wchar_t _In_ rsize_t _In_reads_opt_(_N) wchar_t const *_S2
#define _Deref_prepost_z_
Definition: sal.h:1420
_Pre_maybenull_ _In_ _Inout_opt_ mbstate_t _State _Out_writes_bytes_to_opt_(_SizeInBytes,*_Retval) char *_Dst
__inline int __CRTDECL mbsinit(_In_opt_ mbstate_t const *_P)
Definition: wchar.h:188
__inline wchar_t _CONST_RETURN *__CRTDECL wmemchr(_In_reads_(_N) wchar_t const *_S, _In_ wchar_t _C, _In_ size_t _N)
Definition: wchar.h:195
#define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_SIZE(_DeclSpec, _FuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2)
Definition: corecrt.h:736
_In_reads_(_N) wchar_t const *_S2
wcsrtombs
Definition: wchar.h:148
memcpy(_Destination, _Source, _SourceSize)
#define _CRT_END_C_HEADER
Definition: vcruntime.h:76
return _S
Definition: wchar.h:262
_ACRTIMP size_t __cdecl mbrlen(_In_reads_bytes_opt_(_SizeInBytes) _Pre_opt_z_ char const *_Ch, _In_ size_t _SizeInBytes, _Inout_ mbstate_t *_State)
#define _At_buffer_(target, iter, bound, annos)
Definition: sal.h:247
_Pre_maybenull_ _Inout_ _Deref_prepost_z_ wchar_t const _PSource
Definition: wchar.h:148
#define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_3_SIZE(_DeclSpec, _FuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3)
Definition: corecrt.h:771
_In_ size_t _Size
Definition: wchar.h:78
_Pre_maybenull_ _Post_z_
Definition: wchar.h:121
#define _Inout_
Definition: sal.h:375
_Check_return_opt_ _In_opt_ _locale_t const _Locale
Definition: corecrt_wconio.h:289
__inline int __CRTDECL fwide(_In_opt_ FILE *_F, _In_ int _M)
Definition: wchar.h:179
Definition: corecrt.h:497
_Out_writes_opt_z_(_Size) wchar_t *_Dst
#define _Out_writes_to_opt_(size, count)
Definition: sal.h:353
_Check_return_opt_ _ACRTIMP _locale_t __cdecl _wcreate_locale(_In_ int _Category, _In_z_ wchar_t const *_Locale)
#define NULL
Definition: corecrt.h:158
_In_ size_t _Deref_pre_opt_z_ char const ** _PSrc
Definition: wchar.h:78