STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Macros | Functions
xlocinfo File Reference
#include <xlocinfo.h>
#include <cstdlib>
#include <xstddef>

Classes

class  _Timevec
 
class  _Locinfo
 

Macros

#define _XLOCINFO_
 

Functions

template<class _Elem >
int __CRTDECL _LStrcoll (const _Elem *_First1, const _Elem *_Last1, const _Elem *_First2, const _Elem *_Last2, const _Locinfo::_Collvec *)
 
template<>
int __CRTDECL _LStrcoll (const char *_First1, const char *_Last1, const char *_First2, const char *_Last2, const _Locinfo::_Collvec *_Vector)
 
template<>
int __CRTDECL _LStrcoll (const wchar_t *_First1, const wchar_t *_Last1, const wchar_t *_First2, const wchar_t *_Last2, const _Locinfo::_Collvec *_Vector)
 
template<class _Elem >
size_t __CRTDECL _LStrxfrm (_Elem *_First1, _Elem *_Last1, const _Elem *_First2, const _Elem *_Last2, const _Locinfo::_Collvec *)
 
template<>
size_t __CRTDECL _LStrxfrm (_Out_writes_(_Last1-_First1) _Post_readable_size_(return) char *_First1, _In_z_ char *_Last1, const char *_First2, const char *_Last2, const _Locinfo::_Collvec *_Vector)
 
template<>
size_t __CRTDECL _LStrxfrm (_Out_writes_(_Last1-_First1) _Post_readable_size_(return) wchar_t *_First1, _In_z_ wchar_t *_Last1, const wchar_t *_First2, const wchar_t *_Last2, const _Locinfo::_Collvec *_Vector)
 

Macro Definition Documentation

#define _XLOCINFO_

Function Documentation

template<class _Elem >
int __CRTDECL _LStrcoll ( const _Elem *  _First1,
const _Elem *  _Last1,
const _Elem *  _First2,
const _Elem *  _Last2,
const _Locinfo::_Collvec  
)
inline
241  { // perform locale-specific comparison of _Elem sequences
242  for (; _First1 != _Last1 && _First2 != _Last2; ++_First1, ++_First2)
243  if (*_First1 < *_First2)
244  return (-1); // [_First1, _Last1) < [_First2, _Last2)
245  else if (*_First2 < *_First1)
246  return (+1); // [_First1, _Last1) > [_First2, _Last2)
247  return (_First2 != _Last2 ? -1 : _First1 != _Last1 ? +1 : 0);
248  }
template<>
int __CRTDECL _LStrcoll ( const char *  _First1,
const char *  _Last1,
const char *  _First2,
const char *  _Last2,
const _Locinfo::_Collvec _Vector 
)
inline
254  { // perform locale-specific comparison of char sequences
255  return (_Strcoll(_First1, _Last1, _First2, _Last2, _Vector));
256  }
_CRTIMP2_PURE int __CLRCALL_PURE_OR_CDECL _Strcoll(const char *, const char *, const char *, const char *, const _Collvec *)
template<>
int __CRTDECL _LStrcoll ( const wchar_t _First1,
const wchar_t _Last1,
const wchar_t _First2,
const wchar_t _Last2,
const _Locinfo::_Collvec _Vector 
)
inline
262  { // perform locale-specific comparison of wchar_t sequences
263  return (_Wcscoll(_First1, _Last1, _First2, _Last2, _Vector));
264  }
_CRTIMP2_PURE int __CLRCALL_PURE_OR_CDECL _Wcscoll(const wchar_t *, const wchar_t *, const wchar_t *, const wchar_t *, const _Collvec *)
template<class _Elem >
size_t __CRTDECL _LStrxfrm ( _Elem *  _First1,
_Elem *  _Last1,
const _Elem *  _First2,
const _Elem *  _Last2,
const _Locinfo::_Collvec  
)
inline
271  { // perform locale-specific transform of _Elems [_First1, _Last1)
272  size_t _Count = _Last2 - _First2;
273  if (_Count <= (size_t)(_Last1 - _First1))
274  _CRT_SECURE_MEMCPY(_First1, (_Last1 - _First1) * sizeof (_Elem),
275  _First2, _Count * sizeof (_Elem));
276  return (_Count);
277  }
unsigned int _Count
Definition: xcomplex:668
#define _CRT_SECURE_MEMCPY(dest, destsize, source, count)
Definition: yvals.h:406
template<>
size_t __CRTDECL _LStrxfrm ( _Out_writes_(_Last1-_First1) _Post_readable_size_(return) char *  _First1,
_In_z_ char *  _Last1,
const char *  _First2,
const char *  _Last2,
const _Locinfo::_Collvec _Vector 
)
inline
284  { // perform locale-specific transform of chars [_First1, _Last1)
285  return (_Strxfrm(_First1, _Last1, _First2, _Last2, _Vector));
286  }
_CRTIMP2_PURE size_t __CLRCALL_PURE_OR_CDECL _Strxfrm(_Out_writes_(_End1-_String1) _Post_readable_size_(return) char *_String1, _In_z_ char *_End1, const char *, const char *, const _Collvec *)
template<>
size_t __CRTDECL _LStrxfrm ( _Out_writes_(_Last1-_First1) _Post_readable_size_(return) wchar_t _First1,
_In_z_ wchar_t _Last1,
const wchar_t _First2,
const wchar_t _Last2,
const _Locinfo::_Collvec _Vector 
)
inline
293  { // perform locale-specific transform of wchar_ts [_First1, _Last1)
294  return (_Wcsxfrm(_First1, _Last1, _First2, _Last2, _Vector));
295  }
_CRTIMP2_PURE size_t __CLRCALL_PURE_OR_CDECL _Wcsxfrm(_Out_writes_(_End1-_String1) _Post_readable_size_(return) wchar_t *_String1, _In_z_ wchar_t *_End1, const wchar_t *, const wchar_t *, const _Collvec *)