Home | History | Annotate | Download | only in i18n
      1 /*
      2 ******************************************************************************
      3 * Copyright (C) 2001-2014, International Business Machines
      4 *                Corporation and others. All Rights Reserved.
      5 ******************************************************************************
      6 *   file name:  ucln_cmn.h
      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 
     15 #ifndef __UCLN_IN_H__
     16 #define __UCLN_IN_H__
     17 
     18 #include "unicode/utypes.h"
     19 #include "ucln.h"
     20 
     21 /*
     22 Please keep the order of enums declared in same order
     23 as the functions are suppose to be called.
     24 It's usually best to have child dependencies called first. */
     25 typedef enum ECleanupI18NType {
     26     UCLN_I18N_START = -1,
     27     UCLN_I18N_IDENTIFIER_INFO,
     28     UCLN_I18N_SPOOF,
     29     UCLN_I18N_TRANSLITERATOR,
     30     UCLN_I18N_REGEX,
     31     UCLN_I18N_ISLAMIC_CALENDAR,
     32     UCLN_I18N_CHINESE_CALENDAR,
     33     UCLN_I18N_HEBREW_CALENDAR,
     34     UCLN_I18N_ASTRO_CALENDAR,
     35     UCLN_I18N_DANGI_CALENDAR,
     36     UCLN_I18N_CALENDAR,
     37     UCLN_I18N_TIMEZONEFORMAT,
     38     UCLN_I18N_TZDBTIMEZONENAMES,
     39     UCLN_I18N_TIMEZONEGENERICNAMES,
     40     UCLN_I18N_TIMEZONENAMES,
     41     UCLN_I18N_ZONEMETA,
     42     UCLN_I18N_TIMEZONE,
     43     UCLN_I18N_CURRENCY,
     44     UCLN_I18N_DECFMT,
     45     UCLN_I18N_NUMFMT,
     46     UCLN_I18N_SMPDTFMT,
     47     UCLN_I18N_USEARCH,
     48     UCLN_I18N_COLLATOR,
     49     UCLN_I18N_UCOL_RES,
     50     UCLN_I18N_CSDET,
     51     UCLN_I18N_COLLATION_ROOT,
     52     UCLN_I18N_GENDERINFO,
     53     UCLN_I18N_CDFINFO,
     54     UCLN_I18N_REGION,
     55     UCLN_I18N_COUNT /* This must be last */
     56 } ECleanupI18NType;
     57 
     58 /* Main library cleanup registration function. */
     59 /* See common/ucln.h for details on adding a cleanup function. */
     60 /* Note: the global mutex must not be held when calling this function. */
     61 U_CFUNC void U_EXPORT2 ucln_i18n_registerCleanup(ECleanupI18NType type,
     62                                                  cleanupFunc *func);
     63 
     64 #endif
     65