locale Class Reference

#include <_locale.h>

List of all members.

Public Types

typedef int category

Public Member Functions

 locale () _STLP_NOTHROW
 locale (const locale &) _STLP_NOTHROW
 locale (const char *)
 locale (const locale &, const char *, category)
 locale (const locale &, const locale &, category)
const localeoperator= (const locale &) _STLP_NOTHROW
 ~locale () _STLP_NOTHROW
string name () const
bool operator== (const locale &) const
bool operator!= (const locale &) const
bool operator() (const string &__x, const string &__y) const
bool operator() (const wstring &__x, const wstring &__y) const
facet_M_get_facet (const id &) const
facet_M_use_facet (const id &) const

Static Public Member Functions

static locale _STLP_CALL global (const locale &)
static const locale &_STLP_CALL classic ()
static void _STLP_FUNCTION_THROWS
_STLP_CALL 
_M_throw_runtime_error (const char *=0)

Static Public Attributes

static const category none = 0x000
static const category collate = 0x010
static const category ctype = 0x020
static const category monetary = 0x040
static const category numeric = 0x100
static const category time = 0x200
static const category messages = 0x400
static const category all = collate | ctype | monetary | numeric | time | messages

Protected Member Functions

 locale (_Locale_impl *)
void _M_insert (facet *__f, id &__id)
_Locale_impl_M_get_impl () const

Protected Attributes

_Locale_impl_M_impl

Friends

class _Locale_impl
class ios_base

Classes

class  facet
class  id


Detailed Description

Definition at line 66 of file _locale.h.


Member Typedef Documentation

typedef int locale::category

Definition at line 101 of file _locale.h.


Constructor & Destructor Documentation

locale::locale (  ) 

Definition at line 87 of file locale.cpp.

locale::locale ( const locale  ) 

Definition at line 92 of file locale.cpp.

locale::locale ( _Locale_impl  )  [protected]

Definition at line 101 of file locale.cpp.

locale::~locale (  ) 

Definition at line 270 of file locale.cpp.

References _M_impl, and _release_Locale_impl().


Member Function Documentation

const locale & locale::operator= ( const locale  ) 

Definition at line 277 of file locale.cpp.

References _get_Locale_impl(), and _release_Locale_impl().

string locale::name (  )  const

Definition at line 297 of file locale.cpp.

References _M_impl, and _Locale_impl::name.

Referenced by global(), locale(), and operator==().

bool locale::operator== ( const locale  )  const

Definition at line 302 of file locale.cpp.

References _M_impl, and name().

bool locale::operator!= ( const locale  )  const

Definition at line 307 of file locale.cpp.

bool locale::operator() ( const string __x,
const string __y 
) const

Definition at line 32 of file locale.cpp.

References __locale_do_operator_call().

bool locale::operator() ( const wstring &  __x,
const wstring &  __y 
) const

Definition at line 37 of file locale.cpp.

References __locale_do_operator_call().

locale _STLP_CALL locale::global ( const locale  )  [static]

locale::facet * locale::_M_get_facet ( const id  )  const

Definition at line 286 of file locale.cpp.

References _M_impl, locale::id::_M_index, _Locale_impl::facets_vec, and _Locale_impl::size().

Referenced by _HasFacet().

locale::facet * locale::_M_use_facet ( const id  )  const

void locale::_M_insert ( facet __f,
id __id 
) [protected]

Definition at line 96 of file locale.cpp.

References _M_impl, and _Locale_impl::insert().

_Locale_impl* locale::_M_get_impl (  )  const [inline, protected]

Definition at line 201 of file _locale.h.


Friends And Related Function Documentation

friend class _Locale_impl [friend]

Definition at line 196 of file _locale.h.

Referenced by locale().

friend class ios_base [friend]

Definition at line 197 of file _locale.h.


Member Data Documentation

const locale::category locale::none = 0x000 [static]

Definition at line 107 of file _locale.h.

const locale::category locale::collate = 0x010 [static]

Definition at line 108 of file _locale.h.

Referenced by locale().

const locale::category locale::ctype = 0x020 [static]

Definition at line 109 of file _locale.h.

Referenced by locale().

const locale::category locale::monetary = 0x040 [static]

Definition at line 110 of file _locale.h.

Referenced by locale().

const locale::category locale::numeric = 0x100 [static]

Definition at line 111 of file _locale.h.

Referenced by locale().

const locale::category locale::time = 0x200 [static]

Definition at line 112 of file _locale.h.

Referenced by locale().

const locale::category locale::messages = 0x400 [static]

Definition at line 113 of file _locale.h.

Referenced by locale().

Definition at line 114 of file _locale.h.


The documentation for this class was generated from the following files:
  • /home/ntakagi/work/STLport-5.1.5/stlport/stl/_locale.h
  • /home/ntakagi/work/STLport-5.1.5/src/locale.cpp



Generated on Mon Mar 10 15:33:01 2008 by  doxygen 1.5.1