U_CDECL_BEGIN static UBool U_CALLCONV uprv_normalizer2_cleanup() { delete nfcSingleton; nfcSingleton = NULL; delete noopSingleton; noopSingleton = NULL; nfcInitOnce.reset(); noopInitOnce.reset(); return TRUE; }
static UBool U_CALLCONV uprv_loaded_normalizer2_cleanup() { delete nfkcSingleton; nfkcSingleton = NULL; delete nfkc_cfSingleton; nfkc_cfSingleton = NULL; uhash_close(cache); cache=NULL; nfkcInitOnce.reset(); nfkc_cfInitOnce.reset(); return TRUE; }
U_CDECL_BEGIN static UBool U_CALLCONV uprv_normalizer2_cleanup() { delete noopSingleton; noopSingleton = NULL; noopInitOnce.reset(); #if NORM2_HARDCODE_NFC_DATA delete nfcSingleton; nfcSingleton = NULL; nfcInitOnce.reset(); #endif return TRUE; }
/** * Release all static memory held by collator. */ U_CDECL_BEGIN static UBool U_CALLCONV collator_cleanup(void) { #if !UCONFIG_NO_SERVICE if (gService) { delete gService; gService = NULL; } gServiceInitOnce.reset(); #endif if (availableLocaleList) { delete []availableLocaleList; availableLocaleList = NULL; } availableLocaleListCount = 0; gAvailableLocaleListInitOnce.reset(); return TRUE; }
static UBool U_CALLCONV numfmt_cleanup(void) { #if !UCONFIG_NO_SERVICE gServiceInitOnce.reset(); if (gService) { delete gService; gService = NULL; } #endif gNSCacheInitOnce.reset(); if (NumberingSystem_cache) { // delete NumberingSystem_cache; uhash_close(NumberingSystem_cache); NumberingSystem_cache = NULL; } return TRUE; }
U_CDECL_BEGIN static UBool U_CALLCONV unifiedcache_cleanup() { gCacheInitOnce.reset(); if (gCache) { delete gCache; gCache = NULL; } return TRUE; }
//------------------------------------------------------------------------------ // // decfmt_cleanup Memory cleanup function, free/delete all // cached memory. Called by ICU's u_cleanup() function. // //------------------------------------------------------------------------------ U_CDECL_BEGIN static UBool U_CALLCONV decimfmt_cleanup(void) { delete gStaticSets; gStaticSets = NULL; gStaticSetsInitOnce.reset(); return TRUE; }
U_CDECL_BEGIN static UBool calendar_dangi_cleanup(void) { if (gDangiCalendarZoneAstroCalc) { delete gDangiCalendarZoneAstroCalc; gDangiCalendarZoneAstroCalc = NULL; } gDangiCalendarInitOnce.reset(); return TRUE; }
static UBool U_CALLCONV uprv_loaded_normalizer2_cleanup() { #if !NORM2_HARDCODE_NFC_DATA delete nfcSingleton; nfcSingleton = NULL; nfcInitOnce.reset(); #endif delete nfkcSingleton; nfkcSingleton = NULL; nfkcInitOnce.reset(); delete nfkc_cfSingleton; nfkc_cfSingleton = NULL; nfkc_cfInitOnce.reset(); uhash_close(cache); cache=NULL; return TRUE; }
static UBool U_CALLCONV usprep_cleanup(void){ if (SHARED_DATA_HASHTABLE != NULL) { usprep_internal_flushCache(TRUE); if (SHARED_DATA_HASHTABLE != NULL && uhash_count(SHARED_DATA_HASHTABLE) == 0) { uhash_close(SHARED_DATA_HASHTABLE); SHARED_DATA_HASHTABLE = NULL; } } gSharedDataInitOnce.reset(); return (SHARED_DATA_HASHTABLE == NULL); }
U_CDECL_BEGIN static UBool U_CALLCONV gender_cleanup(void) { if (gGenderInfoCache != NULL) { uhash_close(gGenderInfoCache); gGenderInfoCache = NULL; delete [] gObjs; } gGenderInitOnce.reset(); return TRUE; }
static UBool U_CALLCONV ucnv_io_cleanup(void) { if (gAliasData) { udata_close(gAliasData); gAliasData = NULL; } gAliasDataInitOnce.reset(); uprv_memset(&gMainTable, 0, sizeof(gMainTable)); return TRUE; /* Everything was cleaned up */ }
/** * Cleanup function for UnicodeSet */ static UBool U_CALLCONV uset_cleanup(void) { for(int32_t i = UPROPS_SRC_NONE; i < UPROPS_SRC_COUNT; ++i) { Inclusion &in = gInclusions[i]; delete in.fSet; in.fSet = NULL; in.fInitOnce.reset(); } delete uni32Singleton; uni32Singleton = NULL; uni32InitOnce.reset(); return TRUE; }
U_CDECL_BEGIN /** * Cleanup callback func */ static UBool U_CALLCONV zoneMeta_cleanup(void) { if (gCanonicalIDCache != NULL) { uhash_close(gCanonicalIDCache); gCanonicalIDCache = NULL; } gCanonicalIDCacheInitOnce.reset(); if (gOlsonToMeta != NULL) { uhash_close(gOlsonToMeta); gOlsonToMeta = NULL; } gOlsonToMetaInitOnce.reset(); if (gMetaZoneIDTable != NULL) { uhash_close(gMetaZoneIDTable); gMetaZoneIDTable = NULL; } // delete after closing gMetaZoneIDTable, because it holds // value objects held by the hashtable delete gMetaZoneIDs; gMetaZoneIDs = NULL; gMetaZoneIDsInitOnce.reset(); delete gSingleZoneCountries; gSingleZoneCountries = NULL; delete gMultiZonesCountries; gMultiZonesCountries = NULL; gCountryInfoVectorsInitOnce.reset(); return TRUE; }
U_CDECL_BEGIN static UBool calendar_chinese_cleanup(void) { if (gChineseCalendarAstro) { delete gChineseCalendarAstro; gChineseCalendarAstro = NULL; } if (gChineseCalendarWinterSolsticeCache) { delete gChineseCalendarWinterSolsticeCache; gChineseCalendarWinterSolsticeCache = NULL; } if (gChineseCalendarNewYearCache) { delete gChineseCalendarNewYearCache; gChineseCalendarNewYearCache = NULL; } if (gChineseCalendarZoneAstroCalc) { delete gChineseCalendarZoneAstroCalc; gChineseCalendarZoneAstroCalc = NULL; } gChineseCalendarZoneAstroCalcInitOnce.reset(); return TRUE; }
U_CDECL_BEGIN static UBool U_CALLCONV uloc_key_type_cleanup(void) { if (gLocExtKeyMap != NULL) { uhash_close(gLocExtKeyMap); gLocExtKeyMap = NULL; } delete gLocExtKeyDataEntries; gLocExtKeyDataEntries = NULL; delete gLocExtTypeEntries; gLocExtTypeEntries = NULL; delete gKeyTypeStringPool; gKeyTypeStringPool = NULL; gLocExtKeyMapInitOnce.reset(); return TRUE; }