]> git.lyx.org Git - lyx.git/blobdiff - src/encoding.C
minimal effort implementation of:
[lyx.git] / src / encoding.C
index 2f6e1446b36ff3d48c28c206a270f279e9873940..96182834e4e3e986668acffd0067c7301d028551 100644 (file)
@@ -1,24 +1,30 @@
-/* This file is part of
- * ======================================================
+/**
+ * \file encoding.C
+ * 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
+ * \author Dekel Tsur
  *
- *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2001 The LyX Team.
- *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS.
+ */
 
 #include <config.h>
 
 #include "encoding.h"
-#include "lyxlex.h"
+
 #include "debug.h"
+#include "lyxlex.h"
+#include "lyxrc.h"
 
 #ifndef CXX_GLOBAL_CSTD
 using std::strtol;
 #endif
 
 using std::endl;
+using std::string;
+
 
 Encodings encodings;
 
@@ -242,7 +248,7 @@ unsigned char const arabic_start = 0xc1;
 } // namespace anon
 
 
-bool Encodings::IsComposeChar_hebrew(unsigned char c)
+bool Encodings::isComposeChar_hebrew(unsigned char c)
 {
        return c <= 0xd2 && c >= 0xc0 &&
                c != 0xce && c != 0xd0;
@@ -262,7 +268,7 @@ bool Encodings::is_arabic_special(unsigned char c)
                 c == 0xe9;
 }
 
-bool Encodings::IsComposeChar_arabic(unsigned char c)
+bool Encodings::isComposeChar_arabic(unsigned char c)
 {
        return c >= 0xeb && c <= 0xf2;
 }
@@ -274,7 +280,7 @@ bool Encodings::is_arabic(unsigned char c)
 }
 
 
-unsigned char Encodings::TransformChar(unsigned char c,
+unsigned char Encodings::transformChar(unsigned char c,
                                      Encodings::Letter_Form form)
 {
        if (!is_arabic(c))
@@ -330,7 +336,7 @@ void Encodings::read(string const & filename)
                        string const name = lex.getString();
                        lex.next();
                        string const latexname = lex.getString();
-                       lyxerr[Debug::INIT] << "Reading encoding " << name << endl;
+                       lyxerr[Debug::INFO] << "Reading encoding " << name << endl;
                        Uchar table[256];
                        for (unsigned int i = 0; i < 256; ++i) {
                                lex.next();