6 #ifndef _FCITX_LIBIME_TABLE_AUTOPHRASEDICT_H_ 7 #define _FCITX_LIBIME_TABLE_AUTOPHRASEDICT_H_ 15 #include <string_view> 16 #include <fcitx-utils/macros.h> 17 #include <libime/table/libimetable_export.h> 21 class AutoPhraseDictPrivate;
34 void insert(
const std::string &entry, uint32_t value = 0);
39 const std::function<
bool(std::string_view, uint32_t)> &callback)
const;
42 uint32_t exactSearch(std::string_view s)
const;
43 void erase(std::string_view s);
46 void load(std::istream &in);
47 void save(std::ostream &out);
52 std::unique_ptr<AutoPhraseDictPrivate> d_ptr;
57 #endif // _FCITX_LIBIME_TABLE_AUTOPHRASEDICT_H_ A simple MRU based dictionary.