ICU 49.1.1  49.1.1
udateintervalformat.h
Go to the documentation of this file.
00001 /*
00002 *****************************************************************************************
00003 * Copyright (C) 2010-2012, International Business Machines
00004 * Corporation and others. All Rights Reserved.
00005 *****************************************************************************************
00006 */
00007 
00008 #ifndef UDATEINTERVALFORMAT_H
00009 #define UDATEINTERVALFORMAT_H
00010 
00011 #include "unicode/utypes.h"
00012 
00013 #if !UCONFIG_NO_FORMATTING
00014 
00015 #include "unicode/umisc.h"
00016 #include "unicode/localpointer.h"
00017 
00079 struct UDateIntervalFormat;
00080 typedef struct UDateIntervalFormat UDateIntervalFormat;  
00106 U_DRAFT UDateIntervalFormat* U_EXPORT2
00107 udtitvfmt_open(const char*  locale,
00108               const UChar* skeleton,
00109               int32_t      skeletonLength,
00110               const UChar* tzID,
00111               int32_t      tzIDLength,
00112               UErrorCode*  status);
00113 
00120 U_DRAFT void U_EXPORT2
00121 udtitvfmt_close(UDateIntervalFormat *formatter);
00122 
00123 
00124 #if U_SHOW_CPLUSPLUS_API
00125 
00126 U_NAMESPACE_BEGIN
00127 
00137 U_DEFINE_LOCAL_OPEN_POINTER(LocalUDateIntervalFormatPointer, UDateIntervalFormat, udtitvfmt_close);
00138 
00139 U_NAMESPACE_END
00140 
00141 #endif
00142 
00143 
00170 U_DRAFT int32_t U_EXPORT2
00171 udtitvfmt_format(const UDateIntervalFormat* formatter,
00172                 UDate           fromDate,
00173                 UDate           toDate,
00174                 UChar*          result,
00175                 int32_t         resultCapacity,
00176                 UFieldPosition* position,
00177                 UErrorCode*     status);
00178 
00179 #endif /* #if !UCONFIG_NO_FORMATTING */
00180 
00181 #endif