]> git.lyx.org Git - lyx.git/blobdiff - src/Encoding.cpp
Move Dialog.{h,cpp} and ButtonPolicy.{h,cpp} to frontends/qt4/
[lyx.git] / src / Encoding.cpp
index 9e7f139cd3aa70ac6df69ff1c7fc95ed8ffdf277..6a610c1998465ce815024b450cc5fe43319eaef8 100644 (file)
@@ -23,6 +23,8 @@
 #include "support/lstrings.h"
 #include "support/unicode.h"
 
+#include <boost/cstdint.hpp>
+
 #include <sstream>
 
 #ifndef CXX_GLOBAL_CSTD
@@ -401,7 +403,7 @@ bool Encodings::isCombiningChar(char_type c)
 }
 
 
-bool Encodings::isKnownLangChar(char_type c, string & preamble)
+bool Encodings::isKnownScriptChar(char_type const c, string & preamble)
 {
        CharInfoMap::const_iterator const it = unicodesymbols.find(c);
 
@@ -504,11 +506,9 @@ void Encodings::read(FileName const & encfile, FileName const & symbolsfile)
                if (!info.preamble.empty())
                        info.feature = info.preamble[0] != '\\';
 
-               LYXERR(Debug::INFO)
-                       << "Read unicode symbol " << symbol << " '"
+               LYXERR(Debug::INFO, "Read unicode symbol " << symbol << " '"
                        << to_utf8(info.command) << "' '" << info.preamble
-                       << "' " << info.combining << ' ' << info.feature
-                       << endl;
+                       << "' " << info.combining << ' ' << info.feature);
                unicodesymbols[symbol] = info;
        }
 
@@ -562,7 +562,7 @@ void Encodings::read(FileName const & encfile, FileName const & symbolsfile)
                                               "Unknown package: `$$Token'");
                         }
                         
-                       LYXERR(Debug::INFO) << "Reading encoding " << name << endl;
+                       LYXERR(Debug::INFO, "Reading encoding " << name);
                        encodinglist[name] = Encoding(name, latexname,
                                                      iconvname, fixedwidth,
                                                      package);