2 #ifndef _YI_MO_TRANSLATOR_H_ 3 #define _YI_MO_TRANSLATOR_H_ 41 virtual bool LoadTranslation(
const uint8_t *pData, uint32_t uDataSize)
override;
50 bool ReadBuffer(uint8_t *pMOBuffer, uint32_t uMOBufferSize);
54 uint32_t m_uMOBufferSize;
56 std::vector<CYIString *> m_transStringCache;
57 uint32_t m_uNbStrings;
59 uint32_t *m_pOrigStringTable;
60 uint32_t *m_pTransStringTable;
61 uint32_t m_uStringsStartOffset;
69 #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:114
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:35
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