/* * SPDX-FileCopyrightText: 2024-2024 CSSlayer * * SPDX-License-Identifier: LGPL-2.1-or-later * */ #ifndef _PINYIN_SYMBOLDICTIONARY_H_ #define _PINYIN_SYMBOLDICTIONARY_H_ #include #include #include #include #include #include namespace fcitx { class SymbolDict { public: using TrieType = libime::DATrie; SymbolDict(); void load(std::istream &in); void clear(); const std::vector *lookup(std::string_view key) const; private: TrieType index_; std::vector> data_; }; } // namespace fcitx #endif // _PINYIN_SYMBOLDICTIONARY_H_