blob: 088f870b565c58f9e0404593bd29e43250c00bd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#pragma once
#include <map>
#include <memory>
#include <string>
class Transliteration
{
public:
~Transliteration();
static Transliteration & Instance();
void Init(std::string const & icuDataDir);
bool Transliterate(std::string const & str, int8_t langCode, std::string & out) const;
private:
Transliteration() = default;
struct TransliteratorInfo;
std::map<std::string, std::unique_ptr<TransliteratorInfo>> m_transliterators;
};
|