]> git.lyx.org Git - features.git/blob - src/3rdparty/hunspell/1.3.3/src/hunspell/dictmgr.hxx
add stripped down hunspell 1.3.3
[features.git] / src / 3rdparty / hunspell / 1.3.3 / src / hunspell / dictmgr.hxx
1 #ifndef _DICTMGR_HXX_
2 #define _DICTMGR_HXX_
3
4 #include "hunvisapi.h"
5
6 #define MAXDICTIONARIES 100
7 #define MAXDICTENTRYLEN 1024
8
9 struct dictentry {
10   char * filename;
11   char * lang;
12   char * region;
13 };
14
15
16 class LIBHUNSPELL_DLL_EXPORTED DictMgr
17 {
18 private:
19   DictMgr(const DictMgr&);
20   DictMgr& operator = (const DictMgr&);
21 private:
22   int                 numdict;
23   dictentry *         pdentry;
24
25 public:
26  
27   DictMgr(const char * dictpath, const char * etype);
28   ~DictMgr();
29   int get_list(dictentry** ppentry);
30             
31 private:
32   int  parse_file(const char * dictpath, const char * etype);
33   char * mystrsep(char ** stringp, const char delim);
34   char * mystrdup(const char * s);
35   void mychomp(char * s);
36
37 };
38
39 #endif