blob: 0dd9b6c1240070eaada8a879d15cff2f842d6f38 [file] [log] [blame]
/* string replacement list class */
#ifndef _REPLIST_HXX_
#define _REPLIST_HXX_
#ifdef HUNSPELL_CHROME_CLIENT
// Compilation issues in spellchecker.cc think near is a macro, therefore
// removing it here solves that problem.
#undef near
#endif
#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 near(const char * word);
int match(const char * word, int n);
int conv(const char * word, char * dest);
};
#endif