OLD | NEW |
1 /* | 1 /* |
2 ******************************************************************************* | 2 ******************************************************************************* |
3 * | 3 * |
4 * Copyright (C) 2009-2011, International Business Machines | 4 * Copyright (C) 2009-2014, International Business Machines |
5 * Corporation and others. All Rights Reserved. | 5 * Corporation and others. All Rights Reserved. |
6 * | 6 * |
7 ******************************************************************************* | 7 ******************************************************************************* |
8 * file name: n2builder.h | 8 * file name: n2builder.h |
9 * encoding: US-ASCII | 9 * encoding: US-ASCII |
10 * tab size: 8 (not used) | 10 * tab size: 8 (not used) |
11 * indentation:4 | 11 * indentation:4 |
12 * | 12 * |
13 * created on: 2009nov25 | 13 * created on: 2009nov25 |
14 * created by: Markus W. Scherer | 14 * created by: Markus W. Scherer |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 void setOptimization(Optimization opt) { optimization=opt; } | 57 void setOptimization(Optimization opt) { optimization=opt; } |
58 | 58 |
59 void setCC(UChar32 c, uint8_t cc); | 59 void setCC(UChar32 c, uint8_t cc); |
60 void setOneWayMapping(UChar32 c, const UnicodeString &m); | 60 void setOneWayMapping(UChar32 c, const UnicodeString &m); |
61 void setRoundTripMapping(UChar32 c, const UnicodeString &m); | 61 void setRoundTripMapping(UChar32 c, const UnicodeString &m); |
62 void removeMapping(UChar32 c); | 62 void removeMapping(UChar32 c); |
63 | 63 |
64 void setUnicodeVersion(const char *v); | 64 void setUnicodeVersion(const char *v); |
65 | 65 |
66 void writeBinaryFile(const char *filename); | 66 void writeBinaryFile(const char *filename); |
| 67 void writeCSourceFile(const char *filename); |
67 | 68 |
68 private: | 69 private: |
69 friend class CompositionBuilder; | 70 friend class CompositionBuilder; |
70 friend class Decomposer; | 71 friend class Decomposer; |
71 friend class ExtraDataWriter; | 72 friend class ExtraDataWriter; |
72 friend class Norm16Writer; | 73 friend class Norm16Writer; |
73 | 74 |
74 // No copy constructor nor assignment operator. | 75 // No copy constructor nor assignment operator. |
75 Normalizer2DataBuilder(const Normalizer2DataBuilder &other); | 76 Normalizer2DataBuilder(const Normalizer2DataBuilder &other); |
76 Normalizer2DataBuilder &operator=(const Normalizer2DataBuilder &other); | 77 Normalizer2DataBuilder &operator=(const Normalizer2DataBuilder &other); |
(...skipping 26 matching lines...) Expand all Loading... |
103 UToolMemory *normMem; | 104 UToolMemory *normMem; |
104 Norm *norms; | 105 Norm *norms; |
105 | 106 |
106 int32_t phase; | 107 int32_t phase; |
107 OverrideHandling overrideHandling; | 108 OverrideHandling overrideHandling; |
108 | 109 |
109 Optimization optimization; | 110 Optimization optimization; |
110 | 111 |
111 int32_t indexes[Normalizer2Impl::IX_COUNT]; | 112 int32_t indexes[Normalizer2Impl::IX_COUNT]; |
112 UTrie2 *norm16Trie; | 113 UTrie2 *norm16Trie; |
| 114 int32_t norm16TrieLength; |
113 UnicodeString extraData; | 115 UnicodeString extraData; |
114 uint8_t smallFCD[0x100]; | 116 uint8_t smallFCD[0x100]; |
115 | 117 |
116 UVersionInfo unicodeVersion; | 118 UVersionInfo unicodeVersion; |
117 }; | 119 }; |
118 | 120 |
119 U_NAMESPACE_END | 121 U_NAMESPACE_END |
120 | 122 |
121 #endif // #if !UCONFIG_NO_NORMALIZATION | 123 #endif // #if !UCONFIG_NO_NORMALIZATION |
122 | 124 |
123 #endif // __N2BUILDER_H__ | 125 #endif // __N2BUILDER_H__ |
OLD | NEW |