So, I have the following string: “500-78”, and if I call
GetTrailingIntValue() it will return me an -78 integer. However the documentation says :
Negative numbers are not handled, so "xyz-5" returns 5."
from here: JUCE: String Class Reference
I have also tried 500a-78, and the example in case, xyz-5, and they both return the negative number -78 and -5 respectively.
Juce Version 6.0.7
Projuicer on Windows with Visual Studio 2019
As such either the documentation is wrong (easiest fix I would assume) or its unintended behaviour.
I’ve added a check on my own side to revert from negative to positive in case it happens, so no major dealbreaker, but wanted to point out!