summaryrefslogtreecommitdiff
path: root/plugins/SpellChecker/src/hunspell/replist.hxx
blob: de439cd362c266919e76c124ce37d24ed82c13d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* string replacement list class */
#ifndef _REPLIST_HXX_
#define _REPLIST_HXX_

#include "hunvisapi.h"

#include "w_char.hxx"

class LIBHUNSPELL_DLL_EXPORTED RepList
{
private:
    RepList(const RepList&);
    RepList& operator = (const 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