]>
git.saurik.com Git - apple/icu.git/blob - icuSources/i18n/ucln_in.c
2 ******************************************************************************
4 * Copyright (C) 2001-2004, International Business Machines *
5 * Corporation and others. All Rights Reserved. *
7 ******************************************************************************
10 * tab size: 8 (not used)
13 * created on: 2001July05
14 * created by: George Rhoten
21 /* Leave this copyright notice here! It needs to go somewhere in this library. */
22 static const char copyright
[] = U_COPYRIGHT_STRING
;
24 static cleanupFunc
*gCleanupFunctions
[UCLN_I18N_COUNT
];
26 static UBool
i18n_cleanup(void)
28 ECleanupI18NType libType
;
30 for (libType
= UCLN_I18N_START
+1; libType
<UCLN_I18N_COUNT
; libType
++) {
31 if (gCleanupFunctions
[libType
])
33 gCleanupFunctions
[libType
]();
34 gCleanupFunctions
[libType
] = NULL
;
40 void ucln_i18n_registerCleanup(ECleanupI18NType type
,
43 U_ASSERT(UCLN_I18N_START
< type
&& type
< UCLN_I18N_COUNT
);
44 ucln_registerCleanup(UCLN_I18N
, i18n_cleanup
);
45 if (UCLN_I18N_START
< type
&& type
< UCLN_I18N_COUNT
)
47 gCleanupFunctions
[type
] = func
;