2001-08-11 00:29:58 +00:00
|
|
|
/*
|
|
|
|
******************************************************************************
|
|
|
|
* *
|
|
|
|
* Copyright (C) 2001-2001, International Business Machines *
|
|
|
|
* Corporation and others. All Rights Reserved. *
|
|
|
|
* *
|
|
|
|
******************************************************************************
|
|
|
|
* file name: ucln_cmn.c
|
|
|
|
* encoding: US-ASCII
|
|
|
|
* tab size: 8 (not used)
|
|
|
|
* indentation:4
|
|
|
|
*
|
|
|
|
* created on: 2001July05
|
|
|
|
* created by: George Rhoten
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "unicode/uclean.h"
|
|
|
|
#include "ucln_cmn.h"
|
|
|
|
#include "umutex.h"
|
2001-08-30 02:59:19 +00:00
|
|
|
#include "ucln.h"
|
|
|
|
|
|
|
|
static cleanupFunc *gCleanupFunctions[UCLN_COMMON] = {
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
U_CAPI void U_EXPORT2
|
|
|
|
ucln_registerCleanup(ECleanupLibraryType type,
|
|
|
|
cleanupFunc *func)
|
|
|
|
{
|
|
|
|
if (UCLN_START < type && type < UCLN_COMMON)
|
|
|
|
{
|
|
|
|
gCleanupFunctions[type] = func;
|
|
|
|
}
|
|
|
|
}
|
2001-08-11 00:29:58 +00:00
|
|
|
|
|
|
|
void u_cleanup(void)
|
|
|
|
{
|
2001-08-30 02:59:19 +00:00
|
|
|
ECleanupLibraryType libType = UCLN_START;
|
|
|
|
while (++libType < UCLN_COMMON)
|
|
|
|
{
|
|
|
|
if (gCleanupFunctions[libType])
|
|
|
|
{
|
|
|
|
gCleanupFunctions[libType]();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2001-08-31 02:14:47 +00:00
|
|
|
/*unorm_cleanup();*/
|
|
|
|
unames_cleanup();
|
|
|
|
uchar_cleanup();
|
2001-08-25 01:13:21 +00:00
|
|
|
uloc_cleanup();
|
|
|
|
ustring_cleanup();
|
|
|
|
ucnv_cleanup();
|
|
|
|
ucnv_io_cleanup();
|
|
|
|
ures_cleanup();
|
2001-08-17 00:18:49 +00:00
|
|
|
udata_cleanup();
|
2001-08-31 02:14:47 +00:00
|
|
|
putil_cleanup();
|
2001-08-17 00:18:49 +00:00
|
|
|
}
|
|
|
|
|