00001 /* 00002 ******************************************************************************* 00003 * 00004 * Copyright (C) 1998-1999, International Business Machines 00005 * Corporation and others. All Rights Reserved. 00006 * 00007 ******************************************************************************* 00008 * 00009 * File locbund.h 00010 * 00011 * Modification History: 00012 * 00013 * Date Name Description 00014 * 10/16/98 stephen Creation. 00015 * 02/25/99 stephen Modified for new C API. 00016 ******************************************************************************* 00017 */ 00018 00019 #ifndef LOCBUND_H 00020 #define LOCBUND_H 00021 00022 #include "unicode/utypes.h" 00023 00024 #include "unicode/unum.h" 00025 #include "unicode/udat.h" 00026 00027 struct ULocaleBundle { 00028 char *fLocale; 00029 00030 UNumberFormat *fNumberFormat; 00031 UNumberFormat *fPercentFormat; 00032 UNumberFormat *fCurrencyFormat; 00033 UNumberFormat *fScientificFormat; 00034 UNumberFormat *fSpelloutFormat; 00035 00036 UDateFormat *fDateFormat; 00037 UDateFormat *fTimeFormat; 00038 }; 00039 typedef struct ULocaleBundle ULocaleBundle; 00040 00041 00047 ULocaleBundle* 00048 u_locbund_new(const char *loc); 00049 00055 ULocaleBundle* 00056 u_locbund_clone(const ULocaleBundle *bundle); 00057 00062 void 00063 u_locbund_delete(ULocaleBundle *bundle); 00064 00070 UNumberFormat* 00071 u_locbund_getNumberFormat(ULocaleBundle *bundle); 00072 00078 UNumberFormat* 00079 u_locbund_getPercentFormat(ULocaleBundle *bundle); 00080 00086 UNumberFormat* 00087 u_locbund_getCurrencyFormat(ULocaleBundle *bundle); 00088 00094 UNumberFormat* 00095 u_locbund_getScientificFormat(ULocaleBundle *bundle); 00096 00102 UNumberFormat* 00103 u_locbund_getSpelloutFormat(ULocaleBundle *bundle); 00104 00110 UDateFormat* 00111 u_locbund_getDateFormat(ULocaleBundle *bundle); 00112 00118 UDateFormat* 00119 u_locbund_getTimeFormat(ULocaleBundle *bundle); 00120 00121 #endif 00122 00123