mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
35584afc11
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@180 a592a061-630c-0410-9148-cb99ea01b6c8
45 lines
459 B
C++
45 lines
459 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 string&);
|
|
///
|
|
string getName();
|
|
///
|
|
bool encodeString(string&);
|
|
private:
|
|
///
|
|
string name_;
|
|
|
|
///
|
|
struct Cdef {
|
|
///
|
|
unsigned char ic;
|
|
///
|
|
string str;
|
|
///
|
|
Cdef *next;
|
|
};
|
|
|
|
///
|
|
Cdef *map_;
|
|
///
|
|
void freeMap();
|
|
};
|
|
#endif
|