diff options
Diffstat (limited to 'Build/source/libs/icu/icu-src/source/test/cintltst/cformtst.h')
-rw-r--r-- | Build/source/libs/icu/icu-src/source/test/cintltst/cformtst.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Build/source/libs/icu/icu-src/source/test/cintltst/cformtst.h b/Build/source/libs/icu/icu-src/source/test/cintltst/cformtst.h index a5b6bbe2224..bcee4c42f28 100644 --- a/Build/source/libs/icu/icu-src/source/test/cintltst/cformtst.h +++ b/Build/source/libs/icu/icu-src/source/test/cintltst/cformtst.h @@ -25,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 |