mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 15:27:32 +09:00
Issue #1971 - Part 2: Update ICU source to 63.2.
This commit is contained in:
parent
8df84683be
commit
1e69214382
3160 changed files with 275815 additions and 234203 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright (C) 2016 and later: Unicode, Inc. and others.
|
||||
// © 2016 and later: Unicode, Inc. and others.
|
||||
// License & terms of use: http://www.unicode.org/copyright.html
|
||||
/*
|
||||
*******************************************************************************
|
||||
|
|
@ -752,8 +752,7 @@ private:
|
|||
len = mapLen;
|
||||
}
|
||||
|
||||
UBool getID(int32_t i) {
|
||||
UErrorCode ec = U_ZERO_ERROR;
|
||||
UBool getID(int32_t i, UErrorCode& ec) {
|
||||
int32_t idLen = 0;
|
||||
const UChar* id = NULL;
|
||||
UResourceBundle *top = ures_openDirect(0, kZONEINFO, &ec);
|
||||
|
|
@ -943,7 +942,7 @@ public:
|
|||
|
||||
virtual const UnicodeString* snext(UErrorCode& status) {
|
||||
if (U_SUCCESS(status) && map != NULL && pos < len) {
|
||||
getID(map[pos]);
|
||||
getID(map[pos], status);
|
||||
++pos;
|
||||
return &unistr;
|
||||
}
|
||||
|
|
@ -1045,8 +1044,8 @@ TimeZone::getEquivalentID(const UnicodeString& id, int32_t index) {
|
|||
UResourceBundle *ares = ures_getByKey(top, kNAMES, NULL, &ec); // dereference Zones section
|
||||
if (U_SUCCESS(ec)) {
|
||||
int32_t idLen = 0;
|
||||
const UChar* id = ures_getStringByIndex(ares, zone, &idLen, &ec);
|
||||
result.fastCopyFrom(UnicodeString(TRUE, id, idLen));
|
||||
const UChar* id2 = ures_getStringByIndex(ares, zone, &idLen, &ec);
|
||||
result.fastCopyFrom(UnicodeString(TRUE, id2, idLen));
|
||||
U_DEBUG_TZ_MSG(("gei(%d) -> %d, len%d, %s\n", index, zone, result.length(), u_errorName(ec)));
|
||||
}
|
||||
ures_close(ares);
|
||||
|
|
@ -1213,7 +1212,7 @@ TimeZone::getDisplayName(UBool daylight, EDisplayType style, const Locale& local
|
|||
{
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
UDate date = Calendar::getNow();
|
||||
UTimeZoneFormatTimeType timeType;
|
||||
UTimeZoneFormatTimeType timeType = UTZFMT_TIME_TYPE_UNKNOWN;
|
||||
int32_t offset;
|
||||
|
||||
if (style == GENERIC_LOCATION || style == LONG_GENERIC || style == SHORT_GENERIC) {
|
||||
|
|
@ -1626,7 +1625,7 @@ TimeZone::getWindowsID(const UnicodeString& id, UnicodeString& winid, UErrorCode
|
|||
end = tzids + len;
|
||||
hasNext = FALSE;
|
||||
}
|
||||
if (canonicalID.compare(start, end - start) == 0) {
|
||||
if (canonicalID.compare(start, static_cast<int32_t>(end - start)) == 0) {
|
||||
winid = UnicodeString(ures_getKey(winzone), -1 , US_INV);
|
||||
found = TRUE;
|
||||
break;
|
||||
|
|
@ -1687,7 +1686,7 @@ TimeZone::getIDForWindowsID(const UnicodeString& winid, const char* region, Unic
|
|||
if (end == NULL) {
|
||||
id.setTo(tzids, -1);
|
||||
} else {
|
||||
id.setTo(tzids, end - tzids);
|
||||
id.setTo(tzids, static_cast<int32_t>(end - tzids));
|
||||
}
|
||||
gotID = TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue