LaTeX::LaTeX(string const & latex, OutputParams const & rp,
FileName const & f, string const & p)
- : cmd(latex), file(f), path(p), runparams(rp)
+ : cmd(latex), file(f), path(p), runparams(rp), biber(false)
{
num_errors = 0;
if (prefixIs(cmd, "pdf")) { // Do we use pdflatex ?
}
-int iterateLine(string const token, regex const reg, string const closing,
+int iterateLine(string const token, regex const reg, string const & closing,
int fragment_pos, DepTable & head)
{
smatch what;
// result = -1 means we did not find a fragment!
int result = -1;
int last_match_pos = -1;
- if (token.find(last_match) != string::npos)
+ if (!last_match.empty() && token.find(last_match) != string::npos)
last_match_pos = int(token.find(last_match));
if (fragment) {
if (last_match_pos > fragment_pos)
} else
if (last_match_pos < fragment_pos)
result = fragment_pos;
+
return result;
}