]> git.lyx.org Git - lyx.git/blob - src/chset.h
Small bugfixes and some sun CC 5.0 portability tweaks (see ChangeLog)
[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 using std::map;
11
12 #include <utility>
13 using std::pair;
14 using std::make_pair;  // may also be put in chset.C
15
16 #include "LString.h"
17
18 using std::map;
19
20 ///
21 class CharacterSet {
22 public:
23         ///
24         bool loadFile(string const &);
25         ///
26         string const & getName() const;
27         ///
28         pair<bool, int> encodeString(string &) const;
29 private:
30         ///
31         string name_;
32         ///
33         typedef map<string, unsigned char> Cdef;
34         ///
35         Cdef map_;
36 };
37 #endif