1999-09-27 18:44:28 +00:00
|
|
|
// -*- C++ -*-
|
1999-10-07 18:44:17 +00:00
|
|
|
#ifndef CHSET_H
|
|
|
|
#define CHSET_H
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "LString.h"
|
|
|
|
|
|
|
|
///
|
|
|
|
class CharacterSet {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
CharacterSet();
|
|
|
|
///
|
|
|
|
~CharacterSet();
|
|
|
|
|
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
bool loadFile(const string&);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string getName();
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
bool encodeString(string&);
|
1999-09-27 18:44:28 +00:00
|
|
|
private:
|
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string name_;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
///
|
|
|
|
struct Cdef {
|
|
|
|
///
|
|
|
|
unsigned char ic;
|
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string str;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
|
|
|
Cdef *next;
|
|
|
|
};
|
|
|
|
|
|
|
|
///
|
|
|
|
Cdef *map_;
|
|
|
|
///
|
|
|
|
void freeMap();
|
|
|
|
};
|
|
|
|
#endif
|