diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-05-19 11:12:34 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-05-19 11:12:34 +0000 |
commit | 927add1b301c9f38808f3d35854d3ce896bff095 (patch) | |
tree | 244dfff95aee5393ec835e5804252ff8cf07866d /plugins/SpellChecker/hunspell/replist.hxx | |
parent | e447995b61b645d48ebe837a0ee4fdb28373aa1c (diff) |
adding SpellChecker plugin
git-svn-id: http://svn.miranda-ng.org/main/trunk@69 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SpellChecker/hunspell/replist.hxx')
-rw-r--r-- | plugins/SpellChecker/hunspell/replist.hxx | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/plugins/SpellChecker/hunspell/replist.hxx b/plugins/SpellChecker/hunspell/replist.hxx new file mode 100644 index 0000000000..1cc039ebeb --- /dev/null +++ b/plugins/SpellChecker/hunspell/replist.hxx @@ -0,0 +1,27 @@ +/* string replacement list class */ +#ifndef _REPLIST_HXX_ +#define _REPLIST_HXX_ + +#include "hunvisapi.h" + +#include "w_char.hxx" + +class LIBHUNSPELL_DLL_EXPORTED RepList +{ +protected: + replentry ** dat; + int size; + int pos; + +public: + RepList(int n); + ~RepList(); + + int get_pos(); + int add(char * pat1, char * pat2); + replentry * item(int n); + int findnear(const char * word); + int match(const char * word, int n); + int conv(const char * word, char * dest); +}; +#endif |