ManaPlus
|
#include <poparser.h>
Public Member Functions | |
PoParser () | |
PoDict * | load (const std::string &lang, const std::string &fileName, PoDict *const dict) |
Static Public Member Functions | |
static bool | checkLang (const std::string &lang) |
static PoDict * | getEmptyDict () |
Private Member Functions | |
void | setLang (const std::string &lang) |
void | openFile (const std::string &name) |
bool | readLine () |
bool | readMsgId () |
bool | readMsgStr () |
bool | checkLine () const |
PoDict * | getDict () const |
Static Private Member Functions | |
static std::string | getFileName (const std::string &lang) |
static void | convertStr (std::string &str) |
Private Attributes | |
std::string | mLang |
std::istringstream | mFile |
std::string | mLine |
std::string | mMsgId |
std::string | mMsgStr |
PoDict * | mDict |
bool | mReadingId |
bool | mReadingStr |
bool | mSkipId |
Definition at line 31 of file poparser.h.
PoParser::PoParser | ( | ) |
Definition at line 34 of file poparser.cpp.
|
static |
Definition at line 261 of file poparser.cpp.
References VirtFs::exists(), and getFileName().
Referenced by TranslationManager::loadLang().
|
private |
Definition at line 249 of file poparser.cpp.
References mLine.
Referenced by readMsgId(), and readMsgStr().
|
staticprivate |
Definition at line 279 of file poparser.cpp.
References replaceAll().
Referenced by load().
|
private |
|
static |
Definition at line 256 of file poparser.cpp.
Referenced by TranslationManager::init(), and TranslationManager::loadLang().
|
staticprivate |
Definition at line 267 of file poparser.cpp.
References strprintf().
Referenced by checkLang(), and openFile().
PoDict * PoParser::load | ( | const std::string & | lang, |
const std::string & | fileName, | ||
PoDict *const | dict | ||
) |
Definition at line 63 of file poparser.cpp.
References convertStr(), fileName, getDict(), Logger::log(), logger, mDict, mLang, mMsgId, mMsgStr, openFile(), readLine(), readMsgId(), readMsgStr(), PoDict::set(), and setLang().
Referenced by TranslationManager::loadLang().
|
private |
Definition at line 47 of file poparser.cpp.
References getFileName(), VirtFs::loadFile(), mFile, and EmoteDB::size().
Referenced by load().
|
private |
Definition at line 121 of file poparser.cpp.
References mFile, mLine, and strStartWith().
Referenced by load().
|
private |
Definition at line 136 of file poparser.cpp.
References checkLine(), mLine, mMsgId, mReadingId, mReadingStr, mSkipId, and strStartWith().
Referenced by load().
|
private |
Definition at line 193 of file poparser.cpp.
References checkLine(), mLine, mMsgStr, mReadingStr, and strStartWith().
Referenced by load().
|
inlineprivate |
|
private |
Definition at line 79 of file poparser.h.
Referenced by load().
|
private |
Definition at line 70 of file poparser.h.
Referenced by openFile(), and readLine().
|
private |
Definition at line 67 of file poparser.h.
|
private |
Definition at line 73 of file poparser.h.
Referenced by checkLine(), readLine(), readMsgId(), and readMsgStr().
|
private |
Definition at line 75 of file poparser.h.
Referenced by load(), and readMsgId().
|
private |
Definition at line 77 of file poparser.h.
Referenced by load(), and readMsgStr().
|
private |
Definition at line 81 of file poparser.h.
Referenced by readMsgId().
|
private |
Definition at line 83 of file poparser.h.
Referenced by readMsgId(), and readMsgStr().
|
private |
Definition at line 85 of file poparser.h.
Referenced by readMsgId().