Switch to unified view

a/src/aspell/rclaspell.h b/src/aspell/rclaspell.h
...
...
35
#include <list>
35
#include <list>
36
36
37
#include "rclconfig.h"
37
#include "rclconfig.h"
38
#include "rcldb.h"
38
#include "rcldb.h"
39
39
40
#ifndef NO_NAMESPACES
41
using std::string;
42
using std::list;
43
#endif // NO_NAMESPACES
44
45
class AspellData;
40
class AspellData;
46
41
47
class Aspell {
42
class Aspell {
48
 public:
43
 public:
49
    Aspell(RclConfig *cnf);
44
    Aspell(RclConfig *cnf);
...
...
51
46
52
    /** Check health */
47
    /** Check health */
53
    bool ok() const;
48
    bool ok() const;
54
49
55
    /** Find the aspell command and shared library, init function pointers */
50
    /** Find the aspell command and shared library, init function pointers */
56
    bool init(string &reason); 
51
    bool init(std::string &reason); 
57
52
58
    /**  Build dictionary out of index term list. This is done at the end
53
    /**  Build dictionary out of index term list. This is done at the end
59
     * of an indexing pass. */
54
     * of an indexing pass. */
60
    bool buildDict(Rcl::Db &db, string &reason);
55
    bool buildDict(Rcl::Db &db, std::string &reason);
61
56
62
    /** Check that word is in dictionary. ret==false && !reason.empty() => err*/
57
    /** Check that word is in dictionary. Note that this would mean
58
     * that the EXACT word is: aspell just does a lookup, no
59
     * grammatical, case or diacritics magic of any kind
60
     *
61
     * @return true if word in dic, false if not. reason.size() -> error
62
     */
63
    bool check(Rcl::Db &db, const string& term, string& reason);
63
    bool check(const std::string& term, std::string& reason);
64
64
65
    /** Return a list of possible expansions for a given word */
65
    /** Return a list of possible expansions for a given word */
66
    bool suggest(Rcl::Db &db, const string& term, list<string> &suggestions, 
66
    bool suggest(Rcl::Db &db, const std::string& term, 
67
       string &reason);
67
       std::list<std::string> &suggestions, std::string &reason);
68
68
69
 private:
69
 private:
70
    string dicPath();
70
    std::string dicPath();
71
    RclConfig  *m_config;
71
    RclConfig  *m_config;
72
    string      m_lang;
72
    std::string      m_lang;
73
    AspellData *m_data;
73
    AspellData *m_data;
74
74
75
    bool make_speller(string& reason);
75
    bool make_speller(std::string& reason);
76
};
76
};
77
77
78
#endif /* RCL_USE_ASPELL */
78
#endif /* RCL_USE_ASPELL */
79
#endif /* _RCLASPELL_H_INCLUDED_ */
79
#endif /* _RCLASPELL_H_INCLUDED_ */