25 #if __STDC_WANT_SECURE_LIB__
64 #endif // __STDC_WANT_SECURE_LIB__
73 #if defined _DEBUG && defined _CRTDBG_MAP_ALLOC
74 #pragma push_macro("_wcsdup")
83 #if defined _DEBUG && defined _CRTDBG_MAP_ALLOC
84 #pragma pop_macro("_wcsdup")
91 wchar_t, _Destination,
98 #pragma warning(disable: 28719) // __WARNING_BANNED_API_USAGE
99 #pragma warning(disable: 28726) // __WARNING_BANNED_API_USAGEL2
110 _In_z_ wchar_t const* _String1,
116 wchar_t, _Destination,
120 #pragma warning(push)
121 #pragma warning(disable: 28719) // __WARNING_BANNED_API_USAGE
122 #pragma warning(disable: 28726) // __WARNING_BANNED_API_USAGEL2
133 _In_z_ wchar_t const* _Control
155 #if __STDC_WANT_SECURE_LIB__ && !defined(__midl)
166 static __inline
size_t __CRTDECL wcsnlen_s(
171 return (_Source == 0) ? 0 : wcsnlen(_Source, _MaxCount);
174 #endif // __STDC_WANT_SECURE_LIB__ && !defined(__midl)
200 wchar_t, _Destination,
216 _In_z_ wchar_t const* _Control
221 _In_z_ wchar_t const* _String,
222 _In_z_ wchar_t const* _Control
232 #if !defined RC_INVOKED && !defined __midl
234 #if defined _CRT_NON_CONFORMING_WCSTOK
235 #define _WCSTOK_DEPRECATED _CRT_INSECURE_DEPRECATE(wcstok_s)
237 #define _WCSTOK_DEPRECATED _CRT_DEPRECATE_TEXT( \
238 "wcstok has been changed to conform with the ISO C standard, " \
239 "adding an extra context parameter. To use the legacy Microsoft " \
240 "wcstok, define _CRT_NON_CONFORMING_WCSTOK.")
243 #pragma warning(push)
244 #pragma warning(disable: 4141 4996) // Deprecated function use
247 static __inline
wchar_t*
__CRTDECL _wcstok(
249 _In_z_ wchar_t const* const _Delimiter
252 return wcstok(_String, _Delimiter, 0);
255 #if defined _CRT_NON_CONFORMING_WCSTOK && !defined __cplusplus
256 #define wcstok _wcstok
259 #if defined __cplusplus && !defined _CRT_NO_INLINE_DEPRECATED_WCSTOK
263 _In_z_ wchar_t const* _Delimiter
266 return wcstok(_String, _Delimiter, 0);
272 #endif // !defined RC_INVOKED && !defined __midl
278 _ACRTIMP wchar_t* __cdecl _wcserror(
279 _In_ int _ErrorNumber
285 _In_ size_t _SizeInWords,
286 _In_ int _ErrorNumber
298 _ACRTIMP wchar_t* __cdecl __wcserror(
304 _In_ size_t _SizeInWords,
305 _In_z_ wchar_t const* _ErrorMessage
311 _In_z_ wchar_t const*, _ErrorMessage
315 _In_z_ wchar_t const* _String1,
316 _In_z_ wchar_t const* _String2
320 _In_z_ wchar_t const* _String1,
321 _In_z_ wchar_t const* _String2,
328 _In_ size_t _MaxCount
334 _In_ size_t _MaxCount,
340 _In_ size_t _SizeInWords,
342 _In_ size_t _MaxCount
348 _In_ wchar_t, _Value,
349 _In_ size_t, _MaxCount
356 _In_ wchar_t, _Value,
357 _In_ size_t, _MaxCount
366 _In_ size_t _SizeInWords,
385 _In_ size_t _SizeInWords
401 _In_ size_t _SizeInWords,
458 _In_z_ wchar_t const* _Source,
466 _In_z_ wchar_t const* _Source,
473 _In_z_ wchar_t const* _String1,
474 _In_z_ wchar_t const* _String2
479 _In_z_ wchar_t const* _String1,
480 _In_z_ wchar_t const* _String2,
486 _In_z_ wchar_t const* _String1,
487 _In_z_ wchar_t const* _String2
492 _In_z_ wchar_t const* _String1,
493 _In_z_ wchar_t const* _String2,
501 _In_ size_t _MaxCount
508 _In_ size_t _MaxCount,
516 _In_ size_t _MaxCount
523 _In_ size_t _MaxCount,
541 return const_cast<wchar_t*
>(wcschr(static_cast<wchar_t const*>(_String), _C));
547 return const_cast<wchar_t*
>(
wcspbrk(static_cast<wchar_t const*>(_String), _Control));
553 return const_cast<wchar_t*
>(
wcsrchr(static_cast<wchar_t const*>(_String), _C));
560 return const_cast<wchar_t*
>(wcsstr(static_cast<wchar_t const*>(_String), _SubStr));
564 #endif // __cplusplus
573 #if _CRT_INTERNAL_NONSTDC_NAMES
574 #if defined _DEBUG && defined _CRTDBG_MAP_ALLOC
575 #pragma push_macro("wcsdup")
581 _In_z_ wchar_t const* _String
584 #if defined _DEBUG && defined _CRTDBG_MAP_ALLOC
585 #pragma pop_macro("wcsdup")
589 #define wcswcs wcsstr
593 _In_z_ wchar_t const* _String1,
594 _In_z_ wchar_t const* _String2
601 _In_ size_t _MaxCount
609 _In_ size_t _MaxCount
615 _Inout_z_
wchar_t* _String
621 _Inout_z_
wchar_t* _String,
628 _Inout_z_
wchar_t* _String
634 _Inout_z_
wchar_t* _String
639 _In_z_ wchar_t const* _String1,
640 _In_z_ wchar_t const* _String2
643 #endif // _CRT_INTERNAL_NONSTDC_NAMES
return
Definition: corecrt_memcpy_s.h:60
Definition: corecrt.h:489
_Check_return_wat_ _ACRTIMP errno_t __cdecl _wcserror_s(_Out_writes_opt_z_(_SizeInWords) wchar_t *_Buffer, _In_ size_t _SizeInWords, _In_ int _ErrorNumber)
#define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1)
Definition: corecrt.h:1795
#define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1)
Definition: corecrt.h:712
wcsncat
Definition: corecrt_wstring.h:184
_In_ _Count _Check_return_ _ACRTIMP int __cdecl wcsncmp(_In_reads_or_z_(_MaxCount) wchar_t const *_String1, _In_reads_or_z_(_MaxCount) wchar_t const *_String2, _In_ size_t _MaxCount)
_In_opt_ _Locale _In_z_ wchar_t const _In_ _In_range_(<=, _CRT_INT_MAX) size_t _MaxCount)
_Check_return_ _When_(_MaxCount > _String_length_(_Source), _Post_satisfies_(return==_String_length_(_Source))) _When_(_MaxCount<
wcsncpy
Definition: corecrt_wstring.h:206
_Ret_z_ _ACRTIMP wchar_t *__cdecl wcsset(_Inout_z_ wchar_t *_String, _In_ wchar_t _Value)
_wcsnset
Definition: corecrt_wstring.h:353
_Check_return_ _ACRTIMP int __cdecl _wcsicmp_l(_In_z_ wchar_t const *_String1, _In_z_ wchar_t const *_String2, _In_opt_ _locale_t _Locale)
_Out_writes_opt_(_MaxCount)
_Check_return_ _ACRTIMP int __cdecl wcscoll(_In_z_ wchar_t const *_String1, _In_z_ wchar_t const *_String2)
_Check_return_ _ACRTIMP int __cdecl _wcsicoll(_In_z_ wchar_t const *_String1, _In_z_ wchar_t const *_String2)
#define _Check_return_opt_
Definition: corecrt.h:96
#define _Ret_z_
Definition: sal.h:521
_Pre_notnull_ _Post_maybez_ _Out_writes_(_Count) _Post_maybez_
#define _Ret_maybenull_
Definition: sal.h:526
_Check_return_ _ACRTIMP _CRTALLOCATOR wchar_t *__cdecl _wcsdup(_In_z_ wchar_t const *_String)
#define _Out_writes_opt_z_(size)
Definition: sal.h:350
_Inout_updates_z_(_String_length_(_Destination)+_String_length_(_Source)+1)
_Pre_notnull_ _Post_maybez_ _In_ _Count _Check_return_ _ACRTIMP wchar_t _CONST_RETURN *__cdecl wcspbrk(_In_z_ wchar_t const *_String, _In_z_ wchar_t const *_Control)
int errno_t
Definition: corecrt.h:476
wcscat
Definition: corecrt_wstring.h:101
#define _Check_return_wat_
Definition: corecrt.h:102
size_t rsize_t
Definition: corecrt.h:527
_Ret_z_ _ACRTIMP wchar_t *__cdecl wcslwr(_Inout_z_ wchar_t *_String)
_In_opt_ _Locale _Check_return_wat_ _ACRTIMP errno_t __cdecl _wcsupr_s(_Inout_updates_z_(_Size) wchar_t *_String, _In_ size_t _Size)
_Check_return_ _ACRTIMP int __cdecl _wcsncoll_l(_In_reads_or_z_(_MaxCount) wchar_t const *_String1, _In_reads_or_z_(_MaxCount) wchar_t const *_String2, _In_ size_t _MaxCount, _In_opt_ _locale_t _Locale)
_wcslwr_s_l
Definition: corecrt_wstring.h:412
_wcsset_s
Definition: corecrt_wstring.h:377
wcscpy
Definition: corecrt_wstring.h:124
_CRT_BEGIN_C_HEADER _Check_return_ _Ret_maybenull_ _In_ size_t _Size
Definition: corecrt_malloc.h:58
#define _CRT_BEGIN_C_HEADER
Definition: vcruntime.h:73
_Check_return_ _VCRTIMP wchar_t _CONST_RETURN *__cdecl wcsrchr(_In_z_ wchar_t const *_Str, _In_ wchar_t _Ch)
#define _Ret_range_(lb, ub)
Definition: sal.h:570
_Check_return_ _ACRTIMP int __cdecl _wcsicoll_l(_In_z_ wchar_t const *_String1, _In_z_ wchar_t const *_String2, _In_opt_ _locale_t _Locale)
__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1(errno_t, wcscat_s, wchar_t, _Destination, _In_z_ wchar_t const *, _Source) __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1(wchar_t *
_wcsnset_s
Definition: corecrt_wstring.h:353
_wcsupr_s_l
Definition: corecrt_wstring.h:448
_Check_return_wat_ _ACRTIMP errno_t __cdecl wcscpy_s(_Out_writes_z_(_SizeInWords) wchar_t *_Destination, _In_ rsize_t _SizeInWords, _In_z_ wchar_t const *_Source)
#define __CRTDECL
Definition: vcruntime.h:156
_Check_return_ _ACRTIMP size_t __cdecl wcslen(_In_z_ wchar_t const *_String)
#define _In_opt_z_
Definition: sal.h:311
_In_z_ wchar_t const _Source _Check_return_ _ACRTIMP int __cdecl wcscmp(_In_z_ wchar_t const *_String1, _In_z_ wchar_t const *_String2)
#define _Check_return_
Definition: sal.h:554
_In_reads_or_z_(_Count) wchar_t const *
_String
Definition: corecrt_wstring.h:355
_wcslwr
Definition: corecrt_wstring.h:394
_Check_return_ _In_ size_t _MaxCount
Definition: corecrt_wstring.h:153
#define _In_z_
Definition: sal.h:310
wcsncat_s
Definition: corecrt_wstring.h:184
#define _In_
Definition: sal.h:305
#define _Inout_opt_
Definition: sal.h:376
_wcsset
Definition: corecrt_wstring.h:377
_Source
Definition: corecrt_wstring.h:187
_CRT_BEGIN_C_HEADER _Check_return_wat_ _ACRTIMP errno_t __cdecl wcscat_s(_Inout_updates_z_(_SizeInWords) wchar_t *_Destination, _In_ rsize_t _SizeInWords, _In_z_ wchar_t const *_Source)
#define _CONST_RETURN
Definition: corecrt.h:79
wcsncpy_s
Definition: corecrt_wstring.h:206
#define _In_opt_
Definition: sal.h:306
#define _Inout_opt_z_
Definition: sal.h:381
_Check_return_ _ACRTIMP int __cdecl _wcsnicmp_l(_In_reads_or_z_(_MaxCount) wchar_t const *_String1, _In_reads_or_z_(_MaxCount) wchar_t const *_String2, _In_ size_t _MaxCount, _In_opt_ _locale_t _Locale)
_Ret_z_ _ACRTIMP wchar_t *__cdecl wcsnset(_Inout_updates_z_(_MaxCount) wchar_t *_String, _In_ wchar_t _Value, _In_ size_t _MaxCount)
_Check_return_wat_ *_SizeRead wchar_t * _Buffer
Definition: corecrt_wconio.h:27
#define _Deref_prepost_opt_z_
Definition: sal.h:1421
#define _ACRTIMP_ALT
Definition: corecrt.h:34
_Check_return_ _ACRTIMP int __cdecl _wcscoll_l(_In_z_ wchar_t const *_String1, _In_z_ wchar_t const *_String2, _In_opt_ _locale_t _Locale)
_In_ wchar_t _C
Definition: wchar.h:253
_Check_return_ _ACRTIMP int __cdecl _wcsnicmp(_In_reads_or_z_(_MaxCount) wchar_t const *_String1, _In_reads_or_z_(_MaxCount) wchar_t const *_String2, _In_ size_t _MaxCount)
#define _CRTALLOCATOR
Definition: corecrt.h:56
_Out_writes_z_(_String_length_(_Source)+1)
_CRT_BEGIN_C_HEADER _In_ int _SizeInWords
Definition: corecrt_wdirect.h:25
_Ret_z_ _ACRTIMP wchar_t *__cdecl wcsrev(_Inout_z_ wchar_t *_String)
_wcsupr
Definition: corecrt_wstring.h:430
#define _CRT_INT_MAX
Definition: corecrt.h:144
_wcsupr_l
Definition: corecrt_wstring.h:448
_In_z_ wchar_t const _In_ _In_opt_ _locale_t _Locale
Definition: corecrt_wstring.h:469
_Check_return_ _ACRTIMP int __cdecl _wcsnicoll(_In_reads_or_z_(_MaxCount) wchar_t const *_String1, _In_reads_or_z_(_MaxCount) wchar_t const *_String2, _In_ size_t _MaxCount)
#define _Prepost_z_
Definition: sal.h:705
_In_ _Value _Check_return_wat_ _ACRTIMP errno_t __cdecl _wcslwr_s(_Inout_updates_z_(_SizeInWords) wchar_t *_String, _In_ size_t _SizeInWords)
_In_ _In_ _MaxCount _ACRTIMP wchar_t *__cdecl _wcsrev(_Inout_z_ wchar_t *_String)
#define _CRT_END_C_HEADER
Definition: vcruntime.h:76
_Check_return_ _In_z_ wchar_t const _Inout_opt_ _Deref_prepost_opt_z_ wchar_t ** _Context
Definition: corecrt_wstring.h:228
_Check_return_ _ACRTIMP wchar_t *__cdecl wcstok_s(_Inout_opt_z_ wchar_t *_String, _In_z_ wchar_t const *_Delimiter, _Inout_ _Deref_prepost_opt_z_ wchar_t **_Context)
__RETURN_POLICY_DST
Definition: corecrt_wstring.h:101
_Check_return_ _In_z_ wchar_t const * _Delimiter
Definition: corecrt_wstring.h:228
_In_z_ wchar_t const * _String2
Definition: corecrt_wstring.h:317
_In_ _Value
Definition: corecrt_wstring.h:355
#define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SalAttributeDst, _DstType, _Dst)
Definition: corecrt.h:709
_Ret_z_ _ACRTIMP wchar_t *__cdecl wcsupr(_Inout_z_ wchar_t *_String)
_ACRTIMP
Definition: corecrt_wstring.h:101
_Inout_z_
Definition: corecrt_wstring.h:379
#define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2)
Definition: corecrt.h:1836
_Destination
Definition: corecrt_wstring.h:102
_In_opt_ _Locale _Success_(return< _MaxCount) _Check_return_opt_ _ACRTIMP size_t __cdecl wcsxfrm(_Out_writes_opt_(_MaxCount) _Post_maybez_ wchar_t *_Destination
_Diff _Count
Definition: algorithm:1941
#define _Inout_
Definition: sal.h:375
_Check_return_ _Ret_maybenull_ _In_z_ wchar_t const * _SubStr
Definition: vcruntime_string.h:102
#define _WCSTOK_DEPRECATED
Definition: corecrt_wstring.h:237
_Check_return_ _ACRTIMP size_t __cdecl wcsspn(_In_z_ wchar_t const *_String, _In_z_ wchar_t const *_Control)
_In_z_ wchar_t const _Source _Check_return_ _ACRTIMP size_t __cdecl wcscspn(_In_z_ wchar_t const *_String, _In_z_ wchar_t const *_Control)
_Check_return_ _CRT_INSECURE_DEPRECATE(wcstok_s) _ACRTIMP wchar_t *__cdecl wcstok(_Inout_opt_z_ wchar_t *_String
_wcslwr_l
Definition: corecrt_wstring.h:412
_Check_return_ _CRT_NONSTDC_DEPRECATE(_wcsdup) _ACRTIMP wchar_t *__cdecl wcsdup(_In_z_ wchar_t const *_String)
_Check_return_ _Post_satisfies_(return==_MaxCount)) _ACRTIMP size_t __cdecl wcsnlen(_In_reads_or_z_(_MaxCount) wchar_t const *_Source
_Check_return_ _ACRTIMP int __cdecl _wcsncoll(_In_reads_or_z_(_MaxCount) wchar_t const *_String1, _In_reads_or_z_(_MaxCount) wchar_t const *_String2, _In_ size_t _MaxCount)
_Check_return_ _ACRTIMP int __cdecl _wcsnicoll_l(_In_reads_or_z_(_MaxCount) wchar_t const *_String1, _In_reads_or_z_(_MaxCount) wchar_t const *_String2, _In_ size_t _MaxCount, _In_opt_ _locale_t _Locale)
__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2(errno_t, wcsncat_s, _Prepost_z_ wchar_t, _Destination, _In_reads_or_z_(_Count) wchar_t const *, _Source, _In_ size_t, _Count) __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX(wchar_t *
_Check_return_wat_ _ACRTIMP_ALT errno_t __cdecl __wcserror_s(_Out_writes_opt_z_(_SizeInWords) wchar_t *_Buffer, _In_ size_t _SizeInWords, _In_z_ wchar_t const *_ErrorMessage)
#define _Pre_notnull_
Definition: sal.h:677
__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0(errno_t, _wcslwr_s, _Prepost_z_ wchar_t, _String) __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0(wchar_t *
#define NULL
Definition: corecrt.h:158
#define _Post_maybez_
Definition: sal.h:1369