mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
77e706c441
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@638 a592a061-630c-0410-9148-cb99ea01b6c8
32 lines
420 B
C++
32 lines
420 B
C++
// -*- C++ -*-
|
|
#ifndef CHSET_H
|
|
#define CHSET_H
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
#include <map>
|
|
#include <utility>
|
|
|
|
#include "LString.h"
|
|
|
|
///
|
|
class CharacterSet {
|
|
public:
|
|
///
|
|
bool loadFile(string const &);
|
|
///
|
|
string const & getName() const;
|
|
///
|
|
std::pair<bool, int> encodeString(string &) const;
|
|
private:
|
|
///
|
|
string name_;
|
|
///
|
|
typedef std::map<string, unsigned char> Cdef;
|
|
///
|
|
Cdef map_;
|
|
};
|
|
#endif
|