ICU 54.1 54.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
unumsys.h
Go to the documentation of this file.
1 /*
2 *****************************************************************************************
3 * Copyright (C) 2013-2014, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 *****************************************************************************************
6 */
7
8 #ifndef UNUMSYS_H
9 #define UNUMSYS_H
10
11 #include "unicode/utypes.h"
12
13 #if !UCONFIG_NO_FORMATTING
14
15 #include "unicode/uenum.h"
16 #include "unicode/localpointer.h"
17
41 struct UNumberingSystem;
42 typedef struct UNumberingSystem UNumberingSystem;
55 U_STABLE UNumberingSystem * U_EXPORT2
56 unumsys_open(const char *locale, UErrorCode *status);
57
76 U_STABLE UNumberingSystem * U_EXPORT2
77 unumsys_openByName(const char *name, UErrorCode *status);
78
84 U_STABLE void U_EXPORT2
85 unumsys_close(UNumberingSystem *unumsys);
86
87 #if U_SHOW_CPLUSPLUS_API
88 U_NAMESPACE_BEGIN
89
98 U_DEFINE_LOCAL_OPEN_POINTER(LocalUNumberingSystemPointer, UNumberingSystem, unumsys_close);
99
100 U_NAMESPACE_END
101 #endif
102
111 U_STABLE UEnumeration * U_EXPORT2
112 unumsys_openAvailableNames(UErrorCode *status);
113
123 U_STABLE const char * U_EXPORT2
124 unumsys_getName(const UNumberingSystem *unumsys);
125
134 U_STABLE UBool U_EXPORT2
135 unumsys_isAlgorithmic(const UNumberingSystem *unumsys);
136
145 U_STABLE int32_t U_EXPORT2
146 unumsys_getRadix(const UNumberingSystem *unumsys);
147
164 U_STABLE int32_t U_EXPORT2
165 unumsys_getDescription(const UNumberingSystem *unumsys, UChar *result,
166 int32_t resultLength, UErrorCode *status);
167
168 #endif /* #if !UCONFIG_NO_FORMATTING */
169
170 #endif