scuffed-code/icu4c/source/tools/makeconv/genmbcs.h
Steven R. Loomis 23976a9f66 ICU-103 fix for hpux
X-SVN-Rev: 2059
2000-07-27 22:05:23 +00:00

59 lines
1.3 KiB
C

/*
*******************************************************************************
*
* Copyright (C) 2000, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
* file name: genmbcs.h
* encoding: US-ASCII
* tab size: 8 (not used)
* indentation:4
*
* created on: 2000jul10
* created by: Markus W. Scherer
*/
#include "unicode/utypes.h"
#include "unewdata.h"
/* exports from makeconv.c */
U_CFUNC UBool VERBOSE;
/* exports from genmbcs.c */
struct MBCSData;
typedef struct MBCSData MBCSData;
U_CFUNC MBCSData *
MBCSOpen(uint8_t maxCharLength);
U_CFUNC void
MBCSClose(MBCSData *mbcsData);
U_CFUNC UBool
MBCSAddState(MBCSData *mbcsData, const char *s);
U_CFUNC UBool
MBCSProcessStates(MBCSData *mbcsData);
U_CFUNC UBool
MBCSAddToUnicode(MBCSData *mbcsData,
const uint8_t *bytes, int32_t length,
UChar32 c,
UBool isFallback);
U_CFUNC UBool
MBCSAddFromUnicode(MBCSData *mbcsData,
const uint8_t *bytes, int32_t length,
UChar32 c,
UBool isFallback);
U_CFUNC void
MBCSPostprocess(MBCSData *mbcsData);
U_CFUNC uint32_t
MBCSWrite(MBCSData *mbcsData, UNewDataMemory *pData);