mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
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:
parent
67ac4d3964
commit
34b31328c7
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue