ICU-8675 Fixed a time zone parse regression problem. The condition used for checking perfect match was wrong.
X-SVN-Rev: 30266
This commit is contained in:
parent
c997b7a1f9
commit
aaca2b7e95
@ -972,7 +972,7 @@ TimeZoneGenericNames::findLocal(const UnicodeString& text, int32_t start, uint32
|
||||
|
||||
int32_t maxLen = 0;
|
||||
UVector *results = handler.getMatches(maxLen);
|
||||
if ((results != NULL && (maxLen == (text.length() - start))) || fGNamesTrieFullyLoaded) {
|
||||
if (results != NULL && ((maxLen == (text.length() - start)) || fGNamesTrieFullyLoaded)) {
|
||||
// perfect match
|
||||
gmatchInfo = new TimeZoneGenericNameMatchInfo(results);
|
||||
if (gmatchInfo == NULL) {
|
||||
|
@ -1351,7 +1351,7 @@ TimeZoneNamesImpl::find(const UnicodeString& text, int32_t start, uint32_t types
|
||||
|
||||
int32_t maxLen = 0;
|
||||
UVector *results = handler.getMatches(maxLen);
|
||||
if ((results != NULL && (maxLen == (text.length() - start))) || fNamesTrieFullyLoaded) {
|
||||
if (results != NULL && ((maxLen == (text.length() - start)) || fNamesTrieFullyLoaded)) {
|
||||
// perfect match
|
||||
matchInfo = new TimeZoneNameMatchInfoImpl(results);
|
||||
if (matchInfo == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user