Dollar signs in strings as procedure arguments
Framework for numerical computations, data analysis and visualisation
Brought to you by:
numere
If one uses a dollar sign in a string literal, which is used as procedure argument, NumeRe will transform it into $thisfile~. A Similar issue might be that this is not possible:
write "\subsection{" + $thisfile~camelize(replaceall((string(j, 2), "_", " "))) + "}" -set file=sTARGETPATH+"overallreport.tex" -mode=app -nq
Actually, these are two different issues with different reasons
$thisfile~ is related to using namespace thisfile. The algorithm, which searches for procedures in the argument list, doesn't consider quotation marks. This has to be changed. The issue can be found in Procedure::execute and Procedure::procedureInterfaceparser_VectorToExpr the below listed code snippet is wrong and has to be changed.This is wrong:
// Append the last scalar and a comma, if it is needed
if (vScalars.size() > vVectors.size())
sLine += vScalars.back();
it has to be changed to:
// Append the last scalar and a comma, if it is needed
if (vScalars.size() > vVectors.size())
sLine += vScalars[vScalars.size()-2];
!isInQuotes(__sVarList, nVarPos-1) && at the two relevant locations, the second as proposed by the analysis.This fix was tested in the automatic SW tests. No deviations detected.
Anonymous
Diff:
Diff:
Diff:
Diff:
Related
Commit: [r383]
Diff:
Related
Commit: [r383]
Diff: