Protected Member Functions |
| StringTrieBuilder () |
virtual | ~StringTrieBuilder () |
void | createCompactBuilder (int32_t sizeGuess, UErrorCode &errorCode) |
void | deleteCompactBuilder () |
void | build (UStringTrieBuildOption buildOption, int32_t elementsLength, UErrorCode &errorCode) |
int32_t | writeNode (int32_t start, int32_t limit, int32_t unitIndex) |
int32_t | writeBranchSubNode (int32_t start, int32_t limit, int32_t unitIndex, int32_t length) |
Node * | makeNode (int32_t start, int32_t limit, int32_t unitIndex, UErrorCode &errorCode) |
Node * | makeBranchSubNode (int32_t start, int32_t limit, int32_t unitIndex, int32_t length, UErrorCode &errorCode) |
virtual int32_t | getElementStringLength (int32_t i) const =0 |
virtual UChar | getElementUnit (int32_t i, int32_t unitIndex) const =0 |
virtual int32_t | getElementValue (int32_t i) const =0 |
virtual int32_t | getLimitOfLinearMatch (int32_t first, int32_t last, int32_t unitIndex) const =0 |
virtual int32_t | countElementUnits (int32_t start, int32_t limit, int32_t unitIndex) const =0 |
virtual int32_t | skipElementsBySomeUnits (int32_t i, int32_t unitIndex, int32_t count) const =0 |
virtual int32_t | indexOfElementWithNextUnit (int32_t i, int32_t unitIndex, UChar unit) const =0 |
virtual UBool | matchNodesCanHaveValues () const =0 |
virtual int32_t | getMaxBranchLinearSubNodeLength () const =0 |
virtual int32_t | getMinLinearMatch () const =0 |
virtual int32_t | getMaxLinearMatchLength () const =0 |
Node * | registerNode (Node *newNode, UErrorCode &errorCode) |
| Makes sure that there is only one unique node registered that is equivalent to newNode.
|
Node * | registerFinalValue (int32_t value, UErrorCode &errorCode) |
| Makes sure that there is only one unique FinalValueNode registered with this value.
|
virtual Node * | createLinearMatchNode (int32_t i, int32_t unitIndex, int32_t length, Node *nextNode) const =0 |
virtual int32_t | write (int32_t unit)=0 |
virtual int32_t | writeElementUnits (int32_t i, int32_t unitIndex, int32_t length)=0 |
virtual int32_t | writeValueAndFinal (int32_t i, UBool isFinal)=0 |
virtual int32_t | writeValueAndType (UBool hasValue, int32_t value, int32_t node)=0 |
virtual int32_t | writeDeltaTo (int32_t jumpTarget)=0 |
Base class for string trie builder classes.
This class is not intended for public subclassing.
- Draft:
- This API may be changed in the future versions and was introduced in ICU 4.8
Definition at line 56 of file stringtriebuilder.h.