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