intl/icu/source/tools/makeconv/makeconv.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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

mercurial