boost::locale::info Class Reference

a facet that holds general information about locale More...

#include <boost/locale/info.hpp>

List of all members.

Public Member Functions

 info (std::string posix_id, size_t refs=0)
 info (std::string posix_id, std::string encoding, size_t refs=0)
std::string language () const
std::string country () const
std::string variant () const
std::string encoding () const
bool utf8 () const

Static Public Attributes

static std::locale::id id
 This member defines uniquely this facet, required by STL.


Detailed Description

a facet that holds general information about locale

This facet should be always created in order to make all Boost.Locale functions work


Constructor & Destructor Documentation

boost::locale::info::info ( std::string  posix_id,
size_t  refs = 0 
)

Creates locale using general locale id that includes encoding If encoding is not found, default system encoding is taken, if the string is empty default system locale is used.

boost::locale::info::info ( std::string  posix_id,
std::string  encoding,
size_t  refs = 0 
)

Creates locale using general locale id and cherset encoding if posix_id is empty default system locale is used.


Member Function Documentation

std::string boost::locale::info::language (  )  const

Get language name

std::string boost::locale::info::country (  )  const

Get country name

std::string boost::locale::info::variant (  )  const

Get locale variant

std::string boost::locale::info::encoding (  )  const

Get encoding

bool boost::locale::info::utf8 (  )  const [inline]

Is underlying encoding is UTF-8 (for char streams and strings)


The documentation for this class was generated from the following file:

Generated on Thu Mar 18 23:02:03 2010 for Boost.Locale by doxygen 1.5.6