blob: 861a108764535d6cb88792f952eb0ad2855e766a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
/********************************************************************
* COPYRIGHT:
* Copyright (c) 1997-2001, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
/********************************************************************************
*
* File CDATTST.H
*
* Modification History:
* Name Description
* Madhu Katragadda Creation
*********************************************************************************
*/
/* C API TEST FOR DATE FORMAT */
#ifndef _CDATFRMTST
#define _CDATFRMTST
#include "unicode/utypes.h"
#if !UCONFIG_NO_FORMATTING
#include "cintltst.h"
/**
* The function used to test the Date format API
**/
static void TestDateFormat(void);
/**
* The function used to test API udat_getSymbols(), udat_setSymbols() and udat_countSymbols()
**/
static void TestSymbols(void);
/**
* Test DateFormat(Calendar) API
*/
static void TestDateFormatCalendar(void);
/**
* test subroutines used by TestSymbols
**/
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);
/**
* test subroutine used by the testing functions
**/
static UChar* myNumformat(const UNumberFormat* numfor, double d);
#endif /* #if !UCONFIG_NO_FORMATTING */
#endif
|