6 #ifndef _FCITX_LIBIME_PINYIN_PINYINMATCHSTATE_H_ 7 #define _FCITX_LIBIME_PINYIN_PINYINMATCHSTATE_H_ 11 #include <unordered_set> 12 #include <fcitx-utils/macros.h> 13 #include <libime/pinyin/libimepinyin_export.h> 14 #include <libime/pinyin/pinyinencoder.h> 18 class PinyinMatchStatePrivate;
19 class SegmentGraphNode;
20 class ShuangpinProfile;
35 void discardNode(
const std::unordered_set<const SegmentGraphNode *> &node);
39 void discardDictionary(
size_t idx);
41 PinyinFuzzyFlags fuzzyFlags()
const;
42 std::shared_ptr<const ShuangpinProfile> shuangpinProfile()
const;
43 std::shared_ptr<const PinyinCorrectionProfile> correctionProfile()
const;
44 size_t partialLongWordLimit()
const;
47 std::unique_ptr<PinyinMatchStatePrivate> d_ptr;
52 #endif // _FCITX_LIBIME_PINYIN_PINYINMATCHSTATE_H_