1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /********************************************************************
5 * Copyright (c) 1997-2001, International Business Machines Corporation and
6 * others. All Rights Reserved.
7 ********************************************************************/
8 /********************************************************************************
12 * Modification History:
14 * Madhu Katragadda Creation
15 *********************************************************************************
17 /* FormatTest is a medium top level test for everything in the C FORMAT API */
22 #include "unicode/utypes.h"
24 #if !UCONFIG_NO_FORMATTING
27 #include "unicode/udat.h"
28 #include "unicode/uformattedvalue.h"
31 /* Internal fucntion used by all the test format files */
32 UChar
* myDateFormat(UDateFormat
*dat
, UDate d
);
35 typedef struct UFieldPositionWithCategory
{
36 UFieldCategory category
;
40 } UFieldPositionWithCategory
;
42 // The following are implemented in uformattedvaluetest.c
43 void checkFormattedValue(
45 const UFormattedValue
* fv
,
46 const UChar
* expectedString
,
47 UFieldCategory expectedCategory
,
48 const UFieldPosition
* expectedFieldPositions
,
49 int32_t expectedFieldPositionsLength
);
51 void checkMixedFormattedValue(
53 const UFormattedValue
* fv
,
54 const UChar
* expectedString
,
55 const UFieldPositionWithCategory
* expectedFieldPositions
,
59 #endif /* #if !UCONFIG_NO_FORMATTING */