]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlex_pimpl.C
LFUN_UNICODE_INSERT - unicode-insert
[lyx.git] / src / lyxlex_pimpl.C
index 3d66b7efd1c23d3b8d9762ed84ef2ec64f613c40..eb8765db5fceed0651df36526a3cea0e03409262 100644 (file)
 
 #include <functional>
 
-using lyx::support::compare_ascii_no_case;
-using lyx::support::getFormatFromContents;
-using lyx::support::makeDisplayPath;
-using lyx::support::split;
-using lyx::support::subst;
+
+namespace lyx {
+
+using support::compare_ascii_no_case;
+using support::getFormatFromContents;
+using support::makeDisplayPath;
+using support::split;
+using support::subst;
 
 using std::endl;
 using std::getline;
@@ -71,11 +74,11 @@ string const LyXLex::Pimpl::getString() const
 }
 
 
-lyx::docstring const LyXLex::Pimpl::getDocString() const
+docstring const LyXLex::Pimpl::getDocString() const
 {
-        std::vector<boost::uint32_t> res = utf8_to_ucs4(buff);
-        lyx::docstring dstr(res.begin(), res.end());
-        return dstr;
+       std::vector<char_type> res = utf8_to_ucs4(buff);
+       docstring dstr(res.begin(), res.end());
+       return dstr;
 }
 
 
@@ -83,7 +86,7 @@ void LyXLex::Pimpl::printError(string const & message) const
 {
        string const tmpmsg = subst(message, "$$Token", getString());
        lyxerr << "LyX: " << tmpmsg << " [around line " << lineno
-              << " of file " << makeDisplayPath(name) << ']' << endl;
+               << " of file " << to_utf8(makeDisplayPath(name)) << ']' << endl;
 }
 
 
@@ -523,3 +526,6 @@ void LyXLex::Pimpl::pushToken(string const & pt)
 {
        pushTok = pt;
 }
+
+
+} // namespace lyx