2000-07-06 18:26:16 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
|
|
|
* Copyright (c) 1997-1999, International Business Machines Corporation and
|
|
|
|
* others. All Rights Reserved.
|
|
|
|
********************************************************************/
|
|
|
|
/********************************************************************************
|
|
|
|
*
|
|
|
|
* File NCCBTST.H
|
|
|
|
*
|
|
|
|
* Modification History:
|
|
|
|
* Name Description
|
|
|
|
* Madhu Katragadda creation
|
|
|
|
*********************************************************************************
|
|
|
|
*/
|
|
|
|
#ifndef _NCNVFBTS
|
|
|
|
#define _NCNVFBTS
|
|
|
|
/* C API TEST FOR FALL BACK ROUTINES OF CODESET CONVERSION COMPONENT */
|
|
|
|
#include "cintltst.h"
|
|
|
|
#include "unicode/utypes.h"
|
|
|
|
|
|
|
|
void TestConverterFallBack(void);
|
|
|
|
void TestConvertFallBackWithBufferSizes(int32_t outsize, int32_t insize );
|
2000-08-11 17:39:22 +00:00
|
|
|
static UBool testConvertFromUnicode(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
|
2000-07-06 18:26:16 +00:00
|
|
|
const char *codepage, UBool fallback, int32_t *expectOffsets);
|
2000-08-11 17:39:22 +00:00
|
|
|
static UBool testConvertToUnicode( const uint8_t *source, int sourcelen, const UChar *expect, int expectlen,
|
2000-07-06 18:26:16 +00:00
|
|
|
const char *codepage, UBool fallback, int32_t *expectOffsets);
|
|
|
|
|
|
|
|
|
2000-07-18 23:42:41 +00:00
|
|
|
static void printSeq(const unsigned char* a, int len);
|
2000-07-06 18:26:16 +00:00
|
|
|
static void printUSeq(const UChar* a, int len);
|
2000-07-18 23:42:41 +00:00
|
|
|
static void printSeqErr(const unsigned char* a, int len);
|
2000-07-06 18:26:16 +00:00
|
|
|
static void printUSeqErr(const UChar* a, int len);
|
|
|
|
static void setNuConvTestName(const char *codepage, const char *direction);
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|