]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/cintltst/ncnvfbts.h
ICU-66108.tar.gz
[apple/icu.git] / icuSources / test / cintltst / ncnvfbts.h
CommitLineData
f3c0d7a5
A
1// © 2016 and later: Unicode, Inc. and others.
2// License & terms of use: http://www.unicode.org/copyright.html
b75a7d8f
A
3/********************************************************************
4 * COPYRIGHT:
5 * Copyright (c) 1997-2001, International Business Machines Corporation and
6 * others. All Rights Reserved.
7 ********************************************************************/
8/********************************************************************************
9*
10* File NCCBTST.H
11*
12* Modification History:
13* Name Description
14* Madhu Katragadda creation
15*********************************************************************************
16*/
17#ifndef _NCNVFBTS
18#define _NCNVFBTS
19/* C API TEST FOR FALL BACK ROUTINES OF CODESET CONVERSION COMPONENT */
20#include "cintltst.h"
21#include "unicode/utypes.h"
22
23static void TestConverterFallBack(void);
24static void TestConvertFallBackWithBufferSizes(int32_t outsize, int32_t insize );
25static UBool testConvertFromUnicode(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
26 const char *codepage, UBool fallback, const int32_t *expectOffsets);
27static UBool testConvertToUnicode( const uint8_t *source, int sourcelen, const UChar *expect, int expectlen,
28 const char *codepage, UBool fallback, const int32_t *expectOffsets);
29
30
31static void printSeq(const unsigned char* a, int len);
32static void printUSeq(const UChar* a, int len);
33static void printSeqErr(const unsigned char* a, int len);
34static void printUSeqErr(const UChar* a, int len);
35static void setNuConvTestName(const char *codepage, const char *direction);
36
37
38#endif