Lines Matching refs:unitIndex

85 StringTrieBuilder::writeNode(int32_t start, int32_t limit, int32_t unitIndex) {  in writeNode()  argument
89 if(unitIndex==getElementStringLength(start)) { in writeNode()
98 int32_t minUnit=getElementUnit(start, unitIndex); in writeNode()
99 int32_t maxUnit=getElementUnit(limit-1, unitIndex); in writeNode()
102 int32_t lastUnitIndex=getLimitOfLinearMatch(start, limit-1, unitIndex); in writeNode()
105 int32_t length=lastUnitIndex-unitIndex; in writeNode()
113 writeElementUnits(start, unitIndex, length); in writeNode()
117 int32_t length=countElementUnits(start, limit, unitIndex); in writeNode()
119 writeBranchSubNode(start, limit, unitIndex, length); in writeNode()
133 StringTrieBuilder::writeBranchSubNode(int32_t start, int32_t limit, int32_t unitIndex, int32_t leng… in writeBranchSubNode() argument
140 int32_t i=skipElementsBySomeUnits(start, unitIndex, length/2); in writeBranchSubNode()
142 middleUnits[ltLength]=getElementUnit(i, unitIndex); // middle unit in writeBranchSubNode()
143 lessThan[ltLength]=writeBranchSubNode(start, i, unitIndex, length/2); in writeBranchSubNode()
155 UChar unit=getElementUnit(i++, unitIndex); in writeBranchSubNode()
156 i=indexOfElementWithNextUnit(i, unitIndex, unit); in writeBranchSubNode()
157 isFinal[unitNumber]= start==i-1 && unitIndex+1==getElementStringLength(start); in writeBranchSubNode()
171 … jumpTargets[unitNumber]=writeNode(starts[unitNumber], starts[unitNumber+1], unitIndex+1); in writeBranchSubNode()
177 writeNode(start, limit, unitIndex+1); in writeBranchSubNode()
178 int32_t offset=write(getElementUnit(start, unitIndex)); in writeBranchSubNode()
191 offset=write(getElementUnit(start, unitIndex)); in writeBranchSubNode()
206 StringTrieBuilder::makeNode(int32_t start, int32_t limit, int32_t unitIndex, UErrorCode &errorCode)… in makeNode() argument
212 if(unitIndex==getElementStringLength(start)) { in makeNode()
222 int32_t minUnit=getElementUnit(start, unitIndex); in makeNode()
223 int32_t maxUnit=getElementUnit(limit-1, unitIndex); in makeNode()
226 int32_t lastUnitIndex=getLimitOfLinearMatch(start, limit-1, unitIndex); in makeNode()
229 int32_t length=lastUnitIndex-unitIndex; in makeNode()
237 node=createLinearMatchNode(start, unitIndex, length, nextNode); in makeNode()
240 int32_t length=countElementUnits(start, limit, unitIndex); in makeNode()
242 Node *subNode=makeBranchSubNode(start, limit, unitIndex, length, errorCode); in makeNode()
258 StringTrieBuilder::makeBranchSubNode(int32_t start, int32_t limit, int32_t unitIndex, in makeBranchSubNode() argument
269 int32_t i=skipElementsBySomeUnits(start, unitIndex, length/2); in makeBranchSubNode()
271 middleUnits[ltLength]=getElementUnit(i, unitIndex); // middle unit in makeBranchSubNode()
272 lessThan[ltLength]=makeBranchSubNode(start, i, unitIndex, length/2, errorCode); in makeBranchSubNode()
290 UChar unit=getElementUnit(i++, unitIndex); in makeBranchSubNode()
291 i=indexOfElementWithNextUnit(i, unitIndex, unit); in makeBranchSubNode()
292 if(start==i-1 && unitIndex+1==getElementStringLength(start)) { in makeBranchSubNode()
295 listNode->add(unit, makeNode(start, i, unitIndex+1, errorCode)); in makeBranchSubNode()
300 UChar unit=getElementUnit(start, unitIndex); in makeBranchSubNode()
301 if(start==limit-1 && unitIndex+1==getElementStringLength(start)) { in makeBranchSubNode()
304 listNode->add(unit, makeNode(start, limit, unitIndex+1, errorCode)); in makeBranchSubNode()