]>
Commit | Line | Data |
---|---|---|
b75a7d8f A |
1 | /* |
2 | ******************************************************************************* | |
3 | * | |
73c04bcf | 4 | * Copyright (C) 1999-2006, International Business Machines |
b75a7d8f A |
5 | * Corporation and others. All Rights Reserved. |
6 | * | |
7 | ******************************************************************************* | |
374ca955 | 8 | * file name: gensprep.h |
b75a7d8f A |
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" | |
b75a7d8f A |
21 | #include "sprpimpl.h" |
22 | ||
23 | /* file definitions */ | |
374ca955 A |
24 | #define DATA_NAME "sprep" |
25 | #define DATA_TYPE "spp" | |
b75a7d8f A |
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 */ | |
34 | extern UBool beVerbose, haveCopyright; | |
35 | ||
36 | /* prototypes */ | |
37 | ||
38 | extern void | |
39 | setUnicodeVersion(const char *v); | |
40 | ||
374ca955 A |
41 | extern void |
42 | setUnicodeVersionNC(UVersionInfo version); | |
43 | ||
b75a7d8f A |
44 | extern void |
45 | init(void); | |
46 | ||
374ca955 | 47 | #if !UCONFIG_NO_IDNA |
b75a7d8f | 48 | extern void |
374ca955 | 49 | storeMapping(uint32_t codepoint, uint32_t* mapping,int32_t length, UStringPrepType type, UErrorCode* status); |
b75a7d8f | 50 | extern void |
374ca955 A |
51 | storeRange(uint32_t start, uint32_t end, UStringPrepType type,UErrorCode* status); |
52 | #endif | |
b75a7d8f A |
53 | |
54 | extern void | |
73c04bcf | 55 | generateData(const char *dataDir, const char* bundleName); |
374ca955 A |
56 | |
57 | extern void | |
58 | setOptions(int32_t options); | |
b75a7d8f A |
59 | |
60 | extern void | |
61 | cleanUpData(void); | |
62 | ||
63 | /* | |
64 | extern void | |
65 | storeIDN(uint32_t code, IDN *idn); | |
66 | ||
67 | extern void | |
68 | processData(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 | */ |