[Megane] Add tiny library to translate utf8 characters to kvg code
This commit is contained in:
parent
4943f35d91
commit
3b5eb6f1a4
8 changed files with 145 additions and 0 deletions
29
Libraries/Megane/Include/Megane/Megane.hpp
Normal file
29
Libraries/Megane/Include/Megane/Megane.hpp
Normal file
|
@ -0,0 +1,29 @@
|
|||
#ifndef MEGANE_MEGANE_HPP
|
||||
#define MEGANE_MEGANE_HPP
|
||||
|
||||
#include <gtl/phmap.hpp>
|
||||
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
|
||||
namespace Megane
|
||||
{
|
||||
class Error : public std::runtime_error
|
||||
{
|
||||
using std::runtime_error::runtime_error;
|
||||
};
|
||||
|
||||
class Megane
|
||||
{
|
||||
public:
|
||||
Megane(const std::string& indexPath);
|
||||
~Megane();
|
||||
|
||||
std::string GetCode(const std::string& character) const;
|
||||
|
||||
private:
|
||||
gtl::flat_hash_map<std::string, std::string> mStorage;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // MEGANE_MEGANE_HPP
|
Loading…
Add table
Add a link
Reference in a new issue