// -*- C++ -*-
-/* This file is part of
- * ======================================================
- *
- * LyX, The Document Processor
- *
- * Copyright 1995 Matthias Ettrich
- * Copyright 1995-2001 The LyX Team.
+/**
+ * \file encoding.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * ====================================================== */
+ * \author Lars Gullik Bjønnes
+ * \author Jean-Marc Lasgouttes
+ *
+ * Full author contact details are available in file CREDITS.
+ */
#ifndef ENCODING_H
#define ENCODING_H
-#ifdef __GNUG__
-#pragma interface
-#endif
+#include <map>
+#include <string>
-#include "LString.h"
-#include "lyxrc.h"
///
typedef unsigned short int Uchar;
///
Encoding() {}
///
- Encoding(string const & n, string const & l, Uchar const * e)
+ Encoding(std::string const & n, std::string const & l, Uchar const * e)
: Name_(n), LatexName_(l) {
for (int i = 0; i < 256; ++i)
encoding_table[i] = e[i];
}
///
- string const & Name() const {
+ std::string const & Name() const {
return Name_;
}
///
- string const & LatexName() const {
+ std::string const & LatexName() const {
return LatexName_;
}
///
}
private:
///
- string Name_;
+ std::string Name_;
///
- string LatexName_;
+ std::string LatexName_;
///
Uchar encoding_table[256];
};
class Encodings {
public:
///
- typedef std::map<string, Encoding> EncodingList;
+ typedef std::map<std::string, Encoding> EncodingList;
///
Encodings();
///
- void read(string const & filename);
+ void read(std::string const & filename);
///
- Encoding const * getEncoding(string const & encoding) const;
+ Encoding const * getEncoding(std::string const & encoding) const;
///
Encoding const * symbol_encoding() {
return &symbol_encoding_;
bool IsComposeChar_arabic(unsigned char c);
///
static
+ bool is_arabic_special(unsigned char c);
+ ///
+ static
bool is_arabic(unsigned char c);
///
static