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.
23 /// a class for mapping char strings such as "\^{A}" to the integer value
27 * initialise this charset from the given .cdef file
28 * param charset the charset to look for
30 * Finds a .cdef file corresponding to the named charset
31 * and parses it. This function is only intended to be
34 bool loadFile(std::string const & charset);
35 /// return the name of the current charset
36 std::string const & getName() const;
38 * Return the encoded charset value of the given string.
40 * The bool value is false if an encoding could not be found
41 * in this charset, and true otherwise.
43 std::pair<bool, int> const encodeString(std::string const &) const;
48 typedef std::map<std::string, unsigned char> Cdef;
49 /// mapping from string representation to encoded value