15 #ifndef __UCHARSTRIEBUILDER_H__
16 #define __UCHARSTRIEBUILDER_H__
30 class UCharsTrieElement;
135 virtual int32_t
countElementUnits(int32_t start, int32_t limit, int32_t unitIndex)
const;
142 virtual int32_t
getMinLinearMatch()
const {
return UCharsTrie::kMinLinearMatch; }
145 #ifndef U_HIDE_INTERNAL_API
146 class UCTLinearMatchNode :
public LinearMatchNode {
148 UCTLinearMatchNode(
const UChar *units, int32_t len, Node *nextNode);
150 virtual void write(StringTrieBuilder &builder);
157 Node *nextNode)
const;
159 UBool ensureCapacity(int32_t length);
160 virtual int32_t
write(int32_t unit);
161 int32_t
write(
const UChar *s, int32_t length);
167 UnicodeString strings;
168 UCharsTrieElement *elements;
169 int32_t elementsCapacity;
170 int32_t elementsLength;
175 int32_t ucharsCapacity;
176 int32_t ucharsLength;
181 #endif // __UCHARSTRIEBUILDER_H__