Home
last modified time | relevance | path

Searched refs:lookForIndex (Results 1 – 1 of 1) sorted by relevance

/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/
DStringSearch.kt80 var lookForIndex = lookFor.length - 1 in find() variable
81 while (lookForIndex >= 0 && reader[index] == lookFor[lookForIndex].toByte()) { in find()
83 lookForIndex-- in find()
85 if (lookForIndex < 0) { in find()
88 index += maxOf(skipLut[reader[index].toInt() and 0xFF], suffixSkip[lookForIndex]) in find()
113 var lookForIndex = lookFor.length - 1 in findInLoadedRegion() variable
114 while (lookForIndex >= 0 && reader[index] == lookFor[lookForIndex].toByte()) { in findInLoadedRegion()
116 lookForIndex-- in findInLoadedRegion()
118 if (lookForIndex < 0) { in findInLoadedRegion()
121 index += maxOf(skipLut[reader[index].toInt() and 0xFF], suffixSkip[lookForIndex]) in findInLoadedRegion()
[all …]