v1.9.10
  • Solutions
    • Multiplatform
    • Server-side
    • Data science
    • Android
  • Docs
  • Community
  • Teach
  • Play
    • Playground
    • Examples
    • Koans
← Docs
kotlin-stdlib / kotlin.text / CharCategory / valueOf

valueOf

JVM
1.0
fun valueOf(category: Int): CharCategory
(source)

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.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Kotlin™ is protected under the Kotlin Foundation and licensed under the Apache 2 license.
Supported and developed by JetBrains