#define ENCODING_H
#include "support/docstring.h"
+#include "support/types.h"
#include <map>
#include <set>
class LaTeXFeatures;
+class EncodingException : public std::exception {
+public:
+ EncodingException(char_type c);
+ virtual ~EncodingException() throw() {}
+ virtual const char * what() const throw();
+
+ char_type failed_char;
+ int par_id;
+ pos_type pos;
+};
+
///
class Encoding {
docstring const latexChar(char_type c) const;
/// Which LaTeX package handles this encoding?
Package package() const { return package_; }
+ /// A list of all characters usable in this encoding
+ std::set<char_type> getSymbolsList();
private:
///
std::string Name_;