8 #ifndef BOOSTER_LOCALE_INFO_H_INCLUDED 9 #define BOOSTER_LOCALE_INFO_H_INCLUDED 10 #include <booster/config.h> 12 # pragma warning(push) 13 # pragma warning(disable : 4275 4251 4231 4660) 27 class BOOSTER_API
info :
public std::locale::facet
30 static std::locale::id
id;
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;
info(size_t refs=0)
Definition: info.h:54
Variant for locale.
Definition: info.h:38
string_propery
Definition: info.h:35
ISO 639 language id.
Definition: info.h:36
std::string language() const
Definition: info.h:60
static std::locale::id id
This member uniquely defines this facet, required by STL.
Definition: info.h:30
bool utf8() const
Definition: info.h:97
This is the main namespace that encloses all localization classes.
Definition: locale_fwd.h:14
encoding name
Definition: info.h:39
std::string encoding() const
Definition: info.h:81
a facet that holds general information about locale
Definition: info.h:27
std::string country() const
Definition: info.h:67
std::string name() const
Definition: info.h:89
Booster library namespace. The library that implements Boost Like API in ABI backward compatible way...
Definition: application.h:23
ISO 3166 country id.
Definition: info.h:37
integer_property
Definition: info.h:46
std::string variant() const
Definition: info.h:74