ICU 4.8.1.1
4.8.1.1
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
i18n
unicode
ucurr.h
Go to the documentation of this file.
1
/*
2
**********************************************************************
3
* Copyright (c) 2002-2011, International Business Machines
4
* Corporation and others. All Rights Reserved.
5
**********************************************************************
6
*/
7
#ifndef _UCURR_H_
8
#define _UCURR_H_
9
10
#include "
unicode/utypes.h
"
11
#include "
unicode/uenum.h
"
12
18
#if !UCONFIG_NO_FORMATTING
19
52
U_STABLE
int32_t
U_EXPORT2
53
ucurr_forLocale
(
const
char
* locale,
54
UChar
* buff,
55
int32_t buffCapacity,
56
UErrorCode
* ec);
57
64
typedef
enum
UCurrNameStyle
{
70
UCURR_SYMBOL_NAME
,
71
77
UCURR_LONG_NAME
78
}
UCurrNameStyle
;
79
80
#if !UCONFIG_NO_SERVICE
81
84
typedef
const
void
*
UCurrRegistryKey
;
85
97
U_STABLE
UCurrRegistryKey
U_EXPORT2
98
ucurr_register
(
const
UChar
* isoCode,
99
const
char
* locale,
100
UErrorCode
* status);
112
U_STABLE
UBool
U_EXPORT2
113
ucurr_unregister
(
UCurrRegistryKey
key,
UErrorCode
* status);
114
#endif
/* UCONFIG_NO_SERVICE */
115
133
U_STABLE
const
UChar
*
U_EXPORT2
134
ucurr_getName
(
const
UChar
* currency,
135
const
char
* locale,
136
UCurrNameStyle
nameStyle,
137
UBool
* isChoiceFormat,
138
int32_t* len,
139
UErrorCode
* ec);
140
157
U_STABLE
const
UChar
*
U_EXPORT2
158
ucurr_getPluralName
(
const
UChar
* currency,
159
const
char
* locale,
160
UBool
* isChoiceFormat,
161
const
char
* pluralCount,
162
int32_t* len,
163
UErrorCode
* ec);
164
174
U_STABLE
int32_t
U_EXPORT2
175
ucurr_getDefaultFractionDigits
(
const
UChar
* currency,
176
UErrorCode
* ec);
177
187
U_STABLE
double
U_EXPORT2
188
ucurr_getRoundingIncrement
(
const
UChar
* currency,
189
UErrorCode
* ec);
190
197
typedef
enum
UCurrCurrencyType
{
202
UCURR_ALL
=
INT32_MAX
,
211
UCURR_COMMON
= 1,
219
UCURR_UNCOMMON
= 2,
225
UCURR_DEPRECATED
= 4,
231
UCURR_NON_DEPRECATED
= 8
232
}
UCurrCurrencyType
;
233
243
U_STABLE
UEnumeration
*
U_EXPORT2
244
ucurr_openISOCurrencies
(uint32_t currType,
UErrorCode
*pErrorCode);
245
272
U_DRAFT
UBool
U_EXPORT2
273
ucurr_isAvailable
(
const
UChar
* isoCode,
274
UDate
from,
275
UDate
to,
276
UErrorCode
* errorCode);
277
278
293
U_STABLE
int32_t
U_EXPORT2
294
ucurr_countCurrencies
(
const
char
* locale,
295
UDate
date,
296
UErrorCode
* ec);
297
317
U_STABLE
int32_t
U_EXPORT2
318
ucurr_forLocaleAndDate
(
const
char
* locale,
319
UDate
date,
320
int32_t index,
321
UChar
* buff,
322
int32_t buffCapacity,
323
UErrorCode
* ec);
324
341
U_STABLE
UEnumeration
*
U_EXPORT2
342
ucurr_getKeywordValuesForLocale
(
const
char
* key,
343
const
char
* locale,
344
UBool
commonlyUsed,
345
UErrorCode
* status);
346
347
#endif
/* #if !UCONFIG_NO_FORMATTING */
348
349
#endif
Generated on Mon Mar 18 2013 18:01:49 for ICU 4.8.1.1 by
1.8.3.1