X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fchset.h;h=90d9affad48156848b3a92da9195fa17f87d0373;hb=ebfcf1c0e72288b7131607af0330500c8739cead;hp=6156606571c566d318bfb354eaa9cad428a8087a;hpb=27de1486ca34aaad446adb798d71a77d6f6304da;p=lyx.git diff --git a/src/chset.h b/src/chset.h index 6156606571..90d9affad4 100644 --- a/src/chset.h +++ b/src/chset.h @@ -1,44 +1,31 @@ // -*- C++ -*- -#ifndef _Chset_h_ -#define _Chset_h_ +#ifndef CHSET_H +#define CHSET_H #ifdef __GNUG__ #pragma interface #endif +#include +#include + #include "LString.h" /// class CharacterSet { public: /// - CharacterSet(); - /// - ~CharacterSet(); - + bool loadFile(string const &); /// - bool loadFile(const LString&); + string const & getName() const; /// - LString getName(); - /// - bool encodeString(LString&); + std::pair const encodeString(string const &) const; private: /// - LString name_; - - /// - struct Cdef { - /// - unsigned char ic; - /// - LString str; - /// - Cdef *next; - }; - + string name_; /// - Cdef *map_; + typedef std::map Cdef; /// - void freeMap(); + Cdef map_; }; #endif