Home
last modified time | relevance | path

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

/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/
DStringSearch.kt27 class StringSearch(val lookFor: String) { constant in trebuchet.util.StringSearch
28 val skipLut = ByteArray(256) { lookFor.length.toByte() } in <lambda>()
29 val suffixSkip = ByteArray(lookFor.length)
46 val last = lookFor.length - 1
48 skipLut[lookFor[i].toInt() and 0xFF] = (last - i).toByte()
53 if (isPrefix(lookFor, i + 1)) {
59 val suffixLength = longestCommonSuffix(lookFor, i)
60 if(lookFor[i - suffixLength] != lookFor[last - suffixLength]) {
66 val length get() = lookFor.length
69 var index = startIndex + lookFor.length - 1 in find()
[all …]