#include <boost/locale/info.hpp>
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. |
This facet should be always created in order to make all Boost.Locale functions work
boost::locale::info::info | ( | std::string | posix_id, | |
size_t | refs = 0 | |||
) |
boost::locale::info::info | ( | std::string | posix_id, | |
std::string | encoding, | |||
size_t | refs = 0 | |||
) |
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)