2009-04-17 12:02:50 +00:00
|
|
|
/* string replacement list class */
|
|
|
|
#ifndef _REPLIST_HXX_
|
|
|
|
#define _REPLIST_HXX_
|
2011-07-19 18:27:47 +00:00
|
|
|
|
|
|
|
#include "hunvisapi.h"
|
|
|
|
|
2009-04-17 12:02:50 +00:00
|
|
|
#include "w_char.hxx"
|
|
|
|
|
2013-05-30 13:24:21 +00:00
|
|
|
#ifdef near
|
|
|
|
# undef near
|
|
|
|
#endif
|
|
|
|
|
2011-07-19 18:27:47 +00:00
|
|
|
class LIBHUNSPELL_DLL_EXPORTED RepList
|
2009-04-17 12:02:50 +00:00
|
|
|
{
|
|
|
|
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);
|
|
|
|
};
|
2013-05-30 13:24:21 +00:00
|
|
|
|
2009-04-17 12:02:50 +00:00
|
|
|
#endif
|