The Battle for Wesnoth  1.19.5+dev
Namespaces | Classes | Typedefs | Functions
spirit_po Namespace Reference

Namespaces

 default_plural_forms
 

Classes

class  catalog
 
struct  catalog_metadata
 
struct  catalog_exception
 
struct  po_grammar
 
struct  po_message
 

Typedefs

typedef unsigned int uint
 
typedef std::function< void(const std::string &)> warning_channel_type
 
typedef std::unordered_map< std::string, po_messagedefault_hashmap_type
 
using default_catalog = catalog<>
 
typedef std::pair< uint, std::string > num_plurals_info
 
typedef std::pair< std::string, std::vector< std::string > > plural_and_strings_type
 

Functions

template<typename Iterator >
std::string iterator_context (Iterator &it, Iterator &end)
 
std::string string_iterator_context (const std::string &str, std::string::const_iterator it)
 

Typedef Documentation

◆ default_catalog

Definition at line 465 of file catalog.hpp.

◆ default_hashmap_type

typedef std::unordered_map<std::string, po_message> spirit_po::default_hashmap_type

Definition at line 42 of file catalog.hpp.

◆ num_plurals_info

typedef std::pair<uint, std::string> spirit_po::num_plurals_info

Definition at line 24 of file catalog_metadata.hpp.

◆ plural_and_strings_type

typedef std::pair<std::string, std::vector<std::string> > spirit_po::plural_and_strings_type

Definition at line 16 of file po_message.hpp.

◆ uint

typedef unsigned int spirit_po::uint

Definition at line 39 of file catalog.hpp.

◆ warning_channel_type

typedef std::function<void(const std::string &)> spirit_po::warning_channel_type

Definition at line 41 of file catalog.hpp.

Function Documentation

◆ iterator_context()

template<typename Iterator >
std::string spirit_po::iterator_context ( Iterator &  it,
Iterator &  end 
)

◆ string_iterator_context()

std::string spirit_po::string_iterator_context ( const std::string &  str,
std::string::const_iterator  it 
)
inline