|
a/src/aspell/rclaspell.h |
|
b/src/aspell/rclaspell.h |
|
... |
|
... |
29 |
|
29 |
|
30 |
class AspellData;
|
30 |
class AspellData;
|
31 |
|
31 |
|
32 |
class Aspell {
|
32 |
class Aspell {
|
33 |
public:
|
33 |
public:
|
34 |
Aspell(RclConfig *cnf)
|
34 |
Aspell(RclConfig *cnf);
|
35 |
: m_config(cnf), m_data(0) {};
|
|
|
36 |
~Aspell();
|
35 |
~Aspell();
|
37 |
|
36 |
|
38 |
/** Check health */
|
37 |
/** Check health */
|
39 |
bool ok();
|
38 |
bool ok();
|
40 |
|
39 |
|
|
... |
|
... |
43 |
|
42 |
|
44 |
/** Build dictionary out of index term list. This is done at the end
|
43 |
/** Build dictionary out of index term list. This is done at the end
|
45 |
* of an indexing pass. */
|
44 |
* of an indexing pass. */
|
46 |
bool buildDict(Rcl::Db &db, string &reason);
|
45 |
bool buildDict(Rcl::Db &db, string &reason);
|
47 |
|
46 |
|
|
|
47 |
/** Check that word is in dictionary. ret==false && !reason.empty() => err*/
|
|
|
48 |
bool check(Rcl::Db &db, const string& term, string& reason);
|
|
|
49 |
|
48 |
/** Return a list of possible expansions for a given word */
|
50 |
/** Return a list of possible expansions for a given word */
|
49 |
bool suggest(Rcl::Db &db, string &term, list<string> &suggestions,
|
51 |
bool suggest(Rcl::Db &db, const string& term, list<string> &suggestions,
|
50 |
string &reason);
|
52 |
string &reason);
|
51 |
|
53 |
|
52 |
private:
|
54 |
private:
|
53 |
string dicPath();
|
55 |
string dicPath();
|
54 |
RclConfig *m_config;
|
56 |
RclConfig *m_config;
|
55 |
string m_lang;
|
57 |
string m_lang;
|
56 |
AspellData *m_data;
|
58 |
AspellData *m_data;
|
|
|
59 |
|
|
|
60 |
bool make_speller(string& reason);
|
57 |
};
|
61 |
};
|
58 |
|
62 |
|
59 |
#endif /* RCL_USE_ASPELL */
|
63 |
#endif /* RCL_USE_ASPELL */
|
60 |
#endif /* _RCLASPELL_H_INCLUDED_ */
|
64 |
#endif /* _RCLASPELL_H_INCLUDED_ */
|