String number parsing error handling

Hi Jules,


Would it be possible to add at some point a way to know if String to number conversion succeeded ?

Currently using getIntValue(), getLargeIntValue(), getFloatValue(), getDoubleValue(), there is no way to know if the returned number is valid.

An optional bool pointer passed as an argument could do the trick and wouldn't break the current code


Something like that:


String str("toto");

bool res;

int value = str.getIntValue(&res);


Thanks !