-/* 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>
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
#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;
} // 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;
// Special Arabic letters are ones that do not get connected from left
-// they are hamza, alef_madda, alef_hamza, waw_hamza, alef_hamza_under,
+// they are hamza, alef_madda, alef_hamza, waw_hamza, alef_hamza_under,
// alef, tah_marbota, dal, thal, rah, zai, wow, alef_maksoura
bool Encodings::is_arabic_special(unsigned char c)
{
- return (c >= 0xc1 && c <= 0xc5) ||
+ return (c >= 0xc1 && c <= 0xc5) ||
c == 0xc7 || c == 0xc9 ||
c == 0xcf || c == 0xe8 ||
(c >= 0xd0 && c <= 0xd2) ||
c == 0xe9;
}
-bool Encodings::IsComposeChar_arabic(unsigned char c)
+bool Encodings::isComposeChar_arabic(unsigned char c)
{
return c >= 0xeb && c <= 0xf2;
}
}
-unsigned char Encodings::TransformChar(unsigned char c,
+unsigned char Encodings::transformChar(unsigned char c,
Encodings::Letter_Form form)
{
if (!is_arabic(c))