]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/cintltst/ncnvfbts.h
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /********************************************************************
5 * Copyright (c) 1997-2001, International Business Machines Corporation and
6 * others. All Rights Reserved.
7 ********************************************************************/
8 /********************************************************************************
12 * Modification History:
14 * Madhu Katragadda creation
15 *********************************************************************************
19 /* C API TEST FOR FALL BACK ROUTINES OF CODESET CONVERSION COMPONENT */
21 #include "unicode/utypes.h"
23 static void TestConverterFallBack(void);
24 static void TestConvertFallBackWithBufferSizes(int32_t outsize
, int32_t insize
);
25 static UBool
testConvertFromUnicode(const UChar
*source
, int sourceLen
, const uint8_t *expect
, int expectLen
,
26 const char *codepage
, UBool fallback
, const int32_t *expectOffsets
);
27 static UBool
testConvertToUnicode( const uint8_t *source
, int sourcelen
, const UChar
*expect
, int expectlen
,
28 const char *codepage
, UBool fallback
, const int32_t *expectOffsets
);
31 static void printSeq(const unsigned char* a
, int len
);
32 static void printUSeq(const UChar
* a
, int len
);
33 static void printSeqErr(const unsigned char* a
, int len
);
34 static void printUSeqErr(const UChar
* a
, int len
);
35 static void setNuConvTestName(const char *codepage
, const char *direction
);