2000-01-15 02:00:06 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
|
|
|
* Copyright (c) 1997-1999, International Business Machines Corporation and
|
|
|
|
* others. All Rights Reserved.
|
|
|
|
********************************************************************/
|
|
|
|
/********************************************************************************
|
1999-08-16 21:50:52 +00:00
|
|
|
*
|
|
|
|
* File NCCBTST.H
|
|
|
|
*
|
|
|
|
* Modification History:
|
|
|
|
* Name Description
|
|
|
|
* Madhu Katragadda creation
|
|
|
|
*********************************************************************************
|
|
|
|
*/
|
2000-06-26 21:33:25 +00:00
|
|
|
#ifndef _NCCBTST
|
|
|
|
#define _NCCBTST
|
1999-08-16 21:50:52 +00:00
|
|
|
/* C API TEST FOR CALL BACK ROUTINES OF CODESET CONVERSION COMPONENT */
|
|
|
|
#include "cintltst.h"
|
1999-12-28 23:57:50 +00:00
|
|
|
#include "unicode/utypes.h"
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
static void TestSkipCallBack(void);
|
2000-06-22 01:09:15 +00:00
|
|
|
static void TestStopCallBack(void);
|
1999-08-16 21:50:52 +00:00
|
|
|
static void TestSubCallBack(void);
|
|
|
|
static void TestSubWithValueCallBack(void);
|
|
|
|
static void TestLegalAndOtherCallBack(void);
|
|
|
|
static void TestSingleByteCallBack(void);
|
|
|
|
|
|
|
|
static void TestSkip(int32_t inputsize, int32_t outputsize);
|
|
|
|
|
2000-06-22 01:09:15 +00:00
|
|
|
static void TestStop(int32_t inputsize, int32_t outputsize);
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
static void TestSub(int32_t inputsize, int32_t outputsize);
|
|
|
|
|
|
|
|
static void TestSubWithValue(int32_t inputsize, int32_t outputsize);
|
|
|
|
|
|
|
|
static void TestLegalAndOthers(int32_t inputsize, int32_t outputsize);
|
|
|
|
static void TestSingleByte(int32_t inputsize, int32_t outputsize);
|
|
|
|
|
2000-05-18 22:08:39 +00:00
|
|
|
UBool testConvertFromUnicode(const UChar *source, int sourceLen, const char *expect, int expectLen,
|
1999-10-18 23:55:05 +00:00
|
|
|
const char *codepage, UConverterFromUCallback callback, int32_t *expectOffsets);
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
|
2000-05-18 22:08:39 +00:00
|
|
|
UBool testConvertToUnicode( const char *source, int sourcelen, const UChar *expect, int expectlen,
|
1999-10-18 23:55:05 +00:00
|
|
|
const char *codepage, UConverterToUCallback callback, int32_t *expectOffsets);
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
static void printSeq(const char* a, int len);
|
|
|
|
static void printUSeq(const UChar* a, int len);
|
|
|
|
static void printSeqErr(const char* a, int len);
|
|
|
|
static void printUSeqErr(const UChar* a, int len);
|
|
|
|
static void setNuConvTestName(const char *codepage, const char *direction);
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|