Jean-Baptiste Queru | b13da9d | 2009-07-17 17:53:22 -0700 | [diff] [blame] | 1 | /* |
| 2 | ****************************************************************************** |
Fredrik Roubert | 8de051c | 2016-03-10 13:13:27 +0100 | [diff] [blame] | 3 | * Copyright (C) 2001-2016, International Business Machines |
ccornelius | fceb398 | 2014-04-16 12:27:14 -0700 | [diff] [blame] | 4 | * Corporation and others. All Rights Reserved. |
Jean-Baptiste Queru | b13da9d | 2009-07-17 17:53:22 -0700 | [diff] [blame] | 5 | ****************************************************************************** |
Fredrik Roubert | 8de051c | 2016-03-10 13:13:27 +0100 | [diff] [blame] | 6 | * file name: ucln_in.h |
Jean-Baptiste Queru | b13da9d | 2009-07-17 17:53:22 -0700 | [diff] [blame] | 7 | * encoding: US-ASCII |
| 8 | * tab size: 8 (not used) |
| 9 | * indentation:4 |
| 10 | * |
| 11 | * created on: 2001July05 |
| 12 | * created by: George Rhoten |
| 13 | */ |
| 14 | |
ccornelius | 59d709d | 2014-02-20 10:29:46 -0800 | [diff] [blame] | 15 | #ifndef __UCLN_IN_H__ |
| 16 | #define __UCLN_IN_H__ |
Jean-Baptiste Queru | b13da9d | 2009-07-17 17:53:22 -0700 | [diff] [blame] | 17 | |
| 18 | #include "unicode/utypes.h" |
| 19 | #include "ucln.h" |
| 20 | |
| 21 | /* |
| 22 | Please keep the order of enums declared in same order |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 23 | as the functions are suppose to be called. |
| 24 | It's usually best to have child dependencies called first. */ |
Jean-Baptiste Queru | b13da9d | 2009-07-17 17:53:22 -0700 | [diff] [blame] | 25 | typedef enum ECleanupI18NType { |
| 26 | UCLN_I18N_START = -1, |
Craig Cornelius | 8393335 | 2013-06-14 14:20:29 -0700 | [diff] [blame] | 27 | UCLN_I18N_IDENTIFIER_INFO, |
| 28 | UCLN_I18N_SPOOF, |
Jean-Baptiste Queru | b13da9d | 2009-07-17 17:53:22 -0700 | [diff] [blame] | 29 | UCLN_I18N_TRANSLITERATOR, |
| 30 | UCLN_I18N_REGEX, |
| 31 | UCLN_I18N_ISLAMIC_CALENDAR, |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 32 | UCLN_I18N_CHINESE_CALENDAR, |
Jean-Baptiste Queru | b13da9d | 2009-07-17 17:53:22 -0700 | [diff] [blame] | 33 | UCLN_I18N_HEBREW_CALENDAR, |
| 34 | UCLN_I18N_ASTRO_CALENDAR, |
Craig Cornelius | 8393335 | 2013-06-14 14:20:29 -0700 | [diff] [blame] | 35 | UCLN_I18N_DANGI_CALENDAR, |
Jean-Baptiste Queru | b13da9d | 2009-07-17 17:53:22 -0700 | [diff] [blame] | 36 | UCLN_I18N_CALENDAR, |
Craig Cornelius | 8393335 | 2013-06-14 14:20:29 -0700 | [diff] [blame] | 37 | UCLN_I18N_TIMEZONEFORMAT, |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 38 | UCLN_I18N_TZDBTIMEZONENAMES, |
Craig Cornelius | 103e9ff | 2012-10-09 17:03:29 -0700 | [diff] [blame] | 39 | UCLN_I18N_TIMEZONEGENERICNAMES, |
claireho | b26ce3a | 2012-01-10 17:54:41 -0800 | [diff] [blame] | 40 | UCLN_I18N_TIMEZONENAMES, |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 41 | UCLN_I18N_ZONEMETA, |
Jean-Baptiste Queru | b13da9d | 2009-07-17 17:53:22 -0700 | [diff] [blame] | 42 | UCLN_I18N_TIMEZONE, |
claireho | b26ce3a | 2012-01-10 17:54:41 -0800 | [diff] [blame] | 43 | UCLN_I18N_DECFMT, |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 44 | UCLN_I18N_NUMFMT, |
Fredrik Roubert | 8de051c | 2016-03-10 13:13:27 +0100 | [diff] [blame] | 45 | UCLN_I18N_ALLOWED_HOUR_FORMATS, |
| 46 | UCLN_I18N_DAYPERIODRULES, |
claireho | b26ce3a | 2012-01-10 17:54:41 -0800 | [diff] [blame] | 47 | UCLN_I18N_SMPDTFMT, |
Jean-Baptiste Queru | b13da9d | 2009-07-17 17:53:22 -0700 | [diff] [blame] | 48 | UCLN_I18N_USEARCH, |
| 49 | UCLN_I18N_COLLATOR, |
Claire Ho | 85bf2e2 | 2009-11-24 14:23:02 -0800 | [diff] [blame] | 50 | UCLN_I18N_UCOL_RES, |
Jean-Baptiste Queru | b13da9d | 2009-07-17 17:53:22 -0700 | [diff] [blame] | 51 | UCLN_I18N_CSDET, |
ccornelius | fceb398 | 2014-04-16 12:27:14 -0700 | [diff] [blame] | 52 | UCLN_I18N_COLLATION_ROOT, |
Craig Cornelius | 54dcd9b | 2013-02-15 14:03:14 -0800 | [diff] [blame] | 53 | UCLN_I18N_GENDERINFO, |
Craig Cornelius | 8393335 | 2013-06-14 14:20:29 -0700 | [diff] [blame] | 54 | UCLN_I18N_CDFINFO, |
| 55 | UCLN_I18N_REGION, |
Jean-Baptiste Queru | b13da9d | 2009-07-17 17:53:22 -0700 | [diff] [blame] | 56 | 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. */ |
ccornelius | f9878a2 | 2014-11-20 18:09:39 -0800 | [diff] [blame] | 61 | /* Note: the global mutex must not be held when calling this function. */ |
Jean-Baptiste Queru | b13da9d | 2009-07-17 17:53:22 -0700 | [diff] [blame] | 62 | U_CFUNC void U_EXPORT2 ucln_i18n_registerCleanup(ECleanupI18NType type, |
| 63 | cleanupFunc *func); |
| 64 | |
Jean-Baptiste Queru | b13da9d | 2009-07-17 17:53:22 -0700 | [diff] [blame] | 65 | #endif |