The Battle for Wesnoth  1.17.0-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 69 of file language.hpp.

Member Function Documentation

◆ end()

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

Definition at line 99 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 94 of file language.cpp.

Referenced by combine_special_notes().

◆ operator[]() [1/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 73 of file language.cpp.

References i.

◆ operator[]() [2/2]

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

Definition at line 89 of file language.cpp.


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