8 #ifndef BOOSTER_LOCLAE_GNU_GETTEXT_HPP
9 #define BOOSTER_LOCLAE_GNU_GETTEXT_HPP
11 #include <booster/locale/message.h>
12 #include <booster/function.h>
13 #include <booster/backtrace.h>
24 namespace gnu_gettext {
68 size_t pos = n.find(
"/");
69 if(pos==std::string::npos) {
74 name = n.substr(0,pos);
92 return !(*
this==other);
100 std::vector<std::string>
paths;
116 std::string
const &file_name,
134 template<
typename CharType>
145 #ifdef BOOSTER_HAS_CHAR16_T
150 #ifdef BOOSTER_HAS_CHAR32_T
callback_type callback
Definition: gnu_gettext.h:125
std::string variant
Language variant, like "euro" so it would look for catalog like de_DE@euro.
Definition: gnu_gettext.h:43
bool operator==(domain const &other) const
Definition: gnu_gettext.h:83
This type represents GNU Gettext domain name for the messages.
Definition: gnu_gettext.h:55
std::string language
The language we load the catalog for, like "ru", "en", "de".
Definition: gnu_gettext.h:41
std::string locale_category
Definition: gnu_gettext.h:46
std::string country
The country we load the catalog for, like "US", "IL".
Definition: gnu_gettext.h:42
std::string name
The name of the domain.
Definition: gnu_gettext.h:57
std::string encoding
Definition: gnu_gettext.h:44
std::vector< domain > domains_type
Definition: gnu_gettext.h:97
message_format< CharType > * create_messages_facet(messages_info const &info)
domains_type domains
Definition: gnu_gettext.h:99
std::vector< std::string > paths
Definition: gnu_gettext.h:101
domain(std::string const &n)
Definition: gnu_gettext.h:66
Definition: function.h:16
a facet that holds general information about locale
Definition: info.h:27
This structure holds all information required for creating gnu-gettext message catalogs,.
Definition: gnu_gettext.h:34
std::string encoding
The character encoding for the domain.
Definition: gnu_gettext.h:58
bool operator!=(domain const &other) const
Definition: gnu_gettext.h:90