ICU 57.1
57.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
common
unicode
ucurr.h
Go to the documentation of this file.
1
/*
2
**********************************************************************
3
* Copyright (c) 2002-2016, 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
33
#if !UCONFIG_NO_FORMATTING
34
39
enum
UCurrencyUsage
{
46
UCURR_USAGE_STANDARD
=0,
52
UCURR_USAGE_CASH
=1,
57
UCURR_USAGE_COUNT
=2
58
};
59
typedef
enum
UCurrencyUsage
UCurrencyUsage
;
60
76
U_STABLE
int32_t U_EXPORT2
77
ucurr_forLocale
(
const
char
* locale,
78
UChar
* buff,
79
int32_t buffCapacity,
80
UErrorCode
* ec);
81
88
typedef
enum
UCurrNameStyle
{
94
UCURR_SYMBOL_NAME
,
95
101
UCURR_LONG_NAME
102
}
UCurrNameStyle
;
103
104
#if !UCONFIG_NO_SERVICE
105
108
typedef
const
void
*
UCurrRegistryKey
;
109
121
U_STABLE
UCurrRegistryKey
U_EXPORT2
122
ucurr_register
(
const
UChar
* isoCode,
123
const
char
* locale,
124
UErrorCode
* status);
136
U_STABLE
UBool
U_EXPORT2
137
ucurr_unregister
(
UCurrRegistryKey
key,
UErrorCode
* status);
138
#endif
/* UCONFIG_NO_SERVICE */
139
157
U_STABLE
const
UChar
* U_EXPORT2
158
ucurr_getName
(
const
UChar
* currency,
159
const
char
* locale,
160
UCurrNameStyle
nameStyle,
161
UBool
* isChoiceFormat,
162
int32_t* len,
163
UErrorCode
* ec);
164
181
U_STABLE
const
UChar
* U_EXPORT2
182
ucurr_getPluralName
(
const
UChar
* currency,
183
const
char
* locale,
184
UBool
* isChoiceFormat,
185
const
char
* pluralCount,
186
int32_t* len,
187
UErrorCode
* ec);
188
199
U_STABLE
int32_t U_EXPORT2
200
ucurr_getDefaultFractionDigits
(
const
UChar
* currency,
201
UErrorCode
* ec);
202
213
U_STABLE
int32_t U_EXPORT2
214
ucurr_getDefaultFractionDigitsForUsage
(
const
UChar
* currency,
215
const
UCurrencyUsage
usage,
216
UErrorCode
* ec);
217
228
U_STABLE
double
U_EXPORT2
229
ucurr_getRoundingIncrement
(
const
UChar
* currency,
230
UErrorCode
* ec);
231
242
U_STABLE
double
U_EXPORT2
243
ucurr_getRoundingIncrementForUsage
(
const
UChar
* currency,
244
const
UCurrencyUsage
usage,
245
UErrorCode
* ec);
246
253
typedef
enum
UCurrCurrencyType
{
258
UCURR_ALL
=
INT32_MAX
,
267
UCURR_COMMON
= 1,
275
UCURR_UNCOMMON
= 2,
281
UCURR_DEPRECATED
= 4,
287
UCURR_NON_DEPRECATED
= 8
288
}
UCurrCurrencyType
;
289
299
U_STABLE
UEnumeration
* U_EXPORT2
300
ucurr_openISOCurrencies
(uint32_t currType,
UErrorCode
*pErrorCode);
301
328
U_STABLE
UBool
U_EXPORT2
329
ucurr_isAvailable
(
const
UChar
* isoCode,
330
UDate
from,
331
UDate
to,
332
UErrorCode
* errorCode);
333
348
U_STABLE
int32_t U_EXPORT2
349
ucurr_countCurrencies
(
const
char
* locale,
350
UDate
date,
351
UErrorCode
* ec);
352
372
U_STABLE
int32_t U_EXPORT2
373
ucurr_forLocaleAndDate
(
const
char
* locale,
374
UDate
date,
375
int32_t index,
376
UChar
* buff,
377
int32_t buffCapacity,
378
UErrorCode
* ec);
379
396
U_STABLE
UEnumeration
* U_EXPORT2
397
ucurr_getKeywordValuesForLocale
(
const
char
* key,
398
const
char
* locale,
399
UBool
commonlyUsed,
400
UErrorCode
* status);
401
411
U_STABLE
int32_t U_EXPORT2
412
ucurr_getNumericCode
(
const
UChar
* currency);
413
414
#endif
/* #if !UCONFIG_NO_FORMATTING */
415
416
#endif
Generated on Wed Mar 16 2016 23:45:45 for ICU 57.1 by
1.8.1.2