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 #ifndef U_HIDE_INTERNAL_API
141 class UCTLinearMatchNode :
public LinearMatchNode {
143 UCTLinearMatchNode(
const UChar *units, int32_t len, Node *nextNode);
152 Node *nextNode)
const;
154 UBool ensureCapacity(int32_t length);
155 virtual int32_t
write(int32_t unit);
156 int32_t
write(
const UChar *s, int32_t length);
163 UCharsTrieElement *elements;
164 int32_t elementsCapacity;
165 int32_t elementsLength;
170 int32_t ucharsCapacity;
171 int32_t ucharsLength;
176 #endif // __UCHARSTRIEBUILDER_H__