mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-10 02:08:38 +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
|
||||
/*
|
||||
********************************************************************
|
||||
|
|
@ -261,6 +261,11 @@ static UBool U_CALLCONV ucnv_cleanup(void) {
|
|||
return (SHARED_DATA_HASHTABLE == NULL);
|
||||
}
|
||||
|
||||
U_CAPI void U_EXPORT2
|
||||
ucnv_enableCleanup() {
|
||||
ucln_common_registerCleanup(UCLN_COMMON_UCNV, ucnv_cleanup);
|
||||
}
|
||||
|
||||
static UBool U_CALLCONV
|
||||
isCnvAcceptable(void * /*context*/,
|
||||
const char * /*type*/, const char * /*name*/,
|
||||
|
|
@ -439,7 +444,7 @@ ucnv_shareConverterData(UConverterSharedData * data)
|
|||
SHARED_DATA_HASHTABLE = uhash_openSize(uhash_hashChars, uhash_compareChars, NULL,
|
||||
ucnv_io_countKnownConverters(&err)*UCNV_CACHE_LOAD_FACTOR,
|
||||
&err);
|
||||
ucln_common_registerCleanup(UCLN_COMMON_UCNV, ucnv_cleanup);
|
||||
ucnv_enableCleanup();
|
||||
|
||||
if (U_FAILURE(err))
|
||||
return;
|
||||
|
|
@ -1099,7 +1104,7 @@ static void U_CALLCONV initAvailableConvertersList(UErrorCode &errCode) {
|
|||
U_ASSERT(gAvailableConverterCount == 0);
|
||||
U_ASSERT(gAvailableConverters == NULL);
|
||||
|
||||
ucln_common_registerCleanup(UCLN_COMMON_UCNV, ucnv_cleanup);
|
||||
ucnv_enableCleanup();
|
||||
UEnumeration *allConvEnum = ucnv_openAllNames(&errCode);
|
||||
int32_t allConverterCount = uenum_count(allConvEnum, &errCode);
|
||||
if (U_FAILURE(errCode)) {
|
||||
|
|
@ -1205,7 +1210,7 @@ internalSetName(const char *name, UErrorCode *status) {
|
|||
// -- Andy
|
||||
gDefaultConverterName = gDefaultConverterNameBuffer;
|
||||
|
||||
ucln_common_registerCleanup(UCLN_COMMON_UCNV, ucnv_cleanup);
|
||||
ucnv_enableCleanup();
|
||||
|
||||
umtx_unlock(&cnvCacheMutex);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue