mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 12:21:52 +09:00
wtf
This commit is contained in:
@@ -8440,7 +8440,6 @@ xxi,丶
|
||||
xr,。
|
||||
xxr,〇
|
||||
xxxxx,〇
|
||||
zxaa,
|
||||
zxab,,
|
||||
zxac,、
|
||||
zxad,。
|
||||
|
||||
@@ -14309,7 +14309,6 @@ yyyyl,ㄦ
|
||||
yyyym,ˊ
|
||||
yyyyn,ˇ
|
||||
yyyyo,ˋ
|
||||
zxaa,
|
||||
zxab,,
|
||||
zxac,、
|
||||
zxad,。
|
||||
|
||||
@@ -57,9 +57,9 @@ class IMEDictionary(private val filename: String) {
|
||||
var index = keys.searchForInterval(key) { it }.second
|
||||
|
||||
val allRelevantKeys = ArrayList<String>() // oh, oha, ohag, ohbt, ohby, ...
|
||||
for (i in 0 until 400) { // lookahead for length-first sorting, longest lookahead possible is around 300, so I'll give it 400
|
||||
if (index + 1 >= keys.size) break
|
||||
val keysym = keys[index + i]
|
||||
for (k in 0 until 400) { // lookahead for length-first sorting, longest lookahead possible is around 300, so I'll give it 400
|
||||
if (index + k >= keys.size) break
|
||||
val keysym = keys[index + k]
|
||||
if (!keysym.startsWith(key)) break
|
||||
allRelevantKeys.add(keysym)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user