class
#include <Spore/App/cStringDetokenizer.h>
cStringDetokenizer The class responsible for translating text tokens, which are special characters in locale files.
Contents
- Reference
In locale files, tokens are surrounded with ~
characters, and get replaced in-game with a text provided by an App::
Base classes
- class ITokenTranslator
Public functions
- void func18h() virtual
- void AddTranslator(ITokenTranslator* pTranslator) virtual
- void RemoveTranslator(ITokenTranslator* pTranslator) virtual
- auto HasTokens(const char16_t* pStr) const -> bool virtual
- auto func28h(int, eastl::string16& dst) -> bool virtual
- auto ProcessString(const char16_t* pStr, eastl::string16& dst) -> bool virtual
- auto func30h(LocalizedString*, eastl::pair<uint32_t, eastl::string16>* pTokensBegin, eastl::pair<uint32_t, eastl::string16>* pTokensEnd) -> bool virtual
- void func34h(const char16_t* pStr, int index) virtual
- auto ProcessStringEx(const char16_t* pStr, eastl::string16& dst, eastl::pair<uint32_t, eastl::string16>* pTokensBegin = nullptr, eastl::pair<uint32_t, eastl::string16>* pTokensEnd = nullptr) -> bool virtual
- auto FindTokenTranslation(const char16_t* pToken, eastl::string16& dst) const -> bool virtual
Protected variables
- eastl::vector<ITokenTranslatorPtr> mTranslators
- eastl::string16 field_1C