Whole document tree
    

Whole document tree

std::locale class Reference
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

std::locale Class Reference

#include <localefwd.h>

Collaboration diagram for std::locale:

Collaboration graph
[legend]
List of all members.

Public Types

typedef unsigned int category

Public Methods

 locale () throw ()
 locale (const locale &__other) throw ()
 locale (const char *__std_name)
 locale (const locale &__base, const char *__s, category __cat)
 locale (const locale &__base, const locale &__add, category __cat)
template<typename _Facet>  locale (const locale &__other, _Facet *__f)
 ~locale () throw ()
const locale & operator= (const locale &__other) throw ()
template<typename _Facet> locale combine (const locale &__other)
string name () const
bool operator== (const locale &__other) const throw ()
bool operator!= (const locale &__other) const throw ()
template<typename _Char, typename _Traits, typename _Alloc> bool operator() (const basic_string< _Char, _Traits, _Alloc > &__s1, const basic_string< _Char, _Traits, _Alloc > &__s2) const

Static Public Methods

locale global (const locale &)
const locale & classic ()

Static Public Attributes

const category none = 0
const category ctype = 1L << 0
const category numeric = 1L << 1
const category collate = 1L << 2
const category time = 1L << 3
const category monetary = 1L << 4
const category messages = 1L << 5
const category all

Private Methods

 locale (_Impl *) throw ()
void _M_coalesce (const locale &__base, const locale &__add, category __cat)

Static Private Methods

void _S_initialize ()
category _S_normalize_category (category)

Private Attributes

_Impl_M_impl

Static Private Attributes

_Impl_S_classic
_Impl_S_global
const size_t _S_num_categories = 6
const size_t _S_num_facets = _GLIBCPP_NUM_FACETS

Friends

class facet
class _Impl
template<typename _Facet> const _Facet & use_facet (const locale &)
template<typename _Facet> bool has_facet (const locale &) throw ()

Member Typedef Documentation

typedef unsigned int std::locale::category
 

Definition at line 184 of file localefwd.h.

Referenced by std::locale::_Impl::_M_replace_categories().


Constructor & Destructor Documentation

std::locale::locale   throw ()
 

Definition at line 356 of file locale.cc.

Referenced by classic().

std::locale::locale const locale &    __other throw ()
 

Definition at line 362 of file locale.cc.

std::locale::locale const char *    __std_name [explicit]
 

Definition at line 369 of file locale.cc.

References std::__throw_runtime_error(), _Impl, _M_impl, and _S_classic.

std::locale::locale const locale &    __base,
const char *    __s,
category    __cat
 

Definition at line 382 of file locale.cc.

References _M_coalesce().

std::locale::locale const locale &    __base,
const locale &    __add,
category    __cat
 

Definition at line 391 of file locale.cc.

References _M_coalesce().

template<typename _Facet>
std::locale::locale const locale &    __other,
_Facet *    __f
 

Definition at line 369 of file localefwd.h.

References _Impl, _M_impl, std::locale::_Impl::_M_install_facet(), std::locale::_Impl::_M_names, and _S_num_categories.

std::locale::~locale   throw ()
 

Definition at line 337 of file locale.cc.

std::locale::locale _Impl   throw () [explicit, private]
 

Definition at line 365 of file locale.cc.


Member Function Documentation

void std::locale::_M_coalesce const locale &    __base,
const locale &    __add,
category    __cat
[private]
 

Definition at line 341 of file locale.cc.

References __throw_exception_again, _Impl, _M_impl, std::locale::_Impl::_M_remove_reference(), std::locale::_Impl::_M_replace_categories(), and _S_normalize_category().

Referenced by locale().

void std::locale::_S_initialize   [inline, static, private]
 

Definition at line 278 of file localefwd.h.

References classic().

Referenced by global().

locale::category std::locale::_S_normalize_category category    [static, private]
 

Definition at line 478 of file locale.cc.

References std::__throw_runtime_error(), all, monetary, none, numeric, and time.

Referenced by _M_coalesce().

locale const & std::locale::classic   [static]
 

Definition at line 445 of file locale.cc.

References __throw_exception_again, _Impl, std::locale::_Impl::_M_remove_reference(), _S_classic, _S_global, and locale().

Referenced by _S_initialize().

template<typename _Facet>
locale std::locale::combine const locale &    __other
 

Definition at line 50 of file locale_facets.tcc.

References std::__copy(), _M_impl, and std::locale::_Impl::_M_replace_facet().

locale std::locale::global const locale &    [static]
 

Definition at line 412 of file locale.cc.

References std::locale::_Impl::_M_add_reference(), std::locale::_Impl::_M_check_same_name(), _M_impl, std::locale::_Impl::_M_names, std::locale::_Impl::_M_remove_reference(), _S_global, _S_initialize(), and name().

string std::locale::name   const
 

Definition at line 426 of file locale.cc.

References std::locale::_Impl::_M_check_same_name(), _M_impl, std::locale::_Impl::_M_names, _S_num_categories, and std::string.

Referenced by global().

bool std::locale::operator!= const locale &    __other const throw () [inline]
 

Definition at line 246 of file localefwd.h.

References operator==().

template<typename _CharT, typename _Traits, typename _Alloc>
bool std::locale::operator() const basic_string< _Char, _Traits, _Alloc > &    __s1,
const basic_string< _Char, _Traits, _Alloc > &    __s2
const
 

Definition at line 59 of file locale_facets.tcc.

References std::basic_string< _CharT, _Traits, _Alloc >::data(), and std::basic_string< _CharT, _Traits, _Alloc >::length().

const locale & std::locale::operator= const locale &    __other throw ()
 

Definition at line 403 of file locale.cc.

bool std::locale::operator== const locale &    __other const throw ()
 

Definition at line 395 of file locale.cc.

References std::string.

Referenced by operator!=().


Friends And Related Function Documentation

friend class _Impl [friend]
 

Definition at line 192 of file localefwd.h.

Referenced by _M_coalesce(), classic(), and locale().

friend class facet [friend]
 

Definition at line 191 of file localefwd.h.

template<typename _Facet>
bool has_facet const locale &    throw () [friend]
 

Definition at line 83 of file locale_facets.tcc.

template<typename _Facet>
const _Facet& use_facet const locale &    [friend]
 

Definition at line 70 of file locale_facets.tcc.


Member Data Documentation

_Impl* std::locale::_M_impl [private]
 

Definition at line 263 of file localefwd.h.

Referenced by _M_coalesce(), combine(), global(), locale(), name(), and std::use_facet().

locale::_Impl * std::locale::_S_classic [static, private]
 

Definition at line 56 of file locale.cc.

Referenced by classic(), and locale().

locale::_Impl * std::locale::_S_global [static, private]
 

Definition at line 57 of file locale.cc.

Referenced by classic(), and global().

const size_t std::locale::_S_num_categories = 6 [static, private]
 

Definition at line 58 of file locale.cc.

Referenced by std::locale::_Impl::_M_check_same_name(), locale(), and name().

const size_t std::locale::_S_num_facets = _GLIBCPP_NUM_FACETS [static, private]
 

Definition at line 59 of file locale.cc.

const locale::category std::locale::all [static]
 

Initial value:

Definition at line 54 of file locale.cc.

Referenced by _S_normalize_category().

const locale::category std::locale::collate = 1L << 2 [static]
 

Definition at line 50 of file locale.cc.

const locale::category std::locale::ctype = 1L << 0 [static]
 

Definition at line 48 of file locale.cc.

const locale::category std::locale::messages = 1L << 5 [static]
 

Definition at line 53 of file locale.cc.

const locale::category std::locale::monetary = 1L << 4 [static]
 

Definition at line 52 of file locale.cc.

Referenced by _S_normalize_category().

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

Definition at line 47 of file locale.cc.

Referenced by _S_normalize_category().

const locale::category std::locale::numeric = 1L << 1 [static]
 

Definition at line 49 of file locale.cc.

Referenced by _S_normalize_category().

const locale::category std::locale::time = 1L << 3 [static]
 

Definition at line 51 of file locale.cc.

Referenced by _S_normalize_category().


The documentation for this class was generated from the following files:
Generated on Mon Apr 8 03:18:58 2002 for libstdc++-v3 Source by doxygen1.2.15