]> git.saurik.com Git - apple/icu.git/blame - icuSources/i18n/udatintv.cpp
ICU-62107.0.1.tar.gz
[apple/icu.git] / icuSources / i18n / udatintv.cpp
CommitLineData
729e4ab9
A
1/*
2*****************************************************************************************
4388f060 3* Copyright (C) 2010-2011 Apple Inc. All Rights Reserved.
729e4ab9
A
4*****************************************************************************************
5*/
6
7#include "unicode/utypes.h"
8
9#if !UCONFIG_NO_FORMATTING
10
4388f060 11#include "unicode/udateintervalformat.h"
729e4ab9 12#include "unicode/udatintv.h"
729e4ab9
A
13
14U_NAMESPACE_USE
15
16
17U_CAPI UDateIntervalFormat* U_EXPORT2
18udatintv_open(const char* locale,
19 const UChar* skeleton,
20 int32_t skeletonLength,
21 UErrorCode* status)
22{
4388f060 23 return udtitvfmt_open(locale, skeleton, skeletonLength, NULL, 0, status);
729e4ab9
A
24}
25
26
27U_CAPI void U_EXPORT2
28udatintv_close(UDateIntervalFormat *datintv)
29{
4388f060 30 udtitvfmt_close(datintv);
729e4ab9
A
31}
32
33
34U_INTERNAL int32_t U_EXPORT2
35udatintv_format(const UDateIntervalFormat* datintv,
36 UDate fromDate,
37 UDate toDate,
38 UChar* result,
39 int32_t resultCapacity,
40 UFieldPosition* position,
41 UErrorCode* status)
42{
4388f060 43 return udtitvfmt_format(datintv, fromDate, toDate, result, resultCapacity, position, status);
729e4ab9
A
44}
45
46
47#endif /* #if !UCONFIG_NO_FORMATTING */