]> git.lyx.org Git - lyx.git/blob - src/chset.h
get builddir!=srcdir compiling working; allow successful make even without noweb...
[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 #include "LString.h"
13
14 ///
15 class CharacterSet {
16 public:
17         ///
18         bool loadFile(string const &);
19         ///
20         string const & getName() const;
21         ///
22         std::pair<bool, int> const encodeString(string const &) const;
23 private:
24         ///
25         string name_;
26         ///
27         typedef std::map<string, unsigned char> Cdef;
28         ///
29         Cdef map_;
30 };
31 #endif