list -func=TYPE not working correctly
Framework for numerical computations, data analysis and visualisation
Brought to you by:
numere
The functionality list -func=TYPE not working correctly. For example, list -func=random does not show any results.
Analysis:
In the following lines
if (sPrefix.find('[') != string::npos)
{
sPrefix.erase(sPrefix.find('['));
sType = sMessageScheme.substr(sMessageScheme.find('[')+1, sMessageScheme.find(']')-sMessageScheme.find(']')-1);
}
else if (sMessageScheme.find('[') != string::npos)
sType = sMessageScheme.substr(sMessageScheme.find('[')+1, sMessageScheme.find(']')-sMessageScheme.find(']')-1);
the last char should be a '[' and not a ']'.
Implementation:
Fix was implemented as proposed by the analysis.
Tests:
list -func=TYPE now works correctly.
Anonymous
Diff:
Diff:
Diff:
Diff: