The command sequence clear string() should have a similar effect to clear cache(): remove all string elements and reset the string() object. Add another command for the current meaning, e.g.
delete string(i)
remove string(i)
Analysis:
To achieve this change request, implement a new inline function like removeStringElements(unsigned int) and copy the code from clearStringElements() there. clearStringElements() shall have the following content:
inline bool clearStringElements()
{
if (sStrings.size())
sStrings.clear();
return;
}
Finally, implement a UI to the old and the new function. The command shall be remove string(i).
Implementation:
Change was implemented as proposed by the analysis. Because delete string() already existed, the command was merged and changed to delete string(i). Implementation tests were successful.
Tests:
Tests were passed successfully. Remark: syntax might be a bit difficult to remember/to use.
Anonymous
Diff:
Diff:
Diff:
Diff: