]>
Commit | Line | Data |
---|---|---|
f3c0d7a5 A |
1 | // © 2016 and later: Unicode, Inc. and others. |
2 | // License & terms of use: http://www.unicode.org/copyright.html | |
b75a7d8f A |
3 | /******************************************************************** |
4 | * COPYRIGHT: | |
b331163b | 5 | * Copyright (c) 1997-2014, International Business Machines Corporation and |
b75a7d8f A |
6 | * others. All Rights Reserved. |
7 | ********************************************************************/ | |
8 | /******************************************************************************** | |
9 | * | |
10 | * File CDATTST.H | |
11 | * | |
12 | * Modification History: | |
13 | * Name Description | |
14 | * Madhu Katragadda Creation | |
15 | ********************************************************************************* | |
16 | */ | |
17 | /* C API TEST FOR DATE FORMAT */ | |
18 | #ifndef _CDATFRMTST | |
19 | #define _CDATFRMTST | |
20 | ||
21 | #include "unicode/utypes.h" | |
f3c0d7a5 | 22 | #include "unicode/udat.h" |
b75a7d8f A |
23 | |
24 | #if !UCONFIG_NO_FORMATTING | |
25 | ||
26 | #include "cintltst.h" | |
27 | ||
28 | /** | |
46f4442e | 29 | * The functions used to test the Date format API |
b75a7d8f A |
30 | **/ |
31 | static void TestDateFormat(void); | |
46f4442e | 32 | static void TestRelativeDateFormat(void); |
b75a7d8f A |
33 | |
34 | /** | |
35 | * The function used to test API udat_getSymbols(), udat_setSymbols() and udat_countSymbols() | |
36 | **/ | |
37 | static void TestSymbols(void); | |
38 | ||
39 | /** | |
40 | * Test DateFormat(Calendar) API | |
41 | */ | |
42 | static void TestDateFormatCalendar(void); | |
43 | ||
44 | /** | |
45 | * test subroutines used by TestSymbols | |
46 | **/ | |
47 | static void VerifygetSymbols(UDateFormat*, UDateFormatSymbolType, int32_t, const char*); | |
48 | static void VerifysetSymbols(UDateFormat*, UDateFormatSymbolType, int32_t, const char*); | |
49 | static void VerifygetsetSymbols(UDateFormat*, UDateFormat*, UDateFormatSymbolType, int32_t); | |
50 | ||
51 | /** | |
52 | * test subroutine used by the testing functions | |
53 | **/ | |
54 | static UChar* myNumformat(const UNumberFormat* numfor, double d); | |
51004dcb | 55 | static int getCurrentYear(void); |
b75a7d8f | 56 | |
b331163b A |
57 | /** |
58 | * Test DateFormat override number format API | |
59 | */ | |
60 | static void TestOverrideNumberFormat(void); | |
61 | ||
62 | ||
b75a7d8f A |
63 | #endif /* #if !UCONFIG_NO_FORMATTING */ |
64 | ||
65 | #endif |