7 #ifndef BOOST_LOCLAE_GNU_GETTEXT_HPP 8 #define BOOST_LOCLAE_GNU_GETTEXT_HPP 10 #include <boost/locale/message.hpp> 15 namespace boost {
namespace locale {
20 namespace gnu_gettext {
56 size_t pos = n.find(
'/');
57 if(pos == std::string::npos) {
61 name = n.substr(0, pos);
75 std::vector<std::string>
paths;
87 typedef std::function<std::vector<char>(
const std::string& file_name,
const std::string&
encoding)>
97 template<
typename CharType>
108 #ifdef BOOST_LOCALE_ENABLE_CHAR16_T 113 #ifdef BOOST_LOCALE_ENABLE_CHAR32_T a facet that holds general information about locale
Definition: info.hpp:24
domains_type domains
Definition: gnu_gettext.hpp:74
std::string encoding
Definition: gnu_gettext.hpp:34
std::string locale_category
Definition: gnu_gettext.hpp:36
This structure holds all information required for creating gnu-gettext message catalogs,...
Definition: gnu_gettext.hpp:28
message_format< CharType > * create_messages_facet(const messages_info &info)
std::vector< std::string > paths
Definition: gnu_gettext.hpp:76
bool operator!=(const domain &other) const
Check whether two objects are distinct, only names are compared, encoding is ignored.
Definition: gnu_gettext.hpp:69
This type represents GNU Gettext domain name for the messages.
Definition: gnu_gettext.hpp:45
bool operator==(const domain &other) const
Check whether two objects are equivalent, only names are compared, encoding is ignored.
Definition: gnu_gettext.hpp:67
std::string language
The language we load the catalog for, like "ru", "en", "de".
Definition: gnu_gettext.hpp:31
std::vector< domain > domains_type
Definition: gnu_gettext.hpp:72
std::string name
The name of the domain.
Definition: gnu_gettext.hpp:46
callback_type callback
Definition: gnu_gettext.hpp:92
domain(const std::string &n)
Definition: gnu_gettext.hpp:54
std::function< std::vector< char >const std::string &file_name, const std::string &encoding)> callback_type
Definition: gnu_gettext.hpp:88
std::string country
The country we load the catalog for, like "US", "IL".
Definition: gnu_gettext.hpp:32
std::string variant
Language variant, like "euro" so it would look for catalog like de_DE@euro.
Definition: gnu_gettext.hpp:33
std::string encoding
The character encoding for the domain.
Definition: gnu_gettext.hpp:47