CharCategory

expect enum CharCategory : Enum<CharCategory>

Represents the character general category in the Unicode specification.

Since Kotlin

1.5
actual enum CharCategory : Enum<CharCategory>
actual enum CharCategory : Enum<CharCategory>
actual enum CharCategory : Enum<CharCategory>

Represents the character general category in the Unicode specification.

Entries

UNASSIGNED
Link copied to clipboard

General category "Cn" in the Unicode specification.

UNASSIGNED(0, "Cn")

General category "Cn" in the Unicode specification.

UNASSIGNED(0, "Cn")

General category "Cn" in the Unicode specification.

UNASSIGNED(0, "Cn")

General category "Cn" in the Unicode specification.

UPPERCASE_LETTER
Link copied to clipboard

General category "Lu" in the Unicode specification.

General category "Lu" in the Unicode specification.

General category "Lu" in the Unicode specification.

General category "Lu" in the Unicode specification.

LOWERCASE_LETTER
Link copied to clipboard

General category "Ll" in the Unicode specification.

General category "Ll" in the Unicode specification.

General category "Ll" in the Unicode specification.

General category "Ll" in the Unicode specification.

TITLECASE_LETTER
Link copied to clipboard

General category "Lt" in the Unicode specification.

General category "Lt" in the Unicode specification.

General category "Lt" in the Unicode specification.

General category "Lt" in the Unicode specification.

MODIFIER_LETTER
Link copied to clipboard

General category "Lm" in the Unicode specification.

General category "Lm" in the Unicode specification.

General category "Lm" in the Unicode specification.

General category "Lm" in the Unicode specification.

OTHER_LETTER
Link copied to clipboard

General category "Lo" in the Unicode specification.

OTHER_LETTER(5, "Lo")

General category "Lo" in the Unicode specification.

OTHER_LETTER(5, "Lo")

General category "Lo" in the Unicode specification.

OTHER_LETTER(5, "Lo")

General category "Lo" in the Unicode specification.

NON_SPACING_MARK
Link copied to clipboard

General category "Mn" in the Unicode specification.

General category "Mn" in the Unicode specification.

General category "Mn" in the Unicode specification.

General category "Mn" in the Unicode specification.

ENCLOSING_MARK
Link copied to clipboard

General category "Me" in the Unicode specification.

General category "Me" in the Unicode specification.

General category "Me" in the Unicode specification.

General category "Me" in the Unicode specification.

COMBINING_SPACING_MARK
Link copied to clipboard

General category "Mc" in the Unicode specification.

General category "Mc" in the Unicode specification.

General category "Mc" in the Unicode specification.

General category "Mc" in the Unicode specification.

DECIMAL_DIGIT_NUMBER
Link copied to clipboard

General category "Nd" in the Unicode specification.

General category "Nd" in the Unicode specification.

General category "Nd" in the Unicode specification.

General category "Nd" in the Unicode specification.

LETTER_NUMBER
Link copied to clipboard

General category "Nl" in the Unicode specification.

LETTER_NUMBER(10, "Nl")

General category "Nl" in the Unicode specification.

LETTER_NUMBER(10, "Nl")

General category "Nl" in the Unicode specification.

LETTER_NUMBER(10, "Nl")

General category "Nl" in the Unicode specification.

OTHER_NUMBER
Link copied to clipboard

General category "No" in the Unicode specification.

OTHER_NUMBER(11, "No")

General category "No" in the Unicode specification.

OTHER_NUMBER(11, "No")

General category "No" in the Unicode specification.

OTHER_NUMBER(11, "No")

General category "No" in the Unicode specification.

SPACE_SEPARATOR
Link copied to clipboard

General category "Zs" in the Unicode specification.

SPACE_SEPARATOR(12, "Zs")

General category "Zs" in the Unicode specification.

SPACE_SEPARATOR(12, "Zs")

General category "Zs" in the Unicode specification.

SPACE_SEPARATOR(12, "Zs")

General category "Zs" in the Unicode specification.

LINE_SEPARATOR
Link copied to clipboard

General category "Zl" in the Unicode specification.

LINE_SEPARATOR(13, "Zl")

General category "Zl" in the Unicode specification.

LINE_SEPARATOR(13, "Zl")

General category "Zl" in the Unicode specification.

LINE_SEPARATOR(13, "Zl")

General category "Zl" in the Unicode specification.

PARAGRAPH_SEPARATOR
Link copied to clipboard

General category "Zp" in the Unicode specification.

General category "Zp" in the Unicode specification.

General category "Zp" in the Unicode specification.

General category "Zp" in the Unicode specification.

CONTROL
Link copied to clipboard

General category "Cc" in the Unicode specification.

CONTROL(15, "Cc")

General category "Cc" in the Unicode specification.

CONTROL(15, "Cc")

General category "Cc" in the Unicode specification.

CONTROL(15, "Cc")

General category "Cc" in the Unicode specification.

FORMAT
Link copied to clipboard

General category "Cf" in the Unicode specification.

FORMAT(16, "Cf")

General category "Cf" in the Unicode specification.

FORMAT(16, "Cf")

General category "Cf" in the Unicode specification.

FORMAT(16, "Cf")

General category "Cf" in the Unicode specification.

PRIVATE_USE
Link copied to clipboard

General category "Co" in the Unicode specification.

PRIVATE_USE(18, "Co")

General category "Co" in the Unicode specification.

PRIVATE_USE(18, "Co")

General category "Co" in the Unicode specification.

PRIVATE_USE(18, "Co")

General category "Co" in the Unicode specification.

SURROGATE
Link copied to clipboard

General category "Cs" in the Unicode specification.

SURROGATE(19, "Cs")

General category "Cs" in the Unicode specification.

SURROGATE(19, "Cs")

General category "Cs" in the Unicode specification.

SURROGATE(19, "Cs")

General category "Cs" in the Unicode specification.

DASH_PUNCTUATION
Link copied to clipboard

General category "Pd" in the Unicode specification.

General category "Pd" in the Unicode specification.

General category "Pd" in the Unicode specification.

General category "Pd" in the Unicode specification.

START_PUNCTUATION
Link copied to clipboard

General category "Ps" in the Unicode specification.

General category "Ps" in the Unicode specification.

General category "Ps" in the Unicode specification.

General category "Ps" in the Unicode specification.

END_PUNCTUATION
Link copied to clipboard

General category "Pe" in the Unicode specification.

END_PUNCTUATION(22, "Pe")

General category "Pe" in the Unicode specification.

END_PUNCTUATION(22, "Pe")

General category "Pe" in the Unicode specification.

END_PUNCTUATION(22, "Pe")

General category "Pe" in the Unicode specification.

CONNECTOR_PUNCTUATION
Link copied to clipboard

General category "Pc" in the Unicode specification.

General category "Pc" in the Unicode specification.

General category "Pc" in the Unicode specification.

General category "Pc" in the Unicode specification.

OTHER_PUNCTUATION
Link copied to clipboard

General category "Po" in the Unicode specification.

General category "Po" in the Unicode specification.

General category "Po" in the Unicode specification.

General category "Po" in the Unicode specification.

MATH_SYMBOL
Link copied to clipboard

General category "Sm" in the Unicode specification.

MATH_SYMBOL(25, "Sm")

General category "Sm" in the Unicode specification.

MATH_SYMBOL(25, "Sm")

General category "Sm" in the Unicode specification.

MATH_SYMBOL(25, "Sm")

General category "Sm" in the Unicode specification.

CURRENCY_SYMBOL
Link copied to clipboard

General category "Sc" in the Unicode specification.

CURRENCY_SYMBOL(26, "Sc")

General category "Sc" in the Unicode specification.

CURRENCY_SYMBOL(26, "Sc")

General category "Sc" in the Unicode specification.

CURRENCY_SYMBOL(26, "Sc")

General category "Sc" in the Unicode specification.

MODIFIER_SYMBOL
Link copied to clipboard

General category "Sk" in the Unicode specification.

MODIFIER_SYMBOL(27, "Sk")

General category "Sk" in the Unicode specification.

MODIFIER_SYMBOL(27, "Sk")

General category "Sk" in the Unicode specification.

MODIFIER_SYMBOL(27, "Sk")

General category "Sk" in the Unicode specification.

OTHER_SYMBOL
Link copied to clipboard

General category "So" in the Unicode specification.

OTHER_SYMBOL(28, "So")

General category "So" in the Unicode specification.

OTHER_SYMBOL(28, "So")

General category "So" in the Unicode specification.

OTHER_SYMBOL(28, "So")

General category "So" in the Unicode specification.

INITIAL_QUOTE_PUNCTUATION
Link copied to clipboard

General category "Pi" in the Unicode specification.

General category "Pi" in the Unicode specification.

General category "Pi" in the Unicode specification.

General category "Pi" in the Unicode specification.

FINAL_QUOTE_PUNCTUATION
Link copied to clipboard

General category "Pf" in the Unicode specification.

General category "Pf" in the Unicode specification.

General category "Pf" in the Unicode specification.

General category "Pf" in the Unicode specification.

Types

Companion
Link copied to clipboard
object Companion
object Companion
object Companion

Functions

contains
Link copied to clipboard
expect operator fun contains(char: Char): Boolean

Returns true if char character belongs to this category.

actual operator fun contains(char: Char): Boolean

Returns true if char character belongs to this category.

actual operator fun contains(char: Char): Boolean

Returns true if char character belongs to this category.

actual operator fun contains(char: Char): Boolean

Returns true if char character belongs to this category.

Properties

code
Link copied to clipboard
expect val code: String

Two-letter code of this general category in the Unicode specification.

actual val code: String
actual val code: String
actual val code: String
name
Link copied to clipboard
val name: String
name
Link copied to clipboard
val name: String
name
Link copied to clipboard
val name: String
name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int
ordinal
Link copied to clipboard
val ordinal: Int
ordinal
Link copied to clipboard
val ordinal: Int
ordinal
Link copied to clipboard
val ordinal: Int
value
Link copied to clipboard
val value: Int
value
Link copied to clipboard
val value: Int