4 * Copyright 2002 the LyX Team
5 * Read the file COPYING
20 /// a class for mapping char strings such as "\^{A}" to the integer value
24 * initialise this charset from the given .cdef file
25 * param charset the charset to look for
27 * Finds a .cdef file corresponding to the named charset
28 * and parses it. This function is only intended to be
31 bool loadFile(string const & charset);
32 /// return the name of the current charset
33 string const & getName() const;
35 * Return the encoded charset value of the given string.
37 * The bool value is false if an encoding could not be found
38 * in this charset, and true otherwise.
40 std::pair<bool, int> const encodeString(string const &) const;
45 typedef std::map<string, unsigned char> Cdef;
46 /// mapping from string representation to encoded value