forked from unicode-org/icu
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcformtst.h
More file actions
61 lines (48 loc) · 1.75 KB
/
cformtst.h
File metadata and controls
61 lines (48 loc) · 1.75 KB
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
55
56
57
58
59
60
61
// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/********************************************************************
* COPYRIGHT:
* Copyright (c) 1997-2001, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
/********************************************************************************
*
* File CFORMTST.H
*
* Modification History:
* Name Description
* Madhu Katragadda Creation
*********************************************************************************
*/
/* FormatTest is a medium top level test for everything in the C FORMAT API */
#ifndef _CFORMATTST
#define _CFORMATTST
#include "unicode/utypes.h"
#if !UCONFIG_NO_FORMATTING
#include "cintltst.h"
#include "unicode/udat.h"
#include "unicode/uformattedvalue.h"
/* Internal function used by all the test format files */
UChar* myDateFormat(UDateFormat *dat, UDate d);
typedef struct UFieldPositionWithCategory {
UFieldCategory category;
int32_t field;
int32_t beginIndex;
int32_t endIndex;
} UFieldPositionWithCategory;
// The following are implemented in uformattedvaluetest.c
void checkFormattedValue(
const char* message,
const UFormattedValue* fv,
const UChar* expectedString,
UFieldCategory expectedCategory,
const UFieldPosition* expectedFieldPositions,
int32_t expectedFieldPositionsLength);
void checkMixedFormattedValue(
const char* message,
const UFormattedValue* fv,
const UChar* expectedString,
const UFieldPositionWithCategory* expectedFieldPositions,
int32_t length);
#endif /* #if !UCONFIG_NO_FORMATTING */
#endif