00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef UDATEINTERVALFORMAT_H
00011 #define UDATEINTERVALFORMAT_H
00012
00013 #include "unicode/utypes.h"
00014
00015 #if !UCONFIG_NO_FORMATTING
00016
00017 #include "unicode/umisc.h"
00018 #include "unicode/localpointer.h"
00019
00081 struct UDateIntervalFormat;
00082 typedef struct UDateIntervalFormat UDateIntervalFormat;
00108 U_STABLE UDateIntervalFormat* U_EXPORT2
00109 udtitvfmt_open(const char* locale,
00110 const UChar* skeleton,
00111 int32_t skeletonLength,
00112 const UChar* tzID,
00113 int32_t tzIDLength,
00114 UErrorCode* status);
00115
00122 U_STABLE void U_EXPORT2
00123 udtitvfmt_close(UDateIntervalFormat *formatter);
00124
00125
00126 #if U_SHOW_CPLUSPLUS_API
00127
00128 U_NAMESPACE_BEGIN
00129
00139 U_DEFINE_LOCAL_OPEN_POINTER(LocalUDateIntervalFormatPointer, UDateIntervalFormat, udtitvfmt_close);
00140
00141 U_NAMESPACE_END
00142
00143 #endif
00144
00145
00175 U_STABLE int32_t U_EXPORT2
00176 udtitvfmt_format(const UDateIntervalFormat* formatter,
00177 UDate fromDate,
00178 UDate toDate,
00179 UChar* result,
00180 int32_t resultCapacity,
00181 UFieldPosition* position,
00182 UErrorCode* status);
00183
00184 #endif
00185
00186 #endif