The Battle for Wesnoth  1.15.1+dev
Public Member Functions | Public Attributes | List of all members
spirit_po::po_message Struct Reference

#include <po_message.hpp>

Public Member Functions

std::string & id_plural ()
 
const std::string & id_plural () const
 
std::vector< std::string > & strings ()
 
const std::vector< std::string > & strings () const
 
bool is_plural () const
 

Public Attributes

boost::optional< std::string > context
 
std::string id
 
plural_and_strings_type plural_and_strings
 
std::size_t line_no
 

Detailed Description

Definition at line 18 of file po_message.hpp.

Member Function Documentation

◆ id_plural() [1/2]

std::string& spirit_po::po_message::id_plural ( )
inline

Definition at line 27 of file po_message.hpp.

Referenced by is_plural().

◆ id_plural() [2/2]

const std::string& spirit_po::po_message::id_plural ( ) const
inline

Definition at line 28 of file po_message.hpp.

◆ is_plural()

bool spirit_po::po_message::is_plural ( ) const
inline

Definition at line 35 of file po_message.hpp.

References context, i, id, id_plural(), wfl::msg(), utf8::size(), and strings().

◆ strings() [1/2]

std::vector<std::string>& spirit_po::po_message::strings ( )
inline

◆ strings() [2/2]

const std::vector<std::string>& spirit_po::po_message::strings ( ) const
inline

Definition at line 31 of file po_message.hpp.

Member Data Documentation

◆ context

boost::optional<std::string> spirit_po::po_message::context

◆ id

std::string spirit_po::po_message::id

◆ line_no

std::size_t spirit_po::po_message::line_no

◆ plural_and_strings

plural_and_strings_type spirit_po::po_message::plural_and_strings

Definition at line 21 of file po_message.hpp.


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