suggest.hpp
来自「unix/linux下拼写检查程序源码」· HPP 代码 · 共 41 行
HPP
41 行
// Copyright 2000 by Kevin Atkinson under the terms of the LGPL#include "word_list.hpp"#include "enumeration.hpp"#include "parm_string.hpp"using namespace acommon;namespace aspeller { class SpellerImpl; class SuggestionList : public WordList { public: typedef StringEnumeration VirEmul; typedef Enumeration<VirEmul> Emul; typedef const char * Value; typedef unsigned int Size; virtual SuggestionList * clone() const = 0; virtual void assign(const SuggestionList *) = 0; virtual bool empty() const = 0; virtual Size size() const = 0; virtual VirEmul * elements() const = 0; virtual ~SuggestionList() {} }; class Suggest { public: virtual PosibErr<void> set_mode(ParmString) = 0; virtual double score(const char * base, const char * other) = 0; virtual SuggestionList & suggest(const char * word) = 0; virtual ~Suggest() {} }; Suggest * new_default_suggest(SpellerImpl *);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?