X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..340931cb2e044a2141d11567dd0f782524e32994:/icuSources/test/cintltst/cformtst.h diff --git a/icuSources/test/cintltst/cformtst.h b/icuSources/test/cintltst/cformtst.h index e5c0e44c..bcee4c42 100644 --- a/icuSources/test/cintltst/cformtst.h +++ b/icuSources/test/cintltst/cformtst.h @@ -1,3 +1,5 @@ +// © 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 @@ -23,11 +25,37 @@ #include "cintltst.h" #include "unicode/udat.h" +#include "unicode/uformattedvalue.h" /* Internal fucntion 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