4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
8 * \author Jean-Marc Lasgouttes
10 * Full author contact details are available in file CREDITS.
21 /// a class for mapping char strings such as "\^{A}" to the integer value
25 * initialise this charset from the given .cdef file
26 * param charset the charset to look for
28 * Finds a .cdef file corresponding to the named charset
29 * and parses it. This function is only intended to be
32 bool loadFile(std::string const & charset);
33 /// return the name of the current charset
34 std::string const & getName() const;
36 * Return the encoded charset value of the given string.
38 * The bool value is false if an encoding could not be found
39 * in this charset, and true otherwise.
41 std::pair<bool, int> const encodeString(std::string const &) const;
46 typedef std::map<std::string, unsigned char> Cdef;
47 /// mapping from string representation to encoded value