ICU 56.1
56.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
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-2015, 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
24
enum
UCurrencyUsage
{
31
UCURR_USAGE_STANDARD
=0,
37
UCURR_USAGE_CASH
=1,
42
UCURR_USAGE_COUNT
=2
43
};
44
typedef
enum
UCurrencyUsage
UCurrencyUsage
;
45
78
U_STABLE
int32_t U_EXPORT2
79
ucurr_forLocale
(
const
char
* locale,
80
UChar
* buff,
81
int32_t buffCapacity,
82
UErrorCode
* ec);
83
90
typedef
enum
UCurrNameStyle
{
96
UCURR_SYMBOL_NAME
,
97
103
UCURR_LONG_NAME
104
}
UCurrNameStyle
;
105
106
#if !UCONFIG_NO_SERVICE
107
110
typedef
const
void
*
UCurrRegistryKey
;
111
123
U_STABLE
UCurrRegistryKey
U_EXPORT2
124
ucurr_register
(
const
UChar
* isoCode,
125
const
char
* locale,
126
UErrorCode
* status);
138
U_STABLE
UBool
U_EXPORT2
139
ucurr_unregister
(
UCurrRegistryKey
key,
UErrorCode
* status);
140
#endif
/* UCONFIG_NO_SERVICE */
141
159
U_STABLE
const
UChar
* U_EXPORT2
160
ucurr_getName
(
const
UChar
* currency,
161
const
char
* locale,
162
UCurrNameStyle
nameStyle,
163
UBool
* isChoiceFormat,
164
int32_t* len,
165
UErrorCode
* ec);
166
183
U_STABLE
const
UChar
* U_EXPORT2
184
ucurr_getPluralName
(
const
UChar
* currency,
185
const
char
* locale,
186
UBool
* isChoiceFormat,
187
const
char
* pluralCount,
188
int32_t* len,
189
UErrorCode
* ec);
190
201
U_STABLE
int32_t U_EXPORT2
202
ucurr_getDefaultFractionDigits
(
const
UChar
* currency,
203
UErrorCode
* ec);
204
215
U_STABLE
int32_t U_EXPORT2
216
ucurr_getDefaultFractionDigitsForUsage
(
const
UChar
* currency,
217
const
UCurrencyUsage
usage,
218
UErrorCode
* ec);
219
230
U_STABLE
double
U_EXPORT2
231
ucurr_getRoundingIncrement
(
const
UChar
* currency,
232
UErrorCode
* ec);
233
244
U_STABLE
double
U_EXPORT2
245
ucurr_getRoundingIncrementForUsage
(
const
UChar
* currency,
246
const
UCurrencyUsage
usage,
247
UErrorCode
* ec);
248
255
typedef
enum
UCurrCurrencyType
{
260
UCURR_ALL
=
INT32_MAX
,
269
UCURR_COMMON
= 1,
277
UCURR_UNCOMMON
= 2,
283
UCURR_DEPRECATED
= 4,
289
UCURR_NON_DEPRECATED
= 8
290
}
UCurrCurrencyType
;
291
301
U_STABLE
UEnumeration
* U_EXPORT2
302
ucurr_openISOCurrencies
(uint32_t currType,
UErrorCode
*pErrorCode);
303
330
U_STABLE
UBool
U_EXPORT2
331
ucurr_isAvailable
(
const
UChar
* isoCode,
332
UDate
from,
333
UDate
to,
334
UErrorCode
* errorCode);
335
350
U_STABLE
int32_t U_EXPORT2
351
ucurr_countCurrencies
(
const
char
* locale,
352
UDate
date,
353
UErrorCode
* ec);
354
374
U_STABLE
int32_t U_EXPORT2
375
ucurr_forLocaleAndDate
(
const
char
* locale,
376
UDate
date,
377
int32_t index,
378
UChar
* buff,
379
int32_t buffCapacity,
380
UErrorCode
* ec);
381
398
U_STABLE
UEnumeration
* U_EXPORT2
399
ucurr_getKeywordValuesForLocale
(
const
char
* key,
400
const
char
* locale,
401
UBool
commonlyUsed,
402
UErrorCode
* status);
403
413
U_STABLE
int32_t U_EXPORT2
414
ucurr_getNumericCode
(
const
UChar
* currency);
415
416
#endif
/* #if !UCONFIG_NO_FORMATTING */
417
418
#endif
Generated on Wed Oct 7 2015 21:17:57 for ICU 56.1 by
1.8.1.2