ICU 4.8.1.1  4.8.1.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
udateintervalformat.h
1 /*
2 *****************************************************************************************
3 * Copyright (C) 2010-2011, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 *****************************************************************************************
6 */
7 
8 #ifndef UDATEINTERVALFORMAT_H
9 #define UDATEINTERVALFORMAT_H
10 
11 #include "unicode/utypes.h"
12 
13 #if !UCONFIG_NO_FORMATTING
14 
15 #include "unicode/umisc.h"
16 #include "unicode/localpointer.h"
17 
76 struct UDateIntervalFormat;
77 typedef struct UDateIntervalFormat UDateIntervalFormat;
103 U_DRAFT UDateIntervalFormat* U_EXPORT2
104 udtitvfmt_open(const char* locale,
105  const UChar* skeleton,
106  int32_t skeletonLength,
107  const UChar* tzID,
108  int32_t tzIDLength,
109  UErrorCode* status);
110 
117 U_DRAFT void U_EXPORT2
118 udtitvfmt_close(UDateIntervalFormat *formatter);
119 
120 
121 #if U_SHOW_CPLUSPLUS_API
122 
124 
134 U_DEFINE_LOCAL_OPEN_POINTER(LocalUDateIntervalFormatPointer, UDateIntervalFormat, udtitvfmt_close);
135 
137 
138 #endif
139 
140 
167 U_DRAFT int32_t U_EXPORT2
168 udtitvfmt_format(const UDateIntervalFormat* formatter,
169  UDate fromDate,
170  UDate toDate,
171  UChar* result,
172  int32_t resultCapacity,
173  UFieldPosition* position,
174  UErrorCode* status);
175 
176 #endif /* #if !UCONFIG_NO_FORMATTING */
177 
178 #endif
double UDate
Date and Time data type.
Definition: utypes.h:314
C API:misc definitions.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
Definition: uversion.h:131
A struct representing a range of text containing a specific field.
Definition: umisc.h:32
C++ API: "Smart pointers" for use with and in ICU4C C++ code.
#define U_EXPORT2
Definition: platform.h:314
uint16_t UChar
Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned.
Definition: umachine.h:325
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
Definition: uversion.h:132
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
Definition: utypes.h:639
Basic definitions for ICU, for both C and C++ APIs.
#define U_DRAFT
This is used to declare a function as a draft public ICU C API.
Definition: umachine.h:139