]> git.lyx.org Git - lyx.git/blobdiff - src/encoding.h
compilation fix
[lyx.git] / src / encoding.h
index fe429862cd5997a372efd8ea96bb5480e819d052..830a05c3c491f11cd24430441a9761d41b9644ae 100644 (file)
@@ -1,23 +1,21 @@
 // -*- C++ -*-
-/* This file is part of
- * ======================================================
+/**
+ * \file encoding.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           LyX, The Document Processor
+ * \author Lars Gullik Bjønnes
+ * \author Jean-Marc Lasgouttes
  *
- *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2001 The LyX Team.
- *
- * ====================================================== */
+ * 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;
@@ -28,17 +26,17 @@ public:
        ///
        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_;
        }
        ///
@@ -47,9 +45,9 @@ public:
        }
 private:
        ///
-       string Name_;
+       std::string Name_;
        ///
-       string LatexName_;
+       std::string LatexName_;
        ///
        Uchar encoding_table[256];
 };
@@ -59,13 +57,13 @@ extern Encoding symbol_encoding;
 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_;
@@ -90,6 +88,9 @@ public:
        bool IsComposeChar_arabic(unsigned char c);
        ///
        static
+       bool is_arabic_special(unsigned char c);
+       ///
+       static
        bool is_arabic(unsigned char c);
        ///
        static