2000-07-13 00:17:05 +00:00
|
|
|
/*
|
|
|
|
*******************************************************************************
|
|
|
|
*
|
|
|
|
* 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 */
|
2000-07-27 22:05:23 +00:00
|
|
|
U_CFUNC UBool VERBOSE;
|
2000-07-13 00:17:05 +00:00
|
|
|
|
|
|
|
/* exports from genmbcs.c */
|
|
|
|
struct MBCSData;
|
|
|
|
typedef struct MBCSData MBCSData;
|
|
|
|
|
2000-07-27 22:05:23 +00:00
|
|
|
U_CFUNC MBCSData *
|
2000-07-13 00:17:05 +00:00
|
|
|
MBCSOpen(uint8_t maxCharLength);
|
|
|
|
|
2000-07-27 22:05:23 +00:00
|
|
|
U_CFUNC void
|
2000-07-13 00:17:05 +00:00
|
|
|
MBCSClose(MBCSData *mbcsData);
|
|
|
|
|
2000-07-27 22:05:23 +00:00
|
|
|
U_CFUNC UBool
|
2000-07-13 00:17:05 +00:00
|
|
|
MBCSAddState(MBCSData *mbcsData, const char *s);
|
|
|
|
|
2000-07-27 22:05:23 +00:00
|
|
|
U_CFUNC UBool
|
2000-07-13 00:17:05 +00:00
|
|
|
MBCSProcessStates(MBCSData *mbcsData);
|
|
|
|
|
2000-07-27 22:05:23 +00:00
|
|
|
U_CFUNC UBool
|
2000-07-13 00:17:05 +00:00
|
|
|
MBCSAddToUnicode(MBCSData *mbcsData,
|
|
|
|
const uint8_t *bytes, int32_t length,
|
|
|
|
UChar32 c,
|
|
|
|
UBool isFallback);
|
|
|
|
|
2000-07-27 22:05:23 +00:00
|
|
|
U_CFUNC UBool
|
2000-07-13 00:17:05 +00:00
|
|
|
MBCSAddFromUnicode(MBCSData *mbcsData,
|
|
|
|
const uint8_t *bytes, int32_t length,
|
|
|
|
UChar32 c,
|
|
|
|
UBool isFallback);
|
|
|
|
|
2000-07-27 22:05:23 +00:00
|
|
|
U_CFUNC void
|
2000-07-13 00:17:05 +00:00
|
|
|
MBCSPostprocess(MBCSData *mbcsData);
|
|
|
|
|
2000-07-27 22:05:23 +00:00
|
|
|
U_CFUNC uint32_t
|
2000-07-13 00:17:05 +00:00
|
|
|
MBCSWrite(MBCSData *mbcsData, UNewDataMemory *pData);
|
2000-07-27 22:05:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
|