15 #ifndef __UCHARSTRIEBUILDER_H__
16 #define __UCHARSTRIEBUILDER_H__
30 class UCharsTrieElement;
141 virtual int32_t
countElementUnits(int32_t start, int32_t limit, int32_t unitIndex)
const;
148 virtual int32_t
getMinLinearMatch()
const {
return UCharsTrie::kMinLinearMatch; }
151 class UCTLinearMatchNode :
public LinearMatchNode {
153 UCTLinearMatchNode(
const UChar *units, int32_t len, Node *nextNode);
155 virtual void write(StringTrieBuilder &builder);
161 Node *nextNode)
const;
163 UBool ensureCapacity(int32_t length);
164 virtual int32_t
write(int32_t unit);
165 int32_t
write(
const UChar *s, int32_t length);
171 UnicodeString strings;
172 UCharsTrieElement *elements;
173 int32_t elementsCapacity;
174 int32_t elementsLength;
179 int32_t ucharsCapacity;
180 int32_t ucharsLength;
185 #endif // __UCHARSTRIEBUILDER_H__