Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::locale::gnu_gettext::messages_info::domain Struct Reference

This type represents GNU Gettext domain name for the messages. More...

#include <gnu_gettext.hpp>

Collaboration diagram for boost::locale::gnu_gettext::messages_info::domain:

Public Member Functions

 domain ()
 
 domain (std::string const &n)
 Create a domain object from the name that can hold an encoding after symbol "/" such that if n is "hello/cp1255" then the name would be "hello" and "encoding" would be "cp1255" and if n is "hello" then the name would be the same but encoding would be "UTF-8". More...
 
bool operator== (domain const &other) const
 Check whether two objects are equivalent, only names are compared, encoding is ignored. More...
 
bool operator!= (domain const &other) const
 Check whether two objects are distinct, only names are compared, encoding is ignored. More...
 

Public Attributes

std::string name
 The name of the domain. More...
 
std::string encoding
 The character encoding for the domain. More...
 

Detailed Description

This type represents GNU Gettext domain name for the messages.

It consists of two parameters:

  • name - the name of the domain - used for opening the file name
  • encoding - the encoding of the keys in the sources, default - UTF-8

Constructor & Destructor Documentation

boost::locale::gnu_gettext::messages_info::domain::domain ( )
inline
boost::locale::gnu_gettext::messages_info::domain::domain ( std::string const &  n)
inline

Create a domain object from the name that can hold an encoding after symbol "/" such that if n is "hello/cp1255" then the name would be "hello" and "encoding" would be "cp1255" and if n is "hello" then the name would be the same but encoding would be "UTF-8".

References boost::n.

Member Function Documentation

bool boost::locale::gnu_gettext::messages_info::domain::operator!= ( domain const &  other) const
inline

Check whether two objects are distinct, only names are compared, encoding is ignored.

References boost::spirit::x3::unicode::other.

bool boost::locale::gnu_gettext::messages_info::domain::operator== ( domain const &  other) const
inline

Check whether two objects are equivalent, only names are compared, encoding is ignored.

References name.

Member Data Documentation

std::string boost::locale::gnu_gettext::messages_info::domain::encoding

The character encoding for the domain.

std::string boost::locale::gnu_gettext::messages_info::domain::name

The name of the domain.

Referenced by operator==().


The documentation for this struct was generated from the following file: