0cb2348b2f
#KT-6807 Fixed
13 lines
302 B
Kotlin
Vendored
13 lines
302 B
Kotlin
Vendored
test@ for (i in 0..max) {
|
|
var n = substring.length()
|
|
var j = i
|
|
var k = 0
|
|
while (n-- != 0) {
|
|
if (searchMe.charAt(j++) !== substring.charAt(k++)) {
|
|
continue@test
|
|
}
|
|
}
|
|
foundIt = true
|
|
break@test
|
|
}
|
|
println(if (foundIt) "Found it" else "Didn't find it") |