2 *******************************************************************************
4 * Copyright (C) 2000-2006, International Business Machines
5 * Corporation and others. All Rights Reserved.
7 *******************************************************************************
8 * file name: makeconv.h
10 * tab size: 8 (not used)
13 * created on: 2000nov01
14 * created by: Markus W. Scherer
17 #ifndef __MAKECONV_H__
18 #define __MAKECONV_H__
20 #include "unicode/utypes.h"
25 /* exports from makeconv.c */
26 U_CFUNC UBool VERBOSE
;
28 /* converter table type for writing */
36 /* abstract converter generator struct, C++ - style */
38 typedef struct NewConverter NewConverter
;
42 (*close
)(NewConverter
*cnvData
);
44 /** is this byte sequence valid? */
46 (*isValid
)(NewConverter
*cnvData
,
47 const uint8_t *bytes
, int32_t length
);
50 (*addTable
)(NewConverter
*cnvData
, UCMTable
*table
, UConverterStaticData
*staticData
);
53 (*write
)(NewConverter
*cnvData
, const UConverterStaticData
*staticData
,
54 UNewDataMemory
*pData
, int32_t tableType
);
57 #endif /* __MAKECONV_H__ */