// // Copyright RIME Developers // Distributed under the BSD License // // 2012-01-03 GONG Chen // #ifndef RIME_REVERSE_LOOKUP_TRANSLATOR_H_ #define RIME_REVERSE_LOOKUP_TRANSLATOR_H_ #include #include #include namespace rime { class Dictionary; class ReverseLookupDictionary; class TranslatorOptions; class ReverseLookupTranslator : public Translator { public: ReverseLookupTranslator(const Ticket& ticket); virtual an Query(const string& input, const Segment& segment); protected: void Initialize(); string tag_; bool initialized_ = false; the dict_; the rev_dict_; the options_; string prefix_; string suffix_; string tips_; }; } // namespace rime #endif // RIME_REVERSE_LOOKUP_TRANSLATOR_H_