2000-07-06 18:26:16 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
2001-03-21 19:46:49 +00:00
|
|
|
* Copyright (c) 1997-2001, International Business Machines Corporation and
|
2000-07-06 18:26:16 +00:00
|
|
|
* 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"
|
|
|
|
|
2000-11-21 04:05:39 +00:00
|
|
|
static void TestConverterFallBack(void);
|
|
|
|
static 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,
|
2002-08-08 22:46:05 +00:00
|
|
|
const char *codepage, UBool fallback, const 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,
|
2002-08-08 22:46:05 +00:00
|
|
|
const char *codepage, UBool fallback, const int32_t *expectOffsets);
|
2000-07-06 18:26:16 +00:00
|
|
|
|
|
|
|
|
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
|