The Battle for Wesnoth  1.19.5+dev
Public Member Functions | List of all members
symbol_table Struct Reference

#include <language.hpp>

Public Member Functions

const t_stringoperator[] (const std::string &key) const
 Look up the string mappings given in [language] tags. More...
 
const t_stringoperator[] (const char *key) const
 
utils::string_map::const_iterator find (const std::string &key) const
 Look up the string mappings given in [language] tags. More...
 
utils::string_map::const_iterator end () const
 

Detailed Description

Definition at line 67 of file language.hpp.

Member Function Documentation

◆ end()

utils::string_map::const_iterator symbol_table::end ( ) const

Definition at line 98 of file language.cpp.

Referenced by combine_special_notes().

◆ find()

utils::string_map::const_iterator symbol_table::find ( const std::string &  key) const

Look up the string mappings given in [language] tags.

If the key is not found, returns symbol_table::end().

Definition at line 93 of file language.cpp.

Referenced by combine_special_notes().

◆ operator[]() [1/2]

const t_string & symbol_table::operator[] ( const char *  key) const

Definition at line 88 of file language.cpp.

◆ operator[]() [2/2]

const t_string & symbol_table::operator[] ( const std::string &  key) const

Look up the string mappings given in [language] tags.

If the key is not found, fall back to returning a string that's only meant for developers to see.

Definition at line 72 of file language.cpp.

References i.


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