mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-21 04:29:31 +00:00
ICU-6830 be case-sensitive in skeleton hash compares; add patterns for both H/h
X-SVN-Rev: 27586
This commit is contained in:
parent
dce05514ff
commit
c6780c2b10
1 changed files with 3 additions and 3 deletions
|
@ -221,7 +221,7 @@ DateIntervalInfo::initializeData(const Locale& locale, UErrorCode& err)
|
|||
int32_t locNameLen;
|
||||
uprv_strcpy(parentLocale, locName);
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
Hashtable skeletonSet(TRUE, status);
|
||||
Hashtable skeletonSet(FALSE, status);
|
||||
if ( U_FAILURE(status) ) {
|
||||
return;
|
||||
}
|
||||
|
@ -298,7 +298,7 @@ DateIntervalInfo::initializeData(const Locale& locale, UErrorCode& err)
|
|||
calendarField = UCAL_DATE;
|
||||
} else if ( !uprv_strcmp(key, "a") ) {
|
||||
calendarField = UCAL_AM_PM;
|
||||
} else if ( !uprv_strcmp(key, "h") ) {
|
||||
} else if ( !uprv_strcmp(key, "h") || !uprv_strcmp(key, "H") ) {
|
||||
calendarField = UCAL_HOUR;
|
||||
} else if ( !uprv_strcmp(key, "m") ) {
|
||||
calendarField = UCAL_MINUTE;
|
||||
|
@ -598,7 +598,7 @@ DateIntervalInfo::initHash(UErrorCode& status) {
|
|||
return NULL;
|
||||
}
|
||||
Hashtable* hTable;
|
||||
if ( (hTable = new Hashtable(TRUE, status)) == NULL ) {
|
||||
if ( (hTable = new Hashtable(FALSE, status)) == NULL ) {
|
||||
status = U_MEMORY_ALLOCATION_ERROR;
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue