ICU 50.1.2  50.1.2
udateintervalformat.h
Go to the documentation of this file.
1 /*
2 *****************************************************************************************
3 * Copyright (C) 2010-2012, 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 
79 struct UDateIntervalFormat;
106 U_STABLE UDateIntervalFormat* U_EXPORT2
107 udtitvfmt_open(const char* locale,
108  const UChar* skeleton,
109  int32_t skeletonLength,
110  const UChar* tzID,
111  int32_t tzIDLength,
112  UErrorCode* status);
113 
120 U_STABLE void U_EXPORT2
122 
123 
124 #if U_SHOW_CPLUSPLUS_API
125 
127 
138 
140 
141 #endif
142 
143 
170 U_STABLE int32_t U_EXPORT2
171 udtitvfmt_format(const UDateIntervalFormat* formatter,
172  UDate fromDate,
173  UDate toDate,
174  UChar* result,
175  int32_t resultCapacity,
176  UFieldPosition* position,
177  UErrorCode* status);
178 
179 #endif /* #if !UCONFIG_NO_FORMATTING */
180 
181 #endif
double UDate
Date and Time data type.
Definition: utypes.h:201
C API:misc definitions.
int32_t udtitvfmt_format(const UDateIntervalFormat *formatter, UDate fromDate, UDate toDate, UChar *result, int32_t resultCapacity, UFieldPosition *position, UErrorCode *status)
Formats a date/time range using the conventions established for the UDateIntervalFormat object...
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
Definition: uversion.h:129
"Smart pointer" class, closes a UDateIntervalFormat via udtitvfmt_close().
#define U_DEFINE_LOCAL_OPEN_POINTER(LocalPointerClassName, Type, closeFunction)
"Smart pointer" definition macro, deletes objects via the closeFunction.
Definition: localpointer.h:290
struct UDateIntervalFormat UDateIntervalFormat
C typedef for struct UDateIntervalFormat.
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.
uint16_t UChar
Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...
Definition: umachine.h:278
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
Definition: uversion.h:130
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
Definition: utypes.h:476
void udtitvfmt_close(UDateIntervalFormat *formatter)
Close a UDateIntervalFormat object.
UDateIntervalFormat * udtitvfmt_open(const char *locale, const UChar *skeleton, int32_t skeletonLength, const UChar *tzID, int32_t tzIDLength, UErrorCode *status)
Open a new UDateIntervalFormat object using the predefined rules for a given locale plus a specified ...
Basic definitions for ICU, for both C and C++ APIs.
#define U_STABLE
This is used to declare a function as a stable public ICU C API.
Definition: umachine.h:109