2 #ifndef _YI_MO_TRANSLATOR_H_ 3 #define _YI_MO_TRANSLATOR_H_ 41 virtual bool LoadTranslation(
const uint8_t *pData,
size_t dataSize)
override;
50 bool ReadBuffer(std::vector<uint8_t> moBuffer);
53 std::vector<uint8_t> m_moBuffer;
55 std::vector<CYIString> m_transStringCache;
58 uint32_t *m_pOrigStringTable;
59 uint32_t *m_pTransStringTable;
60 uint32_t m_stringsStartOffset;
66 #endif // _YI_MO_TRANSLATOR_H_
#define YI_DISALLOW_COPY_AND_ASSIGN(TypeName)
Delete the copy constructor and assignment operator (and consequently the move constructor as well) ...
Definition: YiPredef.h:122
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:36
virtual bool LoadTranslation(const CYIString &filename) override
virtual ~CYIMOTranslator()
virtual CYIString Translate(const CYIString &text) override
A translator object used for parsing and indexing localisation strings found in ".mo" binary files. These objects are available through the CYITranslation interface and should be primarily loaded through the CYIAssetLoader, which will provide a CYIAssetTranslation object.
Definition: YiMOTranslator.h:26
Definition: YiTranslator.h:12