8 #ifndef BOOSTER_LOCALE_GENERATOR_HPP 9 #define BOOSTER_LOCALE_GENERATOR_HPP 10 #include <booster/config.h> 11 #include <booster/cstdint.h> 13 # pragma warning(push) 14 # pragma warning(disable : 4275 4251 4231 4660) 18 #include <booster/auto_ptr_inc.h> 22 template<
typename Type>
30 class localization_backend;
31 class localization_backend_manager;
91 void categories(locale_category_type cats);
95 locale_category_type categories()
const;
100 void characters(character_facet_type chars);
104 character_facet_type characters()
const;
126 void add_messages_domain(std::string
const &
domain);
131 void set_default_messages_domain(std::string
const &domain);
136 void clear_domains();
152 void add_messages_path(std::string
const &path);
167 void locale_cache_enabled(
bool on);
172 bool locale_cache_enabled()
const;
177 bool use_ansi_encoding()
const;
186 void use_ansi_encoding(
bool enc);
191 std::locale generate(std::string
const &
id)
const;
196 std::locale generate(std::locale
const &base,std::string
const &
id)
const;
208 void set_option(std::string
const &name,std::string
const &value);
213 void clear_options();
223 std::auto_ptr<data> d;
static const uint32_t collation_facet
Generate collation facets.
Definition: generator.h:46
static const uint32_t all_characters
Special mask – generate all.
Definition: generator.h:41
static const uint32_t information_facet
Generate general locale information facet.
Definition: generator.h:57
details::set_domain domain(std::string const &id)
Definition: message.h:789
static const uint32_t non_character_facet_first
First character independent facet.
Definition: generator.h:59
static const uint32_t character_last_facet
Last facet specific for character type.
Definition: generator.h:40
static const uint32_t char32_t_facet
C++0x char32_t facets.
Definition: generator.h:37
uint32_t character_facet_type
type that specifies the character type that locales can be generated for
Definition: generator.h:43
static const uint32_t wchar_t_facet
wide character facets
Definition: generator.h:35
static const uint32_t boundary_facet
Generate boundary analysis facet.
Definition: generator.h:51
uint32_t locale_category_type
a type used for more fine grained generation of facets
Definition: generator.h:65
static const uint32_t per_character_facet_first
First facet specific for character.
Definition: generator.h:53
std::locale operator()(std::string const &id) const
Definition: generator.h:200
static const uint32_t all_categories
Generate all of them.
Definition: generator.h:63
static const uint32_t parsing_facet
Generate numbers, currency, date-time formatting facets.
Definition: generator.h:48
This is the main namespace that encloses all localization classes.
Definition: locale_fwd.h:14
the major class used for locale generation
Definition: generator.h:74
static const uint32_t calendar_facet
Generate boundary analysis facet.
Definition: generator.h:56
static const uint32_t per_character_facet_last
Last facet specific for character.
Definition: generator.h:54
static const uint32_t char_facet
8-bit character facets
Definition: generator.h:34
static const uint32_t character_first_facet
First facet specific for character type.
Definition: generator.h:39
static const uint32_t non_character_facet_last
Last character independent facet.
Definition: generator.h:60
static const uint32_t char16_t_facet
C++0x char16_t facets.
Definition: generator.h:36
static const uint32_t nochar_facet
Unspecified character category for character independent facets.
Definition: generator.h:33
static const uint32_t convert_facet
Generate conversion facets.
Definition: generator.h:45
Localization backend manager is a class that holds various backend and allows creation of their combi...
Definition: localization_backend.h:84
static const uint32_t formatting_facet
Generate numbers, currency, date-time formatting facets.
Definition: generator.h:47
Booster library namespace. The library that implements Boost Like API in ABI backward compatible way...
Definition: application.h:23
static const uint32_t message_facet
Generate message facets.
Definition: generator.h:49
the facet that generates calendar for specific locale
Definition: date_time_facet.h:234
static const uint32_t codepage_facet
Generate character set conversion facets (derived from std::codecvt)
Definition: generator.h:50