found._dataStart = found._dataEnd;
found._tokensize = found._dataEnd - found._tokenstart;
found.parenthesiscount = 0;
+ found.head = interval.par.substr(found._tokenstart, found._tokensize);
}
+ else
+ continue;
}
else {
if (evaluatingMath) {
found._dataEnd = found._tokenstart + found._tokensize;
found._dataStart = found._dataEnd;
found.parenthesiscount = 0;
+ found.head = interval.par.substr(found._tokenstart, found._tokensize);
evaluatingMath = true;
}
else {
found.head = interval.par.substr(found._tokenstart, found._tokensize);
}
else {
+ // Swallow possible optional params
while (interval.par[pos1] == '[') {
pos1 = interval.findclosing(pos1+1, interval.par.length(), '[', ']')+1;
}
+ // Swallow also the eventual parameter
if (interval.par[pos1] == '{') {
found._dataEnd = interval.findclosing(pos1+1, interval.par.length()) + 1;
}
found._dataStart = found._dataEnd;
found._tokensize = count + found._dataEnd - pos;
found.parenthesiscount = 0;
+ found.head = interval.par.substr(found._tokenstart, found._tokensize);
found.disabled = true;
}
}
found._dataEnd = found._dataStart;
found._tokensize = count + found._dataEnd - pos;
found.parenthesiscount = 0;
+ found.head = interval.par.substr(found._tokenstart, found._tokensize);
found.disabled = true;
}
}