enum class CharCategory
Represents the character general category in the Unicode specification.
General category "Cn" in the Unicode specification.
General category "Lu" in the Unicode specification.
General category "Ll" in the Unicode specification.
General category "Lt" in the Unicode specification.
General category "Lm" in the Unicode specification.
General category "Lo" in the Unicode specification.
General category "Mn" in the Unicode specification.
General category "Me" in the Unicode specification.
General category "Mc" in the Unicode specification.
General category "Nd" in the Unicode specification.
General category "Nl" in the Unicode specification.
General category "No" in the Unicode specification.
General category "Zs" in the Unicode specification.
General category "Zl" in the Unicode specification.
General category "Zp" in the Unicode specification.
General category "Cc" in the Unicode specification.
General category "Cf" in the Unicode specification.
General category "Co" in the Unicode specification.
General category "Cs" in the Unicode specification.
General category "Pd" in the Unicode specification.
General category "Ps" in the Unicode specification.
General category "Pe" in the Unicode specification.
General category "Pc" in the Unicode specification.
General category "Po" in the Unicode specification.
General category "Sm" in the Unicode specification.
General category "Sc" in the Unicode specification.
General category "Sk" in the Unicode specification.
General category "So" in the Unicode specification.
General category "Pi" in the Unicode specification.
General category "Pf" in the Unicode specification.
Two-letter code of this general category in the Unicode specification.
val code: String
val value: Int
Returns the CharCategory corresponding to the specified category that represents a Java general category constant.
fun valueOf(category: Int): CharCategory
Returns a Java Class instance of the enum the given constant belongs to.
val <E : Enum<E>> Enum<E>.declaringJavaClass: Class<E>
Ensures that this value is not less than the specified minimumValue.
fun <T : Comparable<T>> T.coerceAtLeast(minimumValue: T): T
Ensures that this value is not greater than the specified maximumValue.
fun <T : Comparable<T>> T.coerceAtMost(maximumValue: T): T
Ensures that this value lies in the specified range minimumValue..maximumValue.
fun <T : Comparable<T>> T.coerceIn( minimumValue: T?, maximumValue: T? ): T
Ensures that this value lies in the specified range.
fun <T : Comparable<T>> T.coerceIn( range: ClosedFloatingPointRange<T> ): T
fun <T : Comparable<T>> T.coerceIn(range: ClosedRange<T>): T
Creates a range from this Comparable value to the specified that value.
operator fun <T : Comparable<T>> T.rangeTo( that: T ): ClosedRange<T>
Creates an open-ended range from this Comparable value to the specified that value.
operator fun <T : Comparable<T>> T.rangeUntil( that: T ): OpenEndRange<T>
General category "Mc" in the Unicode specification.
General category "Pc" in the Unicode specification.
General category "Cc" in the Unicode specification.
General category "Sc" in the Unicode specification.
General category "Pd" in the Unicode specification.
General category "Nd" in the Unicode specification.
General category "Me" in the Unicode specification.
General category "Pe" in the Unicode specification.
General category "Pf" in the Unicode specification.
General category "Cf" in the Unicode specification.
General category "Pi" in the Unicode specification.
General category "Nl" in the Unicode specification.
General category "Zl" in the Unicode specification.
General category "Ll" in the Unicode specification.
General category "Sm" in the Unicode specification.
General category "Lm" in the Unicode specification.
General category "Sk" in the Unicode specification.
General category "Mn" in the Unicode specification.
General category "Lo" in the Unicode specification.
General category "No" in the Unicode specification.
General category "Po" in the Unicode specification.
General category "So" in the Unicode specification.
General category "Zp" in the Unicode specification.
General category "Co" in the Unicode specification.
General category "Zs" in the Unicode specification.
General category "Ps" in the Unicode specification.
General category "Cs" in the Unicode specification.
General category "Lt" in the Unicode specification.
General category "Cn" in the Unicode specification.
General category "Lu" in the Unicode specification.
© 2010–2023 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/