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
uformattable.h
Go to the documentation of this file.
1
/*
2
********************************************************************************
3
* Copyright (C) 2013-2014, 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
#include "
unicode/localpointer.h
"
36
44
typedef
enum
UFormattableType
{
45
UFMT_DATE
= 0,
46
UFMT_DOUBLE
,
47
UFMT_LONG
,
48
UFMT_STRING
,
49
UFMT_ARRAY
,
50
UFMT_INT64
,
51
UFMT_OBJECT
,
52
UFMT_COUNT
53
}
UFormattableType
;
54
55
62
typedef
void
*
UFormattable
;
63
74
U_STABLE
UFormattable
* U_EXPORT2
75
ufmt_open
(
UErrorCode
* status);
76
83
U_STABLE
void
U_EXPORT2
84
ufmt_close
(
UFormattable
* fmt);
85
86
#if U_SHOW_CPLUSPLUS_API
87
88
U_NAMESPACE_BEGIN
89
99
U_DEFINE_LOCAL_OPEN_POINTER
(
LocalUFormattablePointer
,
UFormattable
,
ufmt_close
);
100
101
U_NAMESPACE_END
102
103
#endif
104
115
U_STABLE
UFormattableType
U_EXPORT2
116
ufmt_getType
(
const
UFormattable
* fmt,
UErrorCode
*status);
117
126
U_STABLE
UBool
U_EXPORT2
127
ufmt_isNumeric
(
const
UFormattable
* fmt);
128
139
U_STABLE
UDate
U_EXPORT2
140
ufmt_getDate
(
const
UFormattable
* fmt,
UErrorCode
*status);
141
157
U_STABLE
double
U_EXPORT2
158
ufmt_getDouble
(
UFormattable
* fmt,
UErrorCode
*status);
159
178
U_STABLE
int32_t U_EXPORT2
179
ufmt_getLong
(
UFormattable
* fmt,
UErrorCode
*status);
180
181
199
U_STABLE
int64_t U_EXPORT2
200
ufmt_getInt64
(
UFormattable
* fmt,
UErrorCode
*status);
201
212
U_STABLE
const
void
*U_EXPORT2
213
ufmt_getObject
(
const
UFormattable
* fmt,
UErrorCode
*status);
214
227
U_STABLE
const
UChar
* U_EXPORT2
228
ufmt_getUChars
(
UFormattable
* fmt, int32_t *len,
UErrorCode
*status);
229
238
U_STABLE
int32_t U_EXPORT2
239
ufmt_getArrayLength
(
const
UFormattable
* fmt,
UErrorCode
*status);
240
250
U_STABLE
UFormattable
* U_EXPORT2
251
ufmt_getArrayItemByIndex
(
UFormattable
* fmt, int32_t n,
UErrorCode
*status);
252
275
U_STABLE
const
char
* U_EXPORT2
276
ufmt_getDecNumChars
(
UFormattable
*fmt, int32_t *len,
UErrorCode
*status);
277
278
#endif
279
280
#endif
Generated on Wed Oct 7 2015 21:17:57 for ICU 56.1 by
1.8.1.2