STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Macros | Typedefs | Functions | Variables
wchar.h File Reference
#include <corecrt.h>
#include <corecrt_memcpy_s.h>
#include <corecrt_wconio.h>
#include <corecrt_wctype.h>
#include <corecrt_wdirect.h>
#include <corecrt_wio.h>
#include <corecrt_wprocess.h>
#include <corecrt_wstdio.h>
#include <corecrt_wstdlib.h>
#include <corecrt_wstring.h>
#include <corecrt_wtime.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <vcruntime_string.h>

Go to the source code of this file.

Macros

#define _INC_WCHAR
 
#define WCHAR_MIN   0x0000
 
#define WCHAR_MAX   0xffff
 

Typedefs

typedef wchar_t _Wint_t
 

Functions

_Check_return_opt_ _ACRTIMP wchar_t *__cdecl _wsetlocale (_In_ int _Category, _In_opt_z_ wchar_t const *_Locale)
 
_Check_return_opt_ _ACRTIMP _locale_t __cdecl _wcreate_locale (_In_ int _Category, _In_z_ wchar_t const *_Locale)
 
_ACRTIMP wint_t __cdecl btowc (_In_ int _Ch)
 
_ACRTIMP size_t __cdecl mbrlen (_In_reads_bytes_opt_(_SizeInBytes) _Pre_opt_z_ char const *_Ch, _In_ size_t _SizeInBytes, _Inout_ mbstate_t *_State)
 
_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)
 
 _Success_ (return==0) _ACRTIMP errno_t __cdecl mbsrtowcs_s(_Out_opt_ size_t *_Retval
 
 _Out_writes_opt_z_ (_Size) wchar_t *_Dst
 
 __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
 
 __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
 
_Pre_maybenull_ _In_ _Inout_opt_ mbstate_t _State _Out_writes_bytes_to_opt_ (_SizeInBytes,*_Retval) char *_Dst
 
 __DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_3 (_Success_(return==0) errno_t, wcsrtombs_s, _Out_opt_ size_t *, _Retval, _Out_writes_opt_z_(_Size) char, _Dest, _Inout_ _Deref_prepost_z_ wchar_t const **, _PSrc, _In_ size_t, _Count, _Inout_opt_ mbstate_t *, _State) __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_3_SIZE(_ACRTIMP
 
_Pre_maybenull_ _Inout_ _Deref_prepost_z_ wchar_t const _In_ _Inout_opt_ mbstate_t _State _ACRTIMP int __cdecl wctob (_In_ wint_t _WCh)
 
_N wchar_t _In_ rsize_t _In_reads_opt_ (_N) wchar_t const *_S2
 
__inline int __CRTDECL fwide (_In_opt_ FILE *_F, _In_ int _M)
 
__inline int __CRTDECL mbsinit (_In_opt_ mbstate_t const *_P)
 
__inline wchar_t _CONST_RETURN *__CRTDECL wmemchr (_In_reads_(_N) wchar_t const *_S, _In_ wchar_t _C, _In_ size_t _N)
 
__inline int __CRTDECL wmemcmp (_In_reads_(_N) wchar_t const *_S1, _In_reads_(_N) wchar_t const *_S2, _In_ size_t _N)
 
 _Post_equal_to_ (_S1) _At_buffer_(_S1
 
 _Post_satisfies_ (_S1[_Iter_]==_S2[_Iter_])) __inline _CRT_INSECURE_DEPRECATE_MEMORY(wmemcpy_s) wchar_t *__CRTDECL wmemcpy(_Out_writes_all_(_N) wchar_t *_S1
 
 _In_reads_ (_N) wchar_t const *_S2
 
__inline _CRT_INSECURE_DEPRECATE_MEMORY (wmemmove_s) wchar_t *__CRTDECL wmemmove(_Out_writes_all_opt_(_N) wchar_t *_S1
 
 _Post_equal_to_ (_S) _At_buffer_(_S
 
 _Post_satisfies_ (_S[_Iter_]==_C)) __inline wchar_t *__CRTDECL wmemset(_Out_writes_all_(_N) wchar_t *_S
 
 for (;0< _N;++_Su,--_N)
 

Variables

_In_ size_t _Size
 
_In_ size_t _Deref_pre_opt_z_ char const ** _PSrc
 
_In_ size_t _Deref_pre_opt_z_ char const _In_ size_t _N
 
_In_ size_t _Deref_pre_opt_z_ char const _In_ size_t _Inout_ mbstate_t_State
 
 wcrtomb
 
_Pre_maybenull_ _Post_z_
 
_Pre_maybenull_ char
 
_Pre_maybenull_ _Dest
 
_Pre_maybenull_ _In_ wchar_t
 
_Pre_maybenull_ _In_ _Source
 
_Pre_maybenull_ _In_ _Inout_opt_ mbstate_t _State _In_ size_t _SizeInBytes
 
_Pre_maybenull_ _In_ _Inout_opt_ mbstate_t _State _In_ size_t _Inout_ _Deref_prepost_z_ wchar_t const ** _Src
 
 wcsrtombs
 
_Pre_maybenull_ _Inout_ _Deref_prepost_z_ wchar_t const _PSource
 
_Pre_maybenull_ _Inout_ _Deref_prepost_z_ wchar_t const _In_ size_t
 
_Pre_maybenull_ _Inout_ _Deref_prepost_z_ wchar_t const _In_ _Count
 
_N wchar_t_S1
 
_N wchar_t _In_ rsize_t _N1
 
 _Iter_
 
_In_ wchar_t _C
 
return _S
 

Macro Definition Documentation

#define _INC_WCHAR
#define WCHAR_MAX   0xffff
#define WCHAR_MIN   0x0000

Typedef Documentation

typedef wchar_t _Wint_t

Function Documentation

__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_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_SECURE_FUNC_1_3 ( _Success_(return==0)  errno_t,
wcsrtombs_s  ,
_Out_opt_ size_t ,
_Retval  ,
_Out_writes_opt_z_(_Size char,
_Dest  ,
_Inout_ _Deref_prepost_z_ wchar_t const **  ,
_PSrc  ,
_In_  size_t,
_Count  ,
_Inout_opt_ mbstate_t ,
_State   
)
__inline _CRT_INSECURE_DEPRECATE_MEMORY ( wmemmove_s  )
_In_reads_ ( _N  ) const
__inline _In_reads_opt_ ( _N  ) const
_Pre_maybenull_ _In_ _Inout_opt_ mbstate_t _State _Out_writes_bytes_to_opt_ ( _SizeInBytes  ,
_Retval 
)
_Out_writes_opt_z_ ( _Size  )
_Post_equal_to_ ( _S1  )
_Post_equal_to_ ( _S  )
_Post_satisfies_ ( _S1  [_Iter_] = = _S2[_Iter_])
_Post_satisfies_ ( _S  [_Iter_] = _C)
_Success_ ( return  = = 0)
_Check_return_opt_ _ACRTIMP _locale_t __cdecl _wcreate_locale ( _In_ int  _Category,
_In_z_ wchar_t const *  _Locale 
)
_Check_return_opt_ _ACRTIMP wchar_t* __cdecl _wsetlocale ( _In_ int  _Category,
_In_opt_z_ wchar_t const *  _Locale 
)
_ACRTIMP wint_t __cdecl btowc ( _In_ int  _Ch)
for ( )
259  {
260  *_Su = _C;
261  }
_In_ wchar_t _C
Definition: wchar.h:253
__inline int __CRTDECL fwide ( _In_opt_ FILE _F,
_In_ int  _M 
)
183  {
184  _CRT_UNUSED(_F);
185  return (_M);
186  }
#define _CRT_UNUSED(x)
Definition: corecrt.h:184
_ACRTIMP size_t __cdecl mbrlen ( _In_reads_bytes_opt_(_SizeInBytes) _Pre_opt_z_ char const *  _Ch,
_In_ size_t  _SizeInBytes,
_Inout_ mbstate_t _State 
)
_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 
)
__inline int __CRTDECL mbsinit ( _In_opt_ mbstate_t const *  _P)
191  {
192  return _P == NULL || _P->_Wchar == 0;
193  }
#define NULL
Definition: corecrt.h:158
__inline wchar_t _CONST_RETURN* __CRTDECL wmemchr ( _In_reads_(_N) wchar_t const *  _S,
_In_ wchar_t  _C,
_In_ size_t  _N 
)
200  {
201  for (; 0 < _N; ++_S, --_N)
202  if (*_S == _C)
203  return (wchar_t _CONST_RETURN*)_S;
204 
205  return 0;
206  }
_In_ size_t _Deref_pre_opt_z_ char const _In_ size_t _N
Definition: wchar.h:78
#define _CONST_RETURN
Definition: corecrt.h:79
_In_ wchar_t _C
Definition: wchar.h:253
return _S
Definition: wchar.h:262
__inline int __CRTDECL wmemcmp ( _In_reads_(_N) wchar_t const *  _S1,
_In_reads_(_N) wchar_t const *  _S2,
_In_ size_t  _N 
)
213  {
214  for (; 0 < _N; ++_S1, ++_S2, --_N)
215  if (*_S1 != *_S2)
216  return *_S1 < *_S2 ? -1 : 1;
217 
218  return 0;
219  }
_In_ size_t _Deref_pre_opt_z_ char const _In_ size_t _N
Definition: wchar.h:78
_N wchar_t * _S1
Definition: wchar.h:163

Variable Documentation

_Iter_
Initial value:
{
return (wchar_t*)memcpy(_S1, _S2, _N*sizeof(wchar_t))
_In_ size_t _Deref_pre_opt_z_ char const _In_ size_t _N
Definition: wchar.h:78
_N wchar_t * _S1
Definition: wchar.h:163
memcpy(_Destination, _Source, _SourceSize)
_Pre_maybenull_ _Post_z_
return _S
_N wchar_t * _S1
wcrtomb
wcsrtombs