kotlin / 1.7.0 / api / latest / jvm / stdlib / kotlin.text / -char-category / value-of.html /

valueOf

Platform and version requirements: JVM (1.0)
fun valueOf(category: Int): CharCategory

Returns the CharCategory corresponding to the specified category that represents a Java general category constant.

Exceptions

IllegalArgumentException - if the category does not represent a Java general category constant.

© 2010–2022 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/-char-category/value-of.html