replist.hxx 614 B

1234567891011121314151617181920212223242526272829303132
  1. /* string replacement list class */
  2. #ifndef _REPLIST_HXX_
  3. #define _REPLIST_HXX_
  4. #include "hunvisapi.h"
  5. #include "w_char.hxx"
  6. #if LL_WINDOWS
  7. // Member function 'near' conflicts with the Windows #define of 'near'
  8. #undef near
  9. #endif // LL_WINDOWS
  10. class LIBHUNSPELL_DLL_EXPORTED RepList
  11. {
  12. protected:
  13. replentry ** dat;
  14. int size;
  15. int pos;
  16. public:
  17. RepList(int n);
  18. ~RepList();
  19. int get_pos();
  20. int add(char * pat1, char * pat2);
  21. replentry * item(int n);
  22. int near(const char * word);
  23. int match(const char * word, int n);
  24. int conv(const char * word, char * dest);
  25. };
  26. #endif