Lines Matching refs:unitIndex
233 UCharsTrieBuilder::getElementUnit(int32_t i, int32_t unitIndex) const {
234 return elements[i].charAt(unitIndex, strings);
243 UCharsTrieBuilder::getLimitOfLinearMatch(int32_t first, int32_t last, int32_t unitIndex) const {
247 while(++unitIndex<minStringLength &&
248 firstElement.charAt(unitIndex, strings)==
249 lastElement.charAt(unitIndex, strings)) {}
250 return unitIndex;
254 UCharsTrieBuilder::countElementUnits(int32_t start, int32_t limit, int32_t unitIndex) const {
255 int32_t length=0; // Number of different units at unitIndex.
258 UChar unit=elements[i++].charAt(unitIndex, strings);
259 while(i<limit && unit==elements[i].charAt(unitIndex, strings)) {
268 UCharsTrieBuilder::skipElementsBySomeUnits(int32_t i, int32_t unitIndex, int32_t count) const {
270 UChar unit=elements[i++].charAt(unitIndex, strings);
271 while(unit==elements[i].charAt(unitIndex, strings)) {
279 UCharsTrieBuilder::indexOfElementWithNextUnit(int32_t i, int32_t unitIndex, UChar unit) const {
280 while(unit==elements[i].charAt(unitIndex, strings)) {
312 UCharsTrieBuilder::createLinearMatchNode(int32_t i, int32_t unitIndex, int32_t length,
315 elements[i].getString(strings).getBuffer()+unitIndex,
368 UCharsTrieBuilder::writeElementUnits(int32_t i, int32_t unitIndex, int32_t length) {
369 return write(elements[i].getString(strings).getBuffer()+unitIndex, length);