]> git.saurik.com Git - apple/icu.git/blame_incremental - icuSources/i18n/udatintv.cpp
ICU-66108.tar.gz
[apple/icu.git] / icuSources / i18n / udatintv.cpp
... / ...
CommitLineData
1/*
2*****************************************************************************************
3* Copyright (C) 2010-2011 Apple Inc. All Rights Reserved.
4*****************************************************************************************
5*/
6
7#include "unicode/utypes.h"
8
9#if !UCONFIG_NO_FORMATTING
10
11#include "unicode/udateintervalformat.h"
12#include "unicode/udatintv.h"
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{
23 return udtitvfmt_open(locale, skeleton, skeletonLength, NULL, 0, status);
24}
25
26
27U_CAPI void U_EXPORT2
28udatintv_close(UDateIntervalFormat *datintv)
29{
30 udtitvfmt_close(datintv);
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{
43 return udtitvfmt_format(datintv, fromDate, toDate, result, resultCapacity, position, status);
44}
45
46
47#endif /* #if !UCONFIG_NO_FORMATTING */