diff options
Diffstat (limited to 'coding/transliteration.hpp')
-rw-r--r-- | coding/transliteration.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/coding/transliteration.hpp b/coding/transliteration.hpp index 088f870b56..aa10126e88 100644 --- a/coding/transliteration.hpp +++ b/coding/transliteration.hpp @@ -1,5 +1,6 @@ #pragma once +#include <atomic> #include <map> #include <memory> #include <string> @@ -13,10 +14,13 @@ public: void Init(std::string const & icuDataDir); + void SetEnabled(bool enable); bool Transliterate(std::string const & str, int8_t langCode, std::string & out) const; private: - Transliteration() = default; + Transliteration(); + + std::atomic<bool> m_enabled; struct TransliteratorInfo; std::map<std::string, std::unique_ptr<TransliteratorInfo>> m_transliterators; |