STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Macros | Functions
locale File Reference
#include <string>
#include <xlocbuf>
#include <xlocmes>
#include <xlocmon>
#include <xlocnum>
#include <xloctime>

Classes

class  collate< _Elem >
 
class  collate_byname< _Elem >
 

Macros

#define _LOCALE_
 
#define _HAS(loc, fac)   has_facet<fac>(loc)
 

Functions

template<class _Facet >
bool has_facet (const locale &_Loc) _THROW0()
 
template<class _Elem >
bool() isalnum (_Elem _Ch, const locale &_Loc)
 
template<class _Elem >
bool() isalpha (_Elem _Ch, const locale &_Loc)
 
template<class _Elem >
bool() isblank (_Elem _Ch, const locale &_Loc)
 
template<class _Elem >
bool() iscntrl (_Elem _Ch, const locale &_Loc)
 
template<class _Elem >
bool() isdigit (_Elem _Ch, const locale &_Loc)
 
template<class _Elem >
bool() isgraph (_Elem _Ch, const locale &_Loc)
 
template<class _Elem >
bool() islower (_Elem _Ch, const locale &_Loc)
 
template<class _Elem >
bool() isprint (_Elem _Ch, const locale &_Loc)
 
template<class _Elem >
bool() ispunct (_Elem _Ch, const locale &_Loc)
 
template<class _Elem >
bool() isspace (_Elem _Ch, const locale &_Loc)
 
template<class _Elem >
bool() isupper (_Elem _Ch, const locale &_Loc)
 
template<class _Elem >
bool() isxdigit (_Elem _Ch, const locale &_Loc)
 
template<class _Elem >
_Elem() tolower (_Elem _Ch, const locale &_Loc)
 
template<class _Elem >
_Elem() toupper (_Elem _Ch, const locale &_Loc)
 

Macro Definition Documentation

#define _HAS (   loc,
  fac 
)    has_facet<fac>(loc)
#define _LOCALE_

Function Documentation

template<class _Facet >
bool has_facet ( const locale _Loc)
inline
176  { // test if facet is in locale
177  _BEGIN_LOCK(_LOCK_LOCALE) // the thread lock, make get atomic
178  size_t _Id = _Facet::id;
179  return (_Loc._Getfacet(_Id) != 0
180  || _Facet::_Getcat() != (size_t)(-1));
181  _END_LOCK()
182  }
unsigned int size_t
Definition: sourceannotations.h:19
return(_PAIR_TYPE(_FwdIt)(_First, _First))
#define _LOCK_LOCALE
Definition: yvals.h:604
template<class _Elem >
bool() isalnum ( _Elem  _Ch,
const locale _Loc 
)
inline
187  { // test if character is alphanumeric, locale specific
188  return (_USE(_Loc, ctype<_Elem>).is(ctype_base::alnum, _Ch));
189  }
#define _USE(loc, fac)
Definition: xlocale:547
Definition: xlocale:2094
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: xlocale:2115
template<class _Elem >
bool() isalpha ( _Elem  _Ch,
const locale _Loc 
)
inline
193  { // test if character is alphabetic, locale specific
194  return (_USE(_Loc, ctype<_Elem>).is(ctype_base::alpha, _Ch));
195  }
#define _USE(loc, fac)
Definition: xlocale:547
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: xlocale:2115
Definition: xlocale:2094
template<class _Elem >
bool() isblank ( _Elem  _Ch,
const locale _Loc 
)
inline
199  { // test if character is blank, locale specific
200  return (_USE(_Loc, ctype<_Elem>).is(ctype_base::blank, _Ch));
201  }
#define _USE(loc, fac)
Definition: xlocale:547
Definition: xlocale:2098
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: xlocale:2115
template<class _Elem >
bool() iscntrl ( _Elem  _Ch,
const locale _Loc 
)
inline
205  { // test if character is control, locale specific
206  return (_USE(_Loc, ctype<_Elem>).is(ctype_base::cntrl, _Ch));
207  }
#define _USE(loc, fac)
Definition: xlocale:547
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: xlocale:2115
Definition: xlocale:2095
template<class _Elem >
bool() isdigit ( _Elem  _Ch,
const locale _Loc 
)
inline
211  { // test if character is digit, locale specific
212  return (_USE(_Loc, ctype<_Elem>).is(ctype_base::digit, _Ch));
213  }
#define _USE(loc, fac)
Definition: xlocale:547
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: xlocale:2115
Definition: xlocale:2095
template<class _Elem >
bool() isgraph ( _Elem  _Ch,
const locale _Loc 
)
inline
217  { // test if character is graphic, locale specific
218  return (_USE(_Loc, ctype<_Elem>).is(ctype_base::graph, _Ch));
219  }
#define _USE(loc, fac)
Definition: xlocale:547
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: xlocale:2115
Definition: xlocale:2095
template<class _Elem >
bool() islower ( _Elem  _Ch,
const locale _Loc 
)
inline
223  { // test if character is lower case, locale specific
224  return (_USE(_Loc, ctype<_Elem>).is(ctype_base::lower, _Ch));
225  }
#define _USE(loc, fac)
Definition: xlocale:547
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: xlocale:2096
Definition: xlocale:2115
template<class _Elem >
bool() isprint ( _Elem  _Ch,
const locale _Loc 
)
inline
229  { // test if character is printing, locale specific
230  return (_USE(_Loc, ctype<_Elem>).is(ctype_base::print, _Ch));
231  }
Definition: xlocale:2096
#define _USE(loc, fac)
Definition: xlocale:547
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: xlocale:2115
template<class _Elem >
bool() ispunct ( _Elem  _Ch,
const locale _Loc 
)
inline
235  { // test if character is punctuation, locale specific
236  return (_USE(_Loc, ctype<_Elem>).is(ctype_base::punct, _Ch));
237  }
#define _USE(loc, fac)
Definition: xlocale:547
Definition: xlocale:2097
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: xlocale:2115
template<class _Elem >
bool() isspace ( _Elem  _Ch,
const locale _Loc 
)
inline
241  { // test if character is whitespace, locale specific
242  return (_USE(_Loc, ctype<_Elem>).is(ctype_base::space, _Ch));
243  }
#define _USE(loc, fac)
Definition: xlocale:547
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: xlocale:2115
Definition: xlocale:2097
template<class _Elem >
bool() isupper ( _Elem  _Ch,
const locale _Loc 
)
inline
247  { // test if character is upper case, locale specific
248  return (_USE(_Loc, ctype<_Elem>).is(ctype_base::upper, _Ch));
249  }
#define _USE(loc, fac)
Definition: xlocale:547
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: xlocale:2115
Definition: xlocale:2097
template<class _Elem >
bool() isxdigit ( _Elem  _Ch,
const locale _Loc 
)
inline
253  { // test if character is hexadecimal digit, locale specific
254  return (_USE(_Loc, ctype<_Elem>).is(ctype_base::xdigit, _Ch));
255  }
Definition: xlocale:2098
#define _USE(loc, fac)
Definition: xlocale:547
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: xlocale:2115
template<class _Elem >
_Elem() tolower ( _Elem  _Ch,
const locale _Loc 
)
inline
259  { // convert character to lower case, locale specific
260  return (_USE(_Loc, ctype<_Elem>).tolower(_Ch));
261  }
#define _USE(loc, fac)
Definition: xlocale:547
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: xlocale:2115
_Elem() tolower(_Elem _Ch, const locale &_Loc)
Definition: locale:258
template<class _Elem >
_Elem() toupper ( _Elem  _Ch,
const locale _Loc 
)
inline
265  { // convert character to upper case, locale specific
266  return (_USE(_Loc, ctype<_Elem>).toupper(_Ch));
267  }
#define _USE(loc, fac)
Definition: xlocale:547
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: xlocale:2115
_Elem() toupper(_Elem _Ch, const locale &_Loc)
Definition: locale:264