lyx_mirror/src/chset.h

35 lines
444 B
C
Raw Normal View History

// -*- C++ -*-
#ifndef CHSET_H
#define CHSET_H
#ifdef __GNUG__
#pragma interface
#endif
#include <map>
#include <utility>
#include "LString.h"
using std::map;
using std::pair;
///
class CharacterSet {
public:
///
bool loadFile(string const &);
///
string const & getName() const;
///
pair<bool, int> encodeString(string &) const;
private:
///
string name_;
///
typedef map<string, unsigned char> Cdef;
///
Cdef map_;
};
#endif