using support::changeExtension;
using support::contains;
using support::copy;
-using support::FileName;
+using support::DocFileName;
using support::findtexfile;
using support::isFileReadable;
using support::latex_path;
typedef boost::tokenizer<Separator, docstring::const_iterator, docstring> Tokenizer;
Separator const separator(from_ascii(",").c_str());
+ // The tokenizer must not be called with temporary strings, since
+ // it does not make a copy and uses iterators of the string further
+ // down. getParam returns a reference, so this is OK.
Tokenizer const tokens(getParam("bibfiles"), separator);
Tokenizer::const_iterator const begin = tokens.begin();
Tokenizer::const_iterator const end = tokens.end();
isFileReadable(in_file)) {
// mangledFilename() needs the extension
- database = removeExtension(FileName(in_file).mangledFilename());
+ database = removeExtension(DocFileName(in_file).mangledFilename());
string const out_file = makeAbsPath(database + ".bib",
buffer.getMasterBuffer()->temppath());
isFileReadable(in_file)) {
// use new style name
base = removeExtension(
- FileName(in_file).mangledFilename());
+ DocFileName(in_file).mangledFilename());
string const out_file = makeAbsPath(base + ".bst",
buffer.getMasterBuffer()->temppath());
bool const success = copy(in_file, out_file);