adopting Java 9/Kotlin 1.2

This commit is contained in:
minjaesong
2018-02-10 21:40:17 +09:00
parent f8568899d9
commit e565a9f173
31 changed files with 326 additions and 69 deletions

View File

@@ -184,12 +184,12 @@ object Lang {
val index = lastChar.toInt() - HANGUL_SYL_START
return if (index % 28 == 0) word + "" else word + ""
}
else if (lastChar >= 'A' && lastChar <= 'Z' || lastChar >= 'a' && lastChar <= 'z') {
else if (lastChar in 'A'..'Z' || lastChar in 'a'..'z') {
val index = (lastChar.toInt() - 0x41) % 0x20
return if (HANGUL_POST_INDEX_ALPH[index] == 0) word + "" else word + ""
}
else {
return "(는)"
return ""
}
}
@@ -200,12 +200,12 @@ object Lang {
val index = lastChar.toInt() - HANGUL_SYL_START
return if (index % 28 == 0) word + "" else word + ""
}
else if (lastChar >= 'A' && lastChar <= 'Z' || lastChar >= 'a' && lastChar <= 'z') {
else if (lastChar in 'A'..'Z' || lastChar in 'a'..'z') {
val index = (lastChar.toInt() - 0x41) % 0x20
return if (HANGUL_POST_INDEX_ALPH[index] == 0) word + "" else word + ""
}
else {
return "(가)"
return ""
}
}