mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
45 lines
468 B
C
45 lines
468 B
C
|
// -*- C++ -*-
|
||
|
#ifndef _Chset_h_
|
||
|
#define _Chset_h_
|
||
|
|
||
|
#ifdef __GNUG__
|
||
|
#pragma interface
|
||
|
#endif
|
||
|
|
||
|
#include "LString.h"
|
||
|
|
||
|
///
|
||
|
class CharacterSet {
|
||
|
public:
|
||
|
///
|
||
|
CharacterSet();
|
||
|
///
|
||
|
~CharacterSet();
|
||
|
|
||
|
///
|
||
|
bool loadFile(const LString&);
|
||
|
///
|
||
|
LString getName();
|
||
|
///
|
||
|
bool encodeString(LString&);
|
||
|
private:
|
||
|
///
|
||
|
LString name_;
|
||
|
|
||
|
///
|
||
|
struct Cdef {
|
||
|
///
|
||
|
unsigned char ic;
|
||
|
///
|
||
|
LString str;
|
||
|
///
|
||
|
Cdef *next;
|
||
|
};
|
||
|
|
||
|
///
|
||
|
Cdef *map_;
|
||
|
///
|
||
|
void freeMap();
|
||
|
};
|
||
|
#endif
|