#ifndef HANZITOPINYINPRIVATE_H #define HANZITOPINYINPRIVATE_H #include #include "cppjieba/PinYinTrie.hpp" #include "hanzi-to-pinyin.h" #define PINYINMANAGER_EXPORT Q_DECL_IMPORT using namespace std; class PINYINMANAGER_EXPORT HanZiToPinYinPrivate { public: HanZiToPinYinPrivate(HanZiToPinYin *parent = nullptr); ~HanZiToPinYinPrivate(); public: template bool isMultiTone(T &&t) {return m_pinYinTrie->isMultiTone(std::forward(t));} bool contains(string &word); int getResults(string word, QStringList &results); private: cppjieba::PinYinTrie *m_pinYinTrie = nullptr; HanZiToPinYin *q = nullptr; }; #endif // HANZITOPINYINPRIVATE_H