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
177  { // test if facet is in locale
178  _BEGIN_LOCK(_LOCK_LOCALE) // the thread lock, make get atomic
179  size_t _Id = _Facet::id;
180  return (_Loc._Getfacet(_Id) != 0
181  || _Facet::_Getcat() != (size_t)(-1));
182  _END_LOCK()
183  }
return
Definition: corecrt_memcpy_s.h:60
unsigned int size_t
Definition: sourceannotations.h:19
#define _LOCK_LOCALE
Definition: yvals.h:591
template<class _Elem >
bool() isalnum ( _Elem  _Ch,
const locale _Loc 
)
inline
188  { // test if character is alphanumeric, locale specific
189  return (_USE(_Loc, ctype<_Elem>).is(ctype_base::alnum, _Ch));
190  }
Definition: xlocale:2058
#define _USE(loc, fac)
Definition: xlocale:499
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: xlocale:2077
template<class _Elem >
bool() isalpha ( _Elem  _Ch,
const locale _Loc 
)
inline
194  { // test if character is alphabetic, locale specific
195  return (_USE(_Loc, ctype<_Elem>).is(ctype_base::alpha, _Ch));
196  }
Definition: xlocale:2058
#define _USE(loc, fac)
Definition: xlocale:499
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: xlocale:2077
template<class _Elem >
bool() isblank ( _Elem  _Ch,
const locale _Loc 
)
inline
200  { // test if character is blank, locale specific
201  return (_USE(_Loc, ctype<_Elem>).is(ctype_base::blank, _Ch));
202  }
#define _USE(loc, fac)
Definition: xlocale:499
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: xlocale:2062
Definition: xlocale:2077
template<class _Elem >
bool() iscntrl ( _Elem  _Ch,
const locale _Loc 
)
inline
206  { // test if character is control, locale specific
207  return (_USE(_Loc, ctype<_Elem>).is(ctype_base::cntrl, _Ch));
208  }
Definition: xlocale:2059
#define _USE(loc, fac)
Definition: xlocale:499
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: xlocale:2077
template<class _Elem >
bool() isdigit ( _Elem  _Ch,
const locale _Loc 
)
inline
212  { // test if character is digit, locale specific
213  return (_USE(_Loc, ctype<_Elem>).is(ctype_base::digit, _Ch));
214  }
#define _USE(loc, fac)
Definition: xlocale:499
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: xlocale:2077
Definition: xlocale:2059
template<class _Elem >
bool() isgraph ( _Elem  _Ch,
const locale _Loc 
)
inline
218  { // test if character is graphic, locale specific
219  return (_USE(_Loc, ctype<_Elem>).is(ctype_base::graph, _Ch));
220  }
#define _USE(loc, fac)
Definition: xlocale:499
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: xlocale:2077
Definition: xlocale:2059
template<class _Elem >
bool() islower ( _Elem  _Ch,
const locale _Loc 
)
inline
224  { // test if character is lower case, locale specific
225  return (_USE(_Loc, ctype<_Elem>).is(ctype_base::lower, _Ch));
226  }
#define _USE(loc, fac)
Definition: xlocale:499
Definition: xlocale:2060
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: xlocale:2077
template<class _Elem >
bool() isprint ( _Elem  _Ch,
const locale _Loc 
)
inline
230  { // test if character is printing, locale specific
231  return (_USE(_Loc, ctype<_Elem>).is(ctype_base::print, _Ch));
232  }
#define _USE(loc, fac)
Definition: xlocale:499
Definition: xlocale:2060
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: xlocale:2077
template<class _Elem >
bool() ispunct ( _Elem  _Ch,
const locale _Loc 
)
inline
236  { // test if character is punctuation, locale specific
237  return (_USE(_Loc, ctype<_Elem>).is(ctype_base::punct, _Ch));
238  }
#define _USE(loc, fac)
Definition: xlocale:499
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: xlocale:2077
Definition: xlocale:2061
template<class _Elem >
bool() isspace ( _Elem  _Ch,
const locale _Loc 
)
inline
242  { // test if character is whitespace, locale specific
243  return (_USE(_Loc, ctype<_Elem>).is(ctype_base::space, _Ch));
244  }
Definition: xlocale:2061
#define _USE(loc, fac)
Definition: xlocale:499
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: xlocale:2077
template<class _Elem >
bool() isupper ( _Elem  _Ch,
const locale _Loc 
)
inline
248  { // test if character is upper case, locale specific
249  return (_USE(_Loc, ctype<_Elem>).is(ctype_base::upper, _Ch));
250  }
Definition: xlocale:2061
#define _USE(loc, fac)
Definition: xlocale:499
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: xlocale:2077
template<class _Elem >
bool() isxdigit ( _Elem  _Ch,
const locale _Loc 
)
inline
254  { // test if character is hexadecimal digit, locale specific
255  return (_USE(_Loc, ctype<_Elem>).is(ctype_base::xdigit, _Ch));
256  }
#define _USE(loc, fac)
Definition: xlocale:499
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: xlocale:2077
Definition: xlocale:2062
template<class _Elem >
_Elem() tolower ( _Elem  _Ch,
const locale _Loc 
)
inline
260  { // convert character to lower case, locale specific
261  return (_USE(_Loc, ctype<_Elem>).tolower(_Ch));
262  }
#define _USE(loc, fac)
Definition: xlocale:499
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: xlocale:2077
_Elem() tolower(_Elem _Ch, const locale &_Loc)
Definition: locale:259
template<class _Elem >
_Elem() toupper ( _Elem  _Ch,
const locale _Loc 
)
inline
266  { // convert character to upper case, locale specific
267  return (_USE(_Loc, ctype<_Elem>).toupper(_Ch));
268  }
#define _USE(loc, fac)
Definition: xlocale:499
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: xlocale:2077
_Elem() toupper(_Elem _Ch, const locale &_Loc)
Definition: locale:265