michael@0: /* michael@0: ******************************************************************************* michael@0: * michael@0: * Copyright (C) 1999-2006, International Business Machines michael@0: * Corporation and others. All Rights Reserved. michael@0: * michael@0: ******************************************************************************* michael@0: * file name: gensprep.h michael@0: * encoding: US-ASCII michael@0: * tab size: 8 (not used) michael@0: * indentation:4 michael@0: * michael@0: * created on: 2003-02-06 michael@0: * created by: Ram Viswanadha michael@0: */ michael@0: michael@0: #ifndef __GENIDN_H__ michael@0: #define __GENIDN_H__ michael@0: michael@0: #include "unicode/utypes.h" michael@0: #include "sprpimpl.h" michael@0: michael@0: /* file definitions */ michael@0: #define DATA_NAME "sprep" michael@0: #define DATA_TYPE "spp" michael@0: michael@0: /* michael@0: * data structure that holds the IDN properties for one or more michael@0: * code point(s) at build time michael@0: */ michael@0: michael@0: michael@0: /* global flags */ michael@0: extern UBool beVerbose, haveCopyright; michael@0: michael@0: /* prototypes */ michael@0: michael@0: extern void michael@0: setUnicodeVersion(const char *v); michael@0: michael@0: extern void michael@0: setUnicodeVersionNC(UVersionInfo version); michael@0: michael@0: extern void michael@0: init(void); michael@0: michael@0: #if !UCONFIG_NO_IDNA michael@0: extern void michael@0: storeMapping(uint32_t codepoint, uint32_t* mapping,int32_t length, UStringPrepType type, UErrorCode* status); michael@0: extern void michael@0: storeRange(uint32_t start, uint32_t end, UStringPrepType type,UErrorCode* status); michael@0: #endif michael@0: michael@0: extern void michael@0: generateData(const char *dataDir, const char* bundleName); michael@0: michael@0: extern void michael@0: setOptions(int32_t options); michael@0: michael@0: extern void michael@0: cleanUpData(void); michael@0: michael@0: /* michael@0: extern void michael@0: storeIDN(uint32_t code, IDN *idn); michael@0: michael@0: extern void michael@0: processData(void); michael@0: michael@0: michael@0: */ michael@0: #endif michael@0: michael@0: /* michael@0: * Hey, Emacs, please set the following: michael@0: * michael@0: * Local Variables: michael@0: * indent-tabs-mode: nil michael@0: * End: michael@0: * michael@0: */