]> git.saurik.com Git - apple/icu.git/blame - icuSources/tools/makeconv/makeconv.h
ICU-6.2.22.tar.gz
[apple/icu.git] / icuSources / tools / makeconv / makeconv.h
CommitLineData
b75a7d8f
A
1/*
2*******************************************************************************
3*
374ca955 4* Copyright (C) 2000-2003, International Business Machines
b75a7d8f
A
5* Corporation and others. All Rights Reserved.
6*
7*******************************************************************************
8* file name: makeconv.h
9* encoding: US-ASCII
10* tab size: 8 (not used)
11* indentation:4
12*
13* created on: 2000nov01
14* created by: Markus W. Scherer
15*/
16
17#ifndef __MAKECONV_H__
18#define __MAKECONV_H__
19
20#include "unicode/utypes.h"
21#include "ucnv_bld.h"
22#include "unewdata.h"
374ca955 23#include "ucm.h"
b75a7d8f
A
24
25/* exports from makeconv.c */
26U_CFUNC UBool VERBOSE;
27
374ca955
A
28/* converter table type for writing */
29enum {
30 TABLE_NONE,
31 TABLE_BASE,
32 TABLE_EXT,
33 TABLE_BASE_AND_EXT
34};
35
b75a7d8f
A
36/* abstract converter generator struct, C++ - style */
37struct NewConverter;
38typedef struct NewConverter NewConverter;
39
40struct NewConverter {
41 void
42 (*close)(NewConverter *cnvData);
43
b75a7d8f
A
44 /** is this byte sequence valid? */
45 UBool
46 (*isValid)(NewConverter *cnvData,
374ca955 47 const uint8_t *bytes, int32_t length);
b75a7d8f
A
48
49 UBool
374ca955 50 (*addTable)(NewConverter *cnvData, UCMTable *table, UConverterStaticData *staticData);
b75a7d8f
A
51
52 uint32_t
374ca955
A
53 (*write)(NewConverter *cnvData, const UConverterStaticData *staticData,
54 UNewDataMemory *pData, int32_t tableType);
b75a7d8f
A
55};
56
57#endif