]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/cintltst/cdattst.h
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /********************************************************************
5 * Copyright (c) 1997-2014, International Business Machines Corporation and
6 * others. All Rights Reserved.
7 ********************************************************************/
8 /********************************************************************************
12 * Modification History:
14 * Madhu Katragadda Creation
15 *********************************************************************************
17 /* C API TEST FOR DATE FORMAT */
21 #include "unicode/utypes.h"
22 #include "unicode/udat.h"
24 #if !UCONFIG_NO_FORMATTING
29 * The functions used to test the Date format API
31 static void TestDateFormat(void);
32 static void TestRelativeDateFormat(void);
35 * The function used to test API udat_getSymbols(), udat_setSymbols() and udat_countSymbols()
37 static void TestSymbols(void);
40 * Test DateFormat(Calendar) API
42 static void TestDateFormatCalendar(void);
45 * test subroutines used by TestSymbols
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);
52 * test subroutine used by the testing functions
54 static UChar
* myNumformat(const UNumberFormat
* numfor
, double d
);
55 static int getCurrentYear(void);
58 * Test DateFormat override number format API
60 static void TestOverrideNumberFormat(void);
63 #endif /* #if !UCONFIG_NO_FORMATTING */