mirror of
https://github.com/mii443/akaza.git
synced 2025-12-03 11:08:29 +00:00
20 lines
493 B
C++
20 lines
493 B
C++
#ifndef LIBAKAZA_ROMKAN_H
|
|
#define LIBAKAZA_ROMKAN_H
|
|
|
|
#include <regex>
|
|
|
|
namespace akaza {
|
|
class RomkanConverter {
|
|
private:
|
|
std::wregex _pattern;
|
|
std::regex _last_char_pattern;
|
|
std::map<std::string, std::string> _map;
|
|
public:
|
|
RomkanConverter(const std::map<std::string, std::string> &additional);
|
|
std::string remove_last_char(const std::string & s);
|
|
std::string to_hiragana(const std::string & s);
|
|
};
|
|
}
|
|
|
|
#endif //LIBAKAZA_ROMKAN_H
|