15 #ifndef __UCHARSTRIEBUILDER_H__
16 #define __UCHARSTRIEBUILDER_H__
19 #include "unicode/stringtriebuilder.h"
25 class UCharsTrieElement;
122 void buildUChars(UStringTrieBuildOption buildOption,
UErrorCode &errorCode);
130 virtual int32_t
countElementUnits(int32_t start, int32_t limit, int32_t unitIndex)
const;
137 virtual int32_t
getMinLinearMatch()
const {
return UCharsTrie::kMinLinearMatch; }
140 class UCTLinearMatchNode :
public LinearMatchNode {
142 UCTLinearMatchNode(
const UChar *units, int32_t len, Node *nextNode);
150 Node *nextNode)
const;
152 UBool ensureCapacity(int32_t length);
153 virtual int32_t
write(int32_t unit);
154 int32_t
write(
const UChar *s, int32_t length);
161 UCharsTrieElement *elements;
162 int32_t elementsCapacity;
163 int32_t elementsLength;
168 int32_t ucharsCapacity;
169 int32_t ucharsLength;
174 #endif // __UCHARSTRIEBUILDER_H__