gensprep.h revision c73f511526464f8e56c242df80552e9b0d94ae3d
1/*
2*******************************************************************************
3*
4*   Copyright (C) 1999-2006, International Business Machines
5*   Corporation and others.  All Rights Reserved.
6*
7*******************************************************************************
8*   file name:  gensprep.h
9*   encoding:   US-ASCII
10*   tab size:   8 (not used)
11*   indentation:4
12*
13*   created on: 2003-02-06
14*   created by: Ram Viswanadha
15*/
16
17#ifndef __GENIDN_H__
18#define __GENIDN_H__
19
20#include "unicode/utypes.h"
21#include "sprpimpl.h"
22
23/* file definitions */
24#define DATA_NAME "sprep"
25#define DATA_TYPE "spp"
26
27/*
28 * data structure that holds the IDN properties for one or more
29 * code point(s) at build time
30 */
31
32
33/* global flags */
34extern UBool beVerbose, haveCopyright;
35
36/* prototypes */
37
38extern void
39setUnicodeVersion(const char *v);
40
41extern void
42setUnicodeVersionNC(UVersionInfo version);
43
44extern void
45init(void);
46
47#if !UCONFIG_NO_IDNA
48extern void
49storeMapping(uint32_t codepoint, uint32_t* mapping,int32_t length, UStringPrepType type, UErrorCode* status);
50extern void
51storeRange(uint32_t start, uint32_t end, UStringPrepType type,UErrorCode* status);
52#endif
53
54extern void
55generateData(const char *dataDir, const char* bundleName);
56
57extern void
58setOptions(int32_t options);
59
60extern void
61cleanUpData(void);
62
63/*
64extern void
65storeIDN(uint32_t code, IDN *idn);
66
67extern void
68processData(void);
69
70
71*/
72#endif
73
74/*
75 * Hey, Emacs, please set the following:
76 *
77 * Local Variables:
78 * indent-tabs-mode: nil
79 * End:
80 *
81 */
82