]>
Commit | Line | Data |
---|---|---|
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 | ||
14 | U_NAMESPACE_USE | |
15 | ||
16 | ||
17 | U_CAPI UDateIntervalFormat* U_EXPORT2 | |
18 | udatintv_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 | ||
27 | U_CAPI void U_EXPORT2 | |
28 | udatintv_close(UDateIntervalFormat *datintv) | |
29 | { | |
30 | udtitvfmt_close(datintv); | |
31 | } | |
32 | ||
33 | ||
34 | U_INTERNAL int32_t U_EXPORT2 | |
35 | udatintv_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 */ |