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 #ifndef U_HIDE_INTERNAL_API
152 class UCTLinearMatchNode :
public LinearMatchNode {
154 UCTLinearMatchNode(
const UChar *units, int32_t len, Node *nextNode);
156 virtual void write(StringTrieBuilder &builder);
163 Node *nextNode)
const;
165 UBool ensureCapacity(int32_t length);
166 virtual int32_t
write(int32_t unit);
167 int32_t
write(
const UChar *s, int32_t length);
173 UnicodeString strings;
174 UCharsTrieElement *elements;
175 int32_t elementsCapacity;
176 int32_t elementsLength;
181 int32_t ucharsCapacity;
182 int32_t ucharsLength;
187 #endif // __UCHARSTRIEBUILDER_H__