ManaPlus
|
#include <podict.h>
Public Member Functions | |
PoDict (const std::string &lang) | |
~PoDict () | |
const std::string | getStr (const std::string &str) |
const char * | getChar (const char *const str) |
bool | haveStr (const std::string &str) const |
Protected Member Functions | |
PoMap * | getMap () |
void | set (const std::string &key, const std::string &value) |
void | setLang (const std::string &lang) |
Private Attributes | |
PoMap | mPoLines |
std::string | mLang |
Friends | |
class | PoParser |
class | TranslationManager |
|
explicit |
Definition at line 35 of file podict.cpp.
PoDict::~PoDict | ( | ) |
Definition at line 41 of file podict.cpp.
const char * PoDict::getChar | ( | const char *const | str | ) |
|
inlineprotected |
const std::string PoDict::getStr | ( | const std::string & | str | ) |
Definition at line 45 of file podict.cpp.
References mPoLines.
Referenced by ChatWindow::action(), BrowserBox::addRow(), StaticBrowserBox::addRow(), ItemPopup::getOptionsString(), DeadDB::getRandomString(), XML::langProperty(), loadQuest(), readField(), MapReader::readProperties(), EmoteWindow::show(), and TranslationManager::translateFile().
bool PoDict::haveStr | ( | const std::string & | str | ) | const |
Definition at line 59 of file podict.cpp.
References mPoLines.
|
inlineprotected |
Definition at line 56 of file podict.h.
References mPoLines.
Referenced by PoParser::load(), and TranslationManager::reverseLang().
|
inlineprotected |
|
friend |
|
private |
Definition at line 64 of file podict.h.
Referenced by TranslationManager::reverseLang(), and setLang().
|
private |