mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 12:44:07 +00:00
25 lines
442 B
C++
25 lines
442 B
C++
|
/* string replacement list class */
|
||
|
#ifndef _REPLIST_HXX_
|
||
|
#define _REPLIST_HXX_
|
||
|
#include "w_char.hxx"
|
||
|
|
||
|
class 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
|