]> git.lyx.org Git - lyx.git/blob - src/chset.h
17f08193fe7dcf4318fe25e8437eeab5dee62f6a
[lyx.git] / src / chset.h
1 // -*- C++ -*-
2 #ifndef CHSET_H
3 #define CHSET_H
4
5 #ifdef __GNUG__
6 #pragma interface
7 #endif
8
9 #include "LString.h"
10
11 ///
12 class CharacterSet {
13 public:
14         ///
15         CharacterSet();
16         ///
17         ~CharacterSet();
18         
19         ///
20         bool loadFile(const string&);
21         ///
22         string getName();
23         ///
24         bool encodeString(string&);
25 private:
26         ///
27         string name_;
28         
29         ///
30         struct Cdef {
31                 ///
32                 unsigned char ic;
33                 ///
34                 string str;
35                 ///
36                 Cdef *next;
37         };
38         
39         ///
40         Cdef *map_;
41         ///
42         void freeMap();
43 };
44 #endif