2 *******************************************************************************
4 * Copyright (C) 1998-2004, International Business Machines
5 * Corporation and others. All Rights Reserved.
7 *******************************************************************************
11 * Modification History:
13 * Date Name Description
14 * 10/16/98 stephen Creation.
15 * 02/25/99 stephen Modified for new C API.
16 *******************************************************************************
22 #include "unicode/utypes.h"
24 #if !UCONFIG_NO_FORMATTING
26 #include "unicode/unum.h"
28 #define ULOCALEBUNDLE_NUMBERFORMAT_COUNT ((int32_t)UNUM_SPELLOUT)
30 typedef struct ULocaleBundle
{
33 UNumberFormat
*fNumberFormat
[ULOCALEBUNDLE_NUMBERFORMAT_COUNT
];
38 * Initialize a ULocaleBundle, initializing all formatters to 0.
39 * @param result A ULocaleBundle to initialize.
40 * @param loc The locale of the ULocaleBundle.
41 * @return A pointer to a ULocaleBundle, or 0 if <TT>loc</TT> was invalid.
44 u_locbund_init(ULocaleBundle
*result
, const char *loc
);
47 * Create a new ULocaleBundle, initializing all formatters to 0.
48 * @param loc The locale of the ULocaleBundle.
49 * @return A pointer to a ULocaleBundle, or 0 if <TT>loc</TT> was invalid.
52 u_locbund_new(const char *loc);*/
55 * Create a deep copy of this ULocaleBundle;
56 * @param bundle The ULocaleBundle to clone.
57 * @return A new ULocaleBundle.
60 u_locbund_clone(const ULocaleBundle *bundle);*/
63 * Delete the specified ULocaleBundle, freeing all associated memory.
64 * @param bundle The ULocaleBundle to delete
67 u_locbund_close(ULocaleBundle
*bundle
);
70 * Get the NumberFormat used to format and parse numbers in a ULocaleBundle.
71 * @param bundle The ULocaleBundle to use
72 * @return A pointer to the NumberFormat used for number formatting and parsing.
75 u_locbund_getNumberFormat(ULocaleBundle
*bundle
, UNumberFormatStyle style
);
77 #endif /* #if !UCONFIG_NO_FORMATTING */