ICU 4.8.1.1  4.8.1.1
udateintervalformat.h
00001 /*
00002 *****************************************************************************************
00003 * Copyright (C) 2010-2011, 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 
00076 struct UDateIntervalFormat;
00077 typedef struct UDateIntervalFormat UDateIntervalFormat;  
00103 U_DRAFT UDateIntervalFormat* U_EXPORT2
00104 udtitvfmt_open(const char*  locale,
00105               const UChar* skeleton,
00106               int32_t      skeletonLength,
00107               const UChar* tzID,
00108               int32_t      tzIDLength,
00109               UErrorCode*  status);
00110 
00117 U_DRAFT void U_EXPORT2
00118 udtitvfmt_close(UDateIntervalFormat *formatter);
00119 
00120 
00121 #if U_SHOW_CPLUSPLUS_API
00122 
00123 U_NAMESPACE_BEGIN
00124 
00134 U_DEFINE_LOCAL_OPEN_POINTER(LocalUDateIntervalFormatPointer, UDateIntervalFormat, udtitvfmt_close);
00135 
00136 U_NAMESPACE_END
00137 
00138 #endif
00139 
00140 
00167 U_DRAFT int32_t U_EXPORT2
00168 udtitvfmt_format(const UDateIntervalFormat* formatter,
00169                 UDate           fromDate,
00170                 UDate           toDate,
00171                 UChar*          result,
00172                 int32_t         resultCapacity,
00173                 UFieldPosition* position,
00174                 UErrorCode*     status);
00175 
00176 #endif /* #if !UCONFIG_NO_FORMATTING */
00177 
00178 #endif
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines