42 BOOL leadingSpace = allowSpaces,
55 count = [string length];
56 for (i = 0; i !=
count; ++i) {
57 switch ([
string characterAtIndex:i]) {
71 FAIL(
"Digit after trailing whitespace");
83 if (leadingSpace || trailingSpace)
85 if (hadNumber && allowSpaces) {
87 allowSign = allowE = allowDec = NO;
90 FAIL(
"Space in unpermitted position");
100 FAIL(
"Sign (+ or -) in unpermitted position");
109 FAIL(
"Sign (+ or -) in unpermitted position");
122 FAIL(
"E in unpermitted position");
125 FAIL(
"Unpermitted character");
130 FAIL(
"E with no exponent");
132 FAIL(
"No digits in string");