It's in CEvents.m a find all should reveal it
LOL, thanks for the info, global find could make this line in my Xcode. if not because of you or Yves posting where this code is I wouldn't find it.
Checking it now.
============
Will continue with some test tomorrow but try this at your side.
int nString=0;
NSUInteger strLength = [pString length];
if (strLength==0)
{
...
return;
}
while([pString characterAtIndex:nString]==32 && nString < strLength-1)
nString++;
testing with this inputs seems fine
funcVal(@"");
funcVal(@".");
funcVal(@"0.");
funcVal(@"0");
funcVal(@".0");
funcVal(@"1234,456.0");
funcVal(@"78976.0");
funcVal(@"1e-06");
funcVal(@"23673644.989e-05");
funcVal(@"1954637.989e05");
funcVal(@" ");
funcVal(@" ");
funcVal(@" 56");
funcVal(@" 56.678 ");
also tested for nil input