OSDN Git Service

Merge remove x86 build
[tortoisegit/TortoiseGitJp.git] / ext / hunspell / dictmgr.hxx
1 #ifndef _DICTMGR_HXX_
2 #define _DICTMGR_HXX_
3
4 #define MAXDICTIONARIES 100
5 #define MAXDICTENTRYLEN 1024
6
7 struct dictentry {
8   char * filename;
9   char * lang;
10   char * region;
11 };
12
13
14 class DictMgr
15 {
16
17   int                 numdict;
18   dictentry *         pdentry;
19
20 public:
21  
22   DictMgr(const char * dictpath, const char * etype);
23   ~DictMgr();
24   int get_list(dictentry** ppentry);
25             
26 private:
27   int  parse_file(const char * dictpath, const char * etype);
28   char * mystrsep(char ** stringp, const char delim);
29   char * mystrdup(const char * s);
30   void mychomp(char * s);
31
32 };
33
34 #endif