home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / lyx-0.13.2.tar.gz / lyx-0.13.2.tar / lyx-0.13.2 / src / chset.h < prev    next >
C/C++ Source or Header  |  1998-04-23  |  468b  |  45 lines

  1. // -*- C++ -*-
  2. #ifndef _Chset_h_
  3. #define _Chset_h_
  4.  
  5. #ifdef __GNUG__
  6. #pragma interface
  7. #endif
  8.  
  9. #include "LString.h"
  10.  
  11. ///
  12. class CharacterSet {
  13. public:
  14.     ///
  15.     CharacterSet();
  16.     ///
  17.     ~CharacterSet();
  18.     
  19.     ///
  20.     bool loadFile(const LString&);
  21.     ///
  22.     LString getName();
  23.     ///
  24.     bool encodeString(LString&);
  25. private:
  26.     ///
  27.     LString name_;
  28.     
  29.     ///
  30.     struct Cdef {
  31.         ///
  32.         unsigned char ic;
  33.         ///
  34.         LString str;
  35.         ///
  36.         Cdef *next;
  37.     };
  38.     
  39.     ///
  40.     Cdef *map_;
  41.     ///
  42.     void freeMap();
  43. };
  44. #endif
  45.