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