8#ifndef BOOST_LOCALE_INFO_HPP_INCLUDED
9#define BOOST_LOCALE_INFO_HPP_INCLUDED
11#include <boost/locale/config.hpp>
12#include <boost/locale/detail/facet_id.hpp>
18# pragma warning(disable : 4275 4251 4231 4660)
21namespace boost {
namespace locale {
26 class BOOST_SYMBOL_VISIBLE
info :
public std::locale::facet,
public detail::facet_id<info> {
bool utf8() const
True if the underlying encoding is UTF-8 (for char streams and strings)
Definition info.hpp:57
std::string variant() const
Get locale variant.
Definition info.hpp:49
integer_property
Integer information about locale.
Definition info.hpp:38
@ utf8_property
Non zero value if uses UTF-8 encoding.
Definition info.hpp:39
info(size_t refs=0)
Standard facet's constructor.
Definition info.hpp:43
std::string name() const
Get the name of the locale, like en_US.UTF-8.
Definition info.hpp:54
virtual std::string get_string_property(string_property v) const =0
Get string property by its id v.
std::string country() const
Get country name.
Definition info.hpp:47
string_property
String information about the locale.
Definition info.hpp:29
@ encoding_property
encoding name
Definition info.hpp:33
@ variant_property
Variant for locale.
Definition info.hpp:32
@ language_property
ISO 639 language id.
Definition info.hpp:30
@ country_property
ISO 3166 country id.
Definition info.hpp:31
@ name_property
locale name
Definition info.hpp:34
std::string language() const
Get language name.
Definition info.hpp:45
std::string encoding() const
Get encoding.
Definition info.hpp:51
virtual int get_integer_property(integer_property v) const =0
Get integer property by its id v.
This is the main namespace that encloses all localization classes.
Definition boundary_point.hpp:13