STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Static Public Member Functions | List of all members
char_traits< wchar_t > Struct Template Reference

Public Types

typedef wchar_t _Elem
 
typedef _Elem char_type
 
typedef wint_t int_type
 
typedef streampos pos_type
 
typedef streamoff off_type
 
typedef _Mbstatet state_type
 

Static Public Member Functions

static int __CLRCALL_OR_CDECL compare (const _Elem *_First1, const _Elem *_First2, size_t _Count)
 
static size_t __CLRCALL_OR_CDECL length (const _Elem *_First)
 
static _Elem *__CLRCALL_OR_CDECL copy (_Elem *_First1, const _Elem *_First2, size_t _Count)
 
static _Elem *__CLRCALL_OR_CDECL _Copy_s (_Out_writes_(_Size_in_words) _Elem *_First1, size_t _Size_in_words, _In_reads_(_Count) const _Elem *_First2, size_t _Count)
 
static const _Elem *__CLRCALL_OR_CDECL find (const _Elem *_First, size_t _Count, const _Elem &_Ch)
 
static _Elem *__CLRCALL_OR_CDECL move (_Elem *_First1, const _Elem *_First2, size_t _Count)
 
static _Elem *__CLRCALL_OR_CDECL assign (_Elem *_First, size_t _Count, _Elem _Ch)
 
static void __CLRCALL_OR_CDECL assign (_Elem &_Left, const _Elem &_Right) _NOEXCEPT
 
static bool __CLRCALL_OR_CDECL eq (const _Elem &_Left, const _Elem &_Right) _NOEXCEPT
 
static bool __CLRCALL_OR_CDECL lt (const _Elem &_Left, const _Elem &_Right) _NOEXCEPT
 
static _Elem __CLRCALL_OR_CDECL to_char_type (const int_type &_Meta) _NOEXCEPT
 
static int_type __CLRCALL_OR_CDECL to_int_type (const _Elem &_Ch) _NOEXCEPT
 
static bool __CLRCALL_OR_CDECL eq_int_type (const int_type &_Left, const int_type &_Right) _NOEXCEPT
 
static int_type __CLRCALL_OR_CDECL not_eof (const int_type &_Meta) _NOEXCEPT
 
static int_type __CLRCALL_OR_CDECL eof () _NOEXCEPT
 

Member Typedef Documentation

Member Function Documentation

static _Elem* __CLRCALL_OR_CDECL char_traits< wchar_t >::_Copy_s ( _Out_writes_(_Size_in_words) _Elem _First1,
size_t  _Size_in_words,
_In_reads_(_Count) const _Elem _First2,
size_t  _Count 
)
inlinestatic
319  { // copy [_First2, _First2 + _Count) to [_First1, ...)
320  if (0 < _Count)
321  _CRT_SECURE_WMEMCPY(_First1, _Size_in_words, _First2, _Count);
322  return (_First1);
323  }
_Diff _Count
Definition: algorithm:1941
#define _CRT_SECURE_WMEMCPY(dest, destsize, source, count)
Definition: yvals.h:358
static _Elem* __CLRCALL_OR_CDECL char_traits< wchar_t >::assign ( _Elem _First,
size_t  _Count,
_Elem  _Ch 
)
inlinestatic
341  { // assign _Count * _Ch to [_First, ...)
342  return ((_Elem *)_CSTD wmemset(_First, _Ch, _Count));
343  }
_In_ size_t _In_ unsigned int _Ch
Definition: mbstring.h:161
_Diff _Count
Definition: algorithm:1941
#define _CSTD
Definition: yvals.h:559
wchar_t _Elem
Definition: iosfwd:289
static void __CLRCALL_OR_CDECL char_traits< wchar_t >::assign ( _Elem _Left,
const _Elem _Right 
)
inlinestatic
346  { // assign an element
347  _Left = _Right;
348  }
const _Ty & _Right
Definition: algorithm:4087
static int __CLRCALL_OR_CDECL char_traits< wchar_t >::compare ( const _Elem _First1,
const _Elem _First2,
size_t  _Count 
)
inlinestatic
298  { // compare [_First1, _First1 + _Count) with [_First2, ...)
299  return (_Count == 0 ? 0
300  : _CSTD wmemcmp(_First1, _First2, _Count));
301  }
_Diff _Count
Definition: algorithm:1941
#define _CSTD
Definition: yvals.h:559
__inline int __CRTDECL wmemcmp(_In_reads_(_N) const wchar_t *_S1, _In_reads_(_N) const wchar_t *_S2, _In_ size_t _N)
Definition: wchar.h:1262
static _Elem* __CLRCALL_OR_CDECL char_traits< wchar_t >::copy ( _Elem _First1,
const _Elem _First2,
size_t  _Count 
)
inlinestatic
311  { // copy [_First2, _First2 + _Count) to [_First1, ...)
312  return (_Count == 0 ? _First1
313  : (_Elem *)_CSTD wmemcpy(_First1, _First2, _Count));
314  }
_Diff _Count
Definition: algorithm:1941
#define _CSTD
Definition: yvals.h:559
wchar_t _Elem
Definition: iosfwd:289
static int_type __CLRCALL_OR_CDECL char_traits< wchar_t >::eof ( )
inlinestatic
387  { // return end-of-file metacharacter
388  return (WEOF);
389  }
#define WEOF
Definition: ctype.h:26
static bool __CLRCALL_OR_CDECL char_traits< wchar_t >::eq ( const _Elem _Left,
const _Elem _Right 
)
inlinestatic
352  { // test for element equality
353  return (_Left == _Right);
354  }
const _Ty & _Right
Definition: algorithm:4087
static bool __CLRCALL_OR_CDECL char_traits< wchar_t >::eq_int_type ( const int_type _Left,
const int_type _Right 
)
inlinestatic
376  { // test for metacharacter equality
377  return (_Left == _Right);
378  }
const _Ty & _Right
Definition: algorithm:4087
static const _Elem* __CLRCALL_OR_CDECL char_traits< wchar_t >::find ( const _Elem _First,
size_t  _Count,
const _Elem _Ch 
)
inlinestatic
327  { // look for _Ch in [_First, _First + _Count)
328  return (_Count == 0 ? (const _Elem *)0
329  : (const _Elem *)_CSTD wmemchr(_First, _Ch, _Count));
330  }
__inline _CONST_RETURN wchar_t *__CRTDECL wmemchr(_In_reads_(_N) const wchar_t *_S, _In_ wchar_t _C, _In_ size_t _N)
Definition: wchar.h:1257
_In_ size_t _In_ unsigned int _Ch
Definition: mbstring.h:161
_Diff _Count
Definition: algorithm:1941
#define _CSTD
Definition: yvals.h:559
wchar_t _Elem
Definition: iosfwd:289
static size_t __CLRCALL_OR_CDECL char_traits< wchar_t >::length ( const _Elem _First)
inlinestatic
304  { // find length of null-terminated sequence
305  return (*_First == 0 ? 0
306  : _CSTD wcslen(_First));
307  }
_Check_return_ _CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
#define _CSTD
Definition: yvals.h:559
static bool __CLRCALL_OR_CDECL char_traits< wchar_t >::lt ( const _Elem _Left,
const _Elem _Right 
)
inlinestatic
358  { // test if _Left precedes _Right
359  return (_Left < _Right);
360  }
const _Ty & _Right
Definition: algorithm:4087
static _Elem* __CLRCALL_OR_CDECL char_traits< wchar_t >::move ( _Elem _First1,
const _Elem _First2,
size_t  _Count 
)
inlinestatic
334  { // copy [_First2, _First2 + _Count) to [_First1, ...)
335  return (_Count == 0 ? _First1
336  : (_Elem *)_CSTD wmemmove(_First1, _First2, _Count));
337  }
_Diff _Count
Definition: algorithm:1941
#define _CSTD
Definition: yvals.h:559
wchar_t _Elem
Definition: iosfwd:289
static int_type __CLRCALL_OR_CDECL char_traits< wchar_t >::not_eof ( const int_type _Meta)
inlinestatic
382  { // return anything but EOF
383  return (_Meta != eof() ? _Meta : !eof());
384  }
static int_type __CLRCALL_OR_CDECL eof() _NOEXCEPT
Definition: iosfwd:386
static _Elem __CLRCALL_OR_CDECL char_traits< wchar_t >::to_char_type ( const int_type _Meta)
inlinestatic
364  { // convert metacharacter to character
365  return (_Meta);
366  }
static int_type __CLRCALL_OR_CDECL char_traits< wchar_t >::to_int_type ( const _Elem _Ch)
inlinestatic
370  { // convert character to metacharacter
371  return (_Ch);
372  }
_In_ size_t _In_ unsigned int _Ch
Definition: mbstring.h:161

The documentation for this struct was generated from the following file: