]> git.lyx.org Git - lyx.git/blob - src/chset.h
adce167ab17c80b576e6a531bc69d6211d2d46ef
[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 <map>
10 #include <utility>
11
12 using std::map;
13 using std::pair;
14
15 #include "LString.h"
16
17 ///
18 class CharacterSet {
19 public:
20         ///
21         bool loadFile(string const &);
22         ///
23         string const & getName() const;
24         ///
25         pair<bool, int> encodeString(string &) const;
26 private:
27         ///
28         string name_;
29         ///
30         typedef map<string, unsigned char> Cdef;
31         ///
32         Cdef map_;
33 };
34 #endif