ICU 52.1
52.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
i18n
unicode
uformattable.h
Go to the documentation of this file.
1
/*
2
********************************************************************************
3
* Copyright (C) 2013, International Business Machines Corporation and others.
4
* All Rights Reserved.
5
********************************************************************************
6
*
7
* File UFORMATTABLE.H
8
*
9
* Modification History:
10
*
11
* Date Name Description
12
* 2013 Jun 7 srl New
13
********************************************************************************
14
*/
15
28
#ifndef UFORMATTABLE_H
29
#define UFORMATTABLE_H
30
31
#include "
unicode/utypes.h
"
32
33
#if !UCONFIG_NO_FORMATTING
34
35
#ifndef U_HIDE_DRAFT_API
36
37
#include "
unicode/localpointer.h
"
38
46
typedef
enum
UFormattableType
{
47
UFMT_DATE
= 0,
48
UFMT_DOUBLE
,
49
UFMT_LONG
,
50
UFMT_STRING
,
51
UFMT_ARRAY
,
52
UFMT_INT64
,
53
UFMT_OBJECT
,
54
UFMT_COUNT
55
}
UFormattableType
;
56
57
64
typedef
void
*
UFormattable
;
65
76
U_DRAFT
UFormattable
* U_EXPORT2
77
ufmt_open
(
UErrorCode
* status);
78
85
U_DRAFT
void
U_EXPORT2
86
ufmt_close
(
UFormattable
* fmt);
87
88
#if U_SHOW_CPLUSPLUS_API
89
90
U_NAMESPACE_BEGIN
91
101
U_DEFINE_LOCAL_OPEN_POINTER
(
LocalUFormattablePointer
,
UFormattable
,
ufmt_close
);
102
103
U_NAMESPACE_END
104
105
#endif
106
117
U_DRAFT
UFormattableType
U_EXPORT2
118
ufmt_getType
(
const
UFormattable
* fmt,
UErrorCode
*status);
119
128
U_DRAFT
UBool
U_EXPORT2
129
ufmt_isNumeric
(
const
UFormattable
* fmt);
130
141
U_DRAFT
UDate
U_EXPORT2
142
ufmt_getDate
(
const
UFormattable
* fmt,
UErrorCode
*status);
143
159
U_DRAFT
double
U_EXPORT2
160
ufmt_getDouble
(
UFormattable
* fmt,
UErrorCode
*status);
161
180
U_DRAFT
int32_t U_EXPORT2
181
ufmt_getLong
(
UFormattable
* fmt,
UErrorCode
*status);
182
183
201
U_DRAFT
int64_t U_EXPORT2
202
ufmt_getInt64
(
UFormattable
* fmt,
UErrorCode
*status);
203
214
U_DRAFT
const
void
*U_EXPORT2
215
ufmt_getObject
(
const
UFormattable
* fmt,
UErrorCode
*status);
216
229
U_DRAFT
const
UChar
* U_EXPORT2
230
ufmt_getUChars
(
UFormattable
* fmt, int32_t *len,
UErrorCode
*status);
231
240
U_DRAFT
int32_t U_EXPORT2
241
ufmt_getArrayLength
(
const
UFormattable
* fmt,
UErrorCode
*status);
242
252
U_DRAFT
UFormattable
* U_EXPORT2
253
ufmt_getArrayItemByIndex
(
UFormattable
* fmt, int32_t n,
UErrorCode
*status);
254
277
U_DRAFT
const
char
* U_EXPORT2
278
ufmt_getDecNumChars
(
UFormattable
*fmt, int32_t *len,
UErrorCode
*status);
279
#endif
/* U_HIDE_DRAFT_API */
280
281
#endif
282
283
#endif
Generated on Fri Oct 4 2013 14:10:21 for ICU 52.1 by
1.8.1.2