ICU-1413 fix problem where we were returning a parse-error for a

valid parse, which was causing unum_parse to fail.

X-SVN-Rev: 6649
This commit is contained in:
Doug Felt 2001-11-07 00:00:55 +00:00
parent 67ac4d3964
commit 34b31328c7

View file

@ -352,6 +352,9 @@ RuleBasedNumberFormat::parse(const UnicodeString& text,
}
}
if (high_pp.getIndex() > parsePosition.getIndex()) {
high_pp.setErrorIndex(-1);
}
parsePosition = high_pp;
result = high_result;
if (result.getType() == Formattable::kDouble) {