blob: 3fdec6db0d56862abac7492686bdd535fa96aba5 [file] [log] [blame]
Jean-Baptiste Querub13da9d2009-07-17 17:53:22 -07001/*
2******************************************************************************
Fredrik Roubert8de051c2016-03-10 13:13:27 +01003* Copyright (C) 2001-2016, International Business Machines
ccorneliusfceb3982014-04-16 12:27:14 -07004* Corporation and others. All Rights Reserved.
Jean-Baptiste Querub13da9d2009-07-17 17:53:22 -07005******************************************************************************
Fredrik Roubert8de051c2016-03-10 13:13:27 +01006* file name: ucln_in.h
Jean-Baptiste Querub13da9d2009-07-17 17:53:22 -07007* encoding: US-ASCII
8* tab size: 8 (not used)
9* indentation:4
10*
11* created on: 2001July05
12* created by: George Rhoten
13*/
14
ccornelius59d709d2014-02-20 10:29:46 -080015#ifndef __UCLN_IN_H__
16#define __UCLN_IN_H__
Jean-Baptiste Querub13da9d2009-07-17 17:53:22 -070017
18#include "unicode/utypes.h"
19#include "ucln.h"
20
21/*
22Please keep the order of enums declared in same order
Claire Ho85bf2e22009-11-24 14:23:02 -080023as the functions are suppose to be called.
24It's usually best to have child dependencies called first. */
Jean-Baptiste Querub13da9d2009-07-17 17:53:22 -070025typedef enum ECleanupI18NType {
26 UCLN_I18N_START = -1,
Craig Cornelius83933352013-06-14 14:20:29 -070027 UCLN_I18N_IDENTIFIER_INFO,
28 UCLN_I18N_SPOOF,
Jean-Baptiste Querub13da9d2009-07-17 17:53:22 -070029 UCLN_I18N_TRANSLITERATOR,
30 UCLN_I18N_REGEX,
31 UCLN_I18N_ISLAMIC_CALENDAR,
Claire Ho85bf2e22009-11-24 14:23:02 -080032 UCLN_I18N_CHINESE_CALENDAR,
Jean-Baptiste Querub13da9d2009-07-17 17:53:22 -070033 UCLN_I18N_HEBREW_CALENDAR,
34 UCLN_I18N_ASTRO_CALENDAR,
Craig Cornelius83933352013-06-14 14:20:29 -070035 UCLN_I18N_DANGI_CALENDAR,
Jean-Baptiste Querub13da9d2009-07-17 17:53:22 -070036 UCLN_I18N_CALENDAR,
Craig Cornelius83933352013-06-14 14:20:29 -070037 UCLN_I18N_TIMEZONEFORMAT,
ccorneliusf9878a22014-11-20 18:09:39 -080038 UCLN_I18N_TZDBTIMEZONENAMES,
Craig Cornelius103e9ff2012-10-09 17:03:29 -070039 UCLN_I18N_TIMEZONEGENERICNAMES,
clairehob26ce3a2012-01-10 17:54:41 -080040 UCLN_I18N_TIMEZONENAMES,
Claire Ho85bf2e22009-11-24 14:23:02 -080041 UCLN_I18N_ZONEMETA,
Jean-Baptiste Querub13da9d2009-07-17 17:53:22 -070042 UCLN_I18N_TIMEZONE,
clairehob26ce3a2012-01-10 17:54:41 -080043 UCLN_I18N_DECFMT,
Claire Ho85bf2e22009-11-24 14:23:02 -080044 UCLN_I18N_NUMFMT,
Fredrik Roubert8de051c2016-03-10 13:13:27 +010045 UCLN_I18N_ALLOWED_HOUR_FORMATS,
46 UCLN_I18N_DAYPERIODRULES,
clairehob26ce3a2012-01-10 17:54:41 -080047 UCLN_I18N_SMPDTFMT,
Jean-Baptiste Querub13da9d2009-07-17 17:53:22 -070048 UCLN_I18N_USEARCH,
49 UCLN_I18N_COLLATOR,
Claire Ho85bf2e22009-11-24 14:23:02 -080050 UCLN_I18N_UCOL_RES,
Jean-Baptiste Querub13da9d2009-07-17 17:53:22 -070051 UCLN_I18N_CSDET,
ccorneliusfceb3982014-04-16 12:27:14 -070052 UCLN_I18N_COLLATION_ROOT,
Craig Cornelius54dcd9b2013-02-15 14:03:14 -080053 UCLN_I18N_GENDERINFO,
Craig Cornelius83933352013-06-14 14:20:29 -070054 UCLN_I18N_CDFINFO,
55 UCLN_I18N_REGION,
Jean-Baptiste Querub13da9d2009-07-17 17:53:22 -070056 UCLN_I18N_COUNT /* This must be last */
57} ECleanupI18NType;
58
59/* Main library cleanup registration function. */
60/* See common/ucln.h for details on adding a cleanup function. */
ccorneliusf9878a22014-11-20 18:09:39 -080061/* Note: the global mutex must not be held when calling this function. */
Jean-Baptiste Querub13da9d2009-07-17 17:53:22 -070062U_CFUNC void U_EXPORT2 ucln_i18n_registerCleanup(ECleanupI18NType type,
63 cleanupFunc *func);
64
Jean-Baptiste Querub13da9d2009-07-17 17:53:22 -070065#endif