#else
string const pathlist = os::slashify_path(GetEnv(name));
#endif
- return strip(pathlist, ';');
+ return strip(pathlist, ";");
}
}
-// FIXME: no need for separate method like this ...
+// FIXME: no need for separate method like this ...
int DestroyLyXTmpDir(string const & tmpdir)
{
- return DestroyTmpDir(tmpdir, true);
+ return DestroyTmpDir(tmpdir, true);
}
// Creates directory. Returns true if succesfull
bool createDirectory(string const & path, int permission)
{
- string temp(strip(os::slashify_path(path), '/'));
+ string temp(strip(os::slashify_path(path), "/"));
if (temp.empty()) {
Alert::alert(_("Internal error!"),
if (filename.empty() || !IsFileReadable(filename))
return string();
-
+
ifstream ifs(filename.c_str());
if (!ifs)
// Couldn't open file...
else if (contains(str,"%!PS-Adobe")) {
// eps or ps
ifs >> str;
- if (contains(str,"EPSF"))
+ if (contains(str,"EPSF"))
format = "eps";
else
format = "ps";
cmd_ret const c = RunCommand(kpsecmd);
lyxerr[Debug::LATEX] << "kpse status = " << c.first << "\n"
- << "kpse result = `" << strip(c.second, '\n')
+ << "kpse result = `" << strip(c.second, "\n")
<< "'" << endl;
if (c.first != -1)
- return os::internal_path(strip(strip(c.second, '\n'), '\r'));
+ return os::internal_path(strip(strip(c.second, "\n"), "\r"));
else
return string();
}
}
-void readBB_lyxerrMessage(string const & file, bool & zipped,
- string const & message)
+void readBB_lyxerrMessage(string const & file, bool & zipped,
+ string const & message)
{
- lyxerr[Debug::GRAPHICS] << "[readBB_from_PSFile] "
+ lyxerr[Debug::GRAPHICS] << "[readBB_from_PSFile] "
<< message << std::endl;
if (zipped)
lyx::unlink(file);
string const format = getExtFromContents(file_);
if (format != "eps" && format != "ps") {
- readBB_lyxerrMessage(file_, zipped,"no(e)ps-format");
+ readBB_lyxerrMessage(file_, zipped,"no(e)ps-format");
return string();
}