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