isISOControl
Returns true if this character is an ISO control character.
A character is considered to be an ISO control character if its category is CharCategory.CONTROL, meaning the Char is in the range '\u0000'..'\u001F' or in the range '\u007F'..'\u009F'.
Since Kotlin
1.5Samples
import java.util.*
import kotlin.test.*
fun main() {
//sampleStart
val chars = listOf('\u0000', '\u000E', '\u0009', '1', 'a')
val (isoControls, notIsoControls) = chars.partition { it.isISOControl() }
// some ISO-control char codes
println(isoControls.map(Char::code)) // [0, 14, 9]
// non-ISO-control chars
println(notIsoControls) // [1, a]
//sampleEnd
}Returns true if this character is an ISO control character.
A character is considered to be an ISO control character if its category is CharCategory.CONTROL, meaning the Char is in the range '\u0000'..'\u001F' or in the range '\u007F'..'\u009F'.
Since Kotlin
1.5Samples
import java.util.*
import kotlin.test.*
fun main() {
//sampleStart
val chars = listOf('\u0000', '\u000E', '\u0009', '1', 'a')
val (isoControls, notIsoControls) = chars.partition { it.isISOControl() }
// some ISO-control char codes
println(isoControls.map(Char::code)) // [0, 14, 9]
// non-ISO-control chars
println(notIsoControls) // [1, a]
//sampleEnd
}Returns true if this character is an ISO control character.
A character is considered to be an ISO control character if its category is CharCategory.CONTROL, meaning the Char is in the range '\u0000'..'\u001F' or in the range '\u007F'..'\u009F'.
Since Kotlin
1.0Samples
import java.util.*
import kotlin.test.*
fun main() {
//sampleStart
val chars = listOf('\u0000', '\u000E', '\u0009', '1', 'a')
val (isoControls, notIsoControls) = chars.partition { it.isISOControl() }
// some ISO-control char codes
println(isoControls.map(Char::code)) // [0, 14, 9]
// non-ISO-control chars
println(notIsoControls) // [1, a]
//sampleEnd
}Returns true if this character is an ISO control character.
A character is considered to be an ISO control character if its category is CharCategory.CONTROL, meaning the Char is in the range '\u0000'..'\u001F' or in the range '\u007F'..'\u009F'.
Since Kotlin
1.3Samples
import java.util.*
import kotlin.test.*
fun main() {
//sampleStart
val chars = listOf('\u0000', '\u000E', '\u0009', '1', 'a')
val (isoControls, notIsoControls) = chars.partition { it.isISOControl() }
// some ISO-control char codes
println(isoControls.map(Char::code)) // [0, 14, 9]
// non-ISO-control chars
println(notIsoControls) // [1, a]
//sampleEnd
}Returns true if this character is an ISO control character.
A character is considered to be an ISO control character if its category is CharCategory.CONTROL.
Since Kotlin
1.8Samples
import java.util.*
import kotlin.test.*
fun main() {
//sampleStart
val chars = listOf('\u0000', '\u000E', '\u0009', '1', 'a')
val (isoControls, notIsoControls) = chars.partition { it.isISOControl() }
// some ISO-control char codes
println(isoControls.map(Char::code)) // [0, 14, 9]
// non-ISO-control chars
println(notIsoControls) // [1, a]
//sampleEnd
}Returns true if this character is an ISO control character.
A character is considered to be an ISO control character if its category is CharCategory.CONTROL.
Since Kotlin
1.8Samples
import java.util.*
import kotlin.test.*
fun main() {
//sampleStart
val chars = listOf('\u0000', '\u000E', '\u0009', '1', 'a')
val (isoControls, notIsoControls) = chars.partition { it.isISOControl() }
// some ISO-control char codes
println(isoControls.map(Char::code)) // [0, 14, 9]
// non-ISO-control chars
println(notIsoControls) // [1, a]
//sampleEnd
}