mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 00:43:32 +00:00
ICU-20883 Move UFormattedDateInterval to end of argument list.
This commit is contained in:
parent
923ec1ad30
commit
7917df1e80
3 changed files with 8 additions and 8 deletions
icu4c/source
|
@ -119,9 +119,9 @@ udtitvfmt_format(const UDateIntervalFormat* formatter,
|
|||
U_DRAFT void U_EXPORT2
|
||||
udtitvfmt_formatToResult(
|
||||
const UDateIntervalFormat* formatter,
|
||||
UFormattedDateInterval* result,
|
||||
UDate fromDate,
|
||||
UDate toDate,
|
||||
UFormattedDateInterval* result,
|
||||
UErrorCode* status) {
|
||||
if (U_FAILURE(*status)) {
|
||||
return;
|
||||
|
|
|
@ -261,23 +261,23 @@ udtitvfmt_format(const UDateIntervalFormat* formatter,
|
|||
* UDateIntervalFormat object.
|
||||
* @param formatter
|
||||
* The UDateIntervalFormat object specifying the format conventions.
|
||||
* @param result
|
||||
* The UFormattedDateInterval to contain the result of the
|
||||
* formatting operation.
|
||||
* @param fromDate
|
||||
* The starting point of the range.
|
||||
* @param toDate
|
||||
* The ending point of the range.
|
||||
* @param result
|
||||
* The UFormattedDateInterval to contain the result of the
|
||||
* formatting operation.
|
||||
* @param status
|
||||
* A pointer to a UErrorCode to receive any errors.
|
||||
* @draft ICU 64
|
||||
* @draft ICU 67
|
||||
*/
|
||||
U_DRAFT void U_EXPORT2
|
||||
udtitvfmt_formatToResult(
|
||||
const UDateIntervalFormat* formatter,
|
||||
UFormattedDateInterval* result,
|
||||
UDate fromDate,
|
||||
UDate toDate,
|
||||
UFormattedDateInterval* result,
|
||||
UErrorCode* status);
|
||||
|
||||
/**
|
||||
|
|
|
@ -332,7 +332,7 @@ static void TestFormatToResult() {
|
|||
{
|
||||
const char* message = "Field position test 1";
|
||||
const UChar* expectedString = u"27. September 2010, 15:00 – 2. März 2011, 18:30";
|
||||
udtitvfmt_formatToResult(fmt, fdi, Date201009270800, Date201103021030, &ec);
|
||||
udtitvfmt_formatToResult(fmt, Date201009270800, Date201103021030, fdi, &ec);
|
||||
assertSuccess("Formatting", &ec);
|
||||
static const UFieldPositionWithCategory expectedFieldPositions[] = {
|
||||
// category, field, begin index, end index
|
||||
|
@ -358,7 +358,7 @@ static void TestFormatToResult() {
|
|||
{
|
||||
const char* message = "Field position test 2";
|
||||
const UChar* expectedString = u"27. September 2010, 15:00–22:00 Uhr";
|
||||
udtitvfmt_formatToResult(fmt, fdi, Date201009270800, Date201009270800 + 7*_HOUR, &ec);
|
||||
udtitvfmt_formatToResult(fmt, Date201009270800, Date201009270800 + 7*_HOUR, fdi, &ec);
|
||||
assertSuccess("Formatting", &ec);
|
||||
static const UFieldPositionWithCategory expectedFieldPositions[] = {
|
||||
// category, field, begin index, end index
|
||||
|
|
Loading…
Add table
Reference in a new issue