2017-01-20 00:20:31 +00:00
|
|
|
// © 2016 and later: Unicode, Inc. and others.
|
2016-06-15 18:58:17 +00:00
|
|
|
// License & terms of use: http://www.unicode.org/copyright.html
|
2000-01-15 02:00:06 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
2016-05-31 21:45:07 +00:00
|
|
|
* Copyright (c) 1997-2014, International Business Machines Corporation and
|
|
|
|
* others. All Rights Reserved.
|
2000-01-15 02:00:06 +00:00
|
|
|
********************************************************************/
|
|
|
|
/********************************************************************************
|
1999-08-16 21:50:52 +00:00
|
|
|
*
|
|
|
|
* File CDATTST.H
|
|
|
|
*
|
|
|
|
* Modification History:
|
|
|
|
* Name Description
|
|
|
|
* Madhu Katragadda Creation
|
|
|
|
*********************************************************************************
|
|
|
|
*/
|
|
|
|
/* C API TEST FOR DATE FORMAT */
|
|
|
|
#ifndef _CDATFRMTST
|
|
|
|
#define _CDATFRMTST
|
|
|
|
|
2002-09-20 17:54:45 +00:00
|
|
|
#include "unicode/utypes.h"
|
2016-09-28 04:17:24 +00:00
|
|
|
#include "unicode/udat.h"
|
2002-09-20 17:54:45 +00:00
|
|
|
|
|
|
|
#if !UCONFIG_NO_FORMATTING
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
#include "cintltst.h"
|
|
|
|
|
|
|
|
/**
|
2009-01-30 10:46:17 +00:00
|
|
|
* The functions used to test the Date format API
|
1999-08-16 21:50:52 +00:00
|
|
|
**/
|
|
|
|
static void TestDateFormat(void);
|
2009-01-30 10:46:17 +00:00
|
|
|
static void TestRelativeDateFormat(void);
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The function used to test API udat_getSymbols(), udat_setSymbols() and udat_countSymbols()
|
|
|
|
**/
|
|
|
|
static void TestSymbols(void);
|
|
|
|
|
2002-03-06 20:42:32 +00:00
|
|
|
/**
|
|
|
|
* Test DateFormat(Calendar) API
|
|
|
|
*/
|
|
|
|
static void TestDateFormatCalendar(void);
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
/**
|
|
|
|
* test subroutines used by TestSymbols
|
|
|
|
**/
|
2000-11-21 04:05:39 +00:00
|
|
|
static void VerifygetSymbols(UDateFormat*, UDateFormatSymbolType, int32_t, const char*);
|
|
|
|
static void VerifysetSymbols(UDateFormat*, UDateFormatSymbolType, int32_t, const char*);
|
|
|
|
static void VerifygetsetSymbols(UDateFormat*, UDateFormat*, UDateFormatSymbolType, int32_t);
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* test subroutine used by the testing functions
|
|
|
|
**/
|
2000-11-21 04:05:39 +00:00
|
|
|
static UChar* myNumformat(const UNumberFormat* numfor, double d);
|
2013-01-04 17:16:07 +00:00
|
|
|
static int getCurrentYear(void);
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2014-07-29 18:42:07 +00:00
|
|
|
/**
|
|
|
|
* Test DateFormat override number format API
|
|
|
|
*/
|
2014-08-01 21:33:16 +00:00
|
|
|
static void TestOverrideNumberFormat(void);
|
2014-07-29 18:42:07 +00:00
|
|
|
|
|
|
|
|
2002-09-20 17:54:45 +00:00
|
|
|
#endif /* #if !UCONFIG_NO_FORMATTING */
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
#endif
|