8 #ifndef BOOST_LOCALE_INFO_HPP_INCLUDED
9 #define BOOST_LOCALE_INFO_HPP_INCLUDED
10 #include <boost/locale/config.hpp>
12 # pragma warning(push)
13 # pragma warning(disable : 4275 4251 4231 4660)
27 class BOOST_LOCALE_DECL
info :
public std::locale::facet
30 static std::locale::id
id;
54 info(
size_t refs = 0) : std::locale::facet(refs)
62 return get_string_property(language_property);
69 return get_string_property(country_property);
76 return get_string_property(variant_property);
83 return get_string_property(encoding_property);
91 return get_string_property(name_property);
99 return get_integer_property(utf8_property) != 0;
102 #if defined (__SUNPRO_CC) && defined (_RWSTD_VER)
103 std::locale::id& __get_id (
void)
const {
return id; }
109 virtual std::string get_string_property(string_propery v)
const = 0;
113 virtual int get_integer_property(integer_property v)
const = 0;
ISO 3166 country id.
Definition: info.hpp:37
ISO 639 language id.
Definition: info.hpp:36
a facet that holds general information about locale
Definition: info.hpp:27
Variant for locale.
Definition: info.hpp:38
info(size_t refs=0)
Definition: info.hpp:54
integer_property
Definition: info.hpp:46
std::string name() const
Definition: info.hpp:89
std::string country() const
Definition: info.hpp:67
string_propery
Definition: info.hpp:35
std::string encoding() const
Definition: info.hpp:81
static std::locale::id id
This member uniquely defines this facet, required by STL.
Definition: info.hpp:30
bool utf8() const
Definition: info.hpp:97
std::string variant() const
Definition: info.hpp:74
encoding name
Definition: info.hpp:39
std::string language() const
Definition: info.hpp:60