# UCharacterEnums.ECharacterCategory

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# ECharacterCategory

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/icu/lang/UCharacterEnums.ECharacterCategory "View this page in Java")  

```
interface ECharacterCategory
```

|------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [android.icu.lang.UCharacterEnums.ECharacterCategory](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#) |

|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [UCharacter](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacter),[UCharacterCategory](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterCategory) |----------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------| | [UCharacter](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacter)                 | **\[icu enhancement\]** ICU's replacement for[java.lang.Character](https://developer.android.com/reference/kotlin/java/lang/Character.html#). | | [UCharacterCategory](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterCategory) | Enumerated Unicode category types from the UnicodeData.                                                                                       | |

'Enum' for the CharacterCategory constants. These constants are compatible in name**but not in value** with those defined in[java.lang.Character](https://developer.android.com/reference/kotlin/java/lang/Character.html#).

## Summary

|                                                                                                                                                               Constants                                                                                                                                                                ||
|------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [COMBINING_SPACING_MARK](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#COMBINING_SPACING_MARK:kotlin.Byte) Character type Mc                                                                  |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [CONNECTOR_PUNCTUATION](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#CONNECTOR_PUNCTUATION:kotlin.Byte) Character type Pc                                                                    |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [CONTROL](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#CONTROL:kotlin.Byte) Character type Cc                                                                                                |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [CURRENCY_SYMBOL](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#CURRENCY_SYMBOL:kotlin.Byte) Character type Sc                                                                                |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [DASH_PUNCTUATION](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#DASH_PUNCTUATION:kotlin.Byte) Character type Pd                                                                              |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [DECIMAL_DIGIT_NUMBER](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#DECIMAL_DIGIT_NUMBER:kotlin.Byte) Character type Nd                                                                      |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [ENCLOSING_MARK](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#ENCLOSING_MARK:kotlin.Byte) Character type Me                                                                                  |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [END_PUNCTUATION](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#END_PUNCTUATION:kotlin.Byte) Character type Pe                                                                                |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [FINAL_PUNCTUATION](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#FINAL_PUNCTUATION:kotlin.Byte) Character type Pf                                                                            |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [FINAL_QUOTE_PUNCTUATION](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#FINAL_QUOTE_PUNCTUATION:kotlin.Byte) Character type Pf This name is compatible with java.                             |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [FORMAT](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#FORMAT:kotlin.Byte) Character type Cf                                                                                                  |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [GENERAL_OTHER_TYPES](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#GENERAL_OTHER_TYPES:kotlin.Byte) Character type Cn Not Assigned (no characters in \[UnicodeData.txt\] have this property) |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [INITIAL_PUNCTUATION](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#INITIAL_PUNCTUATION:kotlin.Byte) Character type Pi                                                                        |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [INITIAL_QUOTE_PUNCTUATION](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#INITIAL_QUOTE_PUNCTUATION:kotlin.Byte) Character type Pi This name is compatible with java.                         |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [LETTER_NUMBER](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#LETTER_NUMBER:kotlin.Byte) Character type Nl                                                                                    |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [LINE_SEPARATOR](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#LINE_SEPARATOR:kotlin.Byte) Character type Zl                                                                                  |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [LOWERCASE_LETTER](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#LOWERCASE_LETTER:kotlin.Byte) Character type Ll                                                                              |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [MATH_SYMBOL](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#MATH_SYMBOL:kotlin.Byte) Character type Sm                                                                                        |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [MODIFIER_LETTER](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#MODIFIER_LETTER:kotlin.Byte) Character type Lm                                                                                |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [MODIFIER_SYMBOL](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#MODIFIER_SYMBOL:kotlin.Byte) Character type Sk                                                                                |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [NON_SPACING_MARK](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#NON_SPACING_MARK:kotlin.Byte) Character type Mn                                                                              |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [OTHER_LETTER](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#OTHER_LETTER:kotlin.Byte) Character type Lo                                                                                      |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [OTHER_NUMBER](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#OTHER_NUMBER:kotlin.Byte) Character type No                                                                                      |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [OTHER_PUNCTUATION](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#OTHER_PUNCTUATION:kotlin.Byte) Character type Po                                                                            |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [OTHER_SYMBOL](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#OTHER_SYMBOL:kotlin.Byte) Character type So                                                                                      |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [PARAGRAPH_SEPARATOR](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#PARAGRAPH_SEPARATOR:kotlin.Byte) Character type Zp                                                                        |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [PRIVATE_USE](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#PRIVATE_USE:kotlin.Byte) Character type Co                                                                                        |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [SPACE_SEPARATOR](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#SPACE_SEPARATOR:kotlin.Byte) Character type Zs                                                                                |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [START_PUNCTUATION](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#START_PUNCTUATION:kotlin.Byte) Character type Ps                                                                            |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [SURROGATE](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#SURROGATE:kotlin.Byte) Character type Cs                                                                                            |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [TITLECASE_LETTER](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#TITLECASE_LETTER:kotlin.Byte) Character type Lt                                                                              |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [UNASSIGNED](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#UNASSIGNED:kotlin.Byte) Unassigned character type                                                                                  |
| static[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [UPPERCASE_LETTER](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#UPPERCASE_LETTER:kotlin.Byte) Character type Lu                                                                              |

## Constants

### COMBINING_SPACING_MARK

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val COMBINING_SPACING_MARK: Byte
```

Character type Mc  

    Value: 8

### CONNECTOR_PUNCTUATION

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val CONNECTOR_PUNCTUATION: Byte
```

Character type Pc  

    Value: 22

### CONTROL

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val CONTROL: Byte
```

Character type Cc  

    Value: 15

### CURRENCY_SYMBOL

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val CURRENCY_SYMBOL: Byte
```

Character type Sc  

    Value: 25

### DASH_PUNCTUATION

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val DASH_PUNCTUATION: Byte
```

Character type Pd  

    Value: 19

### DECIMAL_DIGIT_NUMBER

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val DECIMAL_DIGIT_NUMBER: Byte
```

Character type Nd  

    Value: 9

### ENCLOSING_MARK

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val ENCLOSING_MARK: Byte
```

Character type Me  

    Value: 7

### END_PUNCTUATION

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val END_PUNCTUATION: Byte
```

Character type Pe  

    Value: 21

### FINAL_PUNCTUATION

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FINAL_PUNCTUATION: Byte
```

Character type Pf  

    Value: 29

**See Also**

- [#FINAL_QUOTE_PUNCTUATION](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#FINAL_QUOTE_PUNCTUATION:kotlin.Byte)  

### FINAL_QUOTE_PUNCTUATION

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FINAL_QUOTE_PUNCTUATION: Byte
```

Character type Pf This name is compatible with java.lang.Character's name for this type.  

    Value: 29

**See Also**

- [#FINAL_PUNCTUATION](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#FINAL_PUNCTUATION:kotlin.Byte)  

### FORMAT

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT: Byte
```

Character type Cf  

    Value: 16

### GENERAL_OTHER_TYPES

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val GENERAL_OTHER_TYPES: Byte
```

Character type Cn Not Assigned (no characters in \[UnicodeData.txt\] have this property)  

    Value: 0

### INITIAL_PUNCTUATION

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val INITIAL_PUNCTUATION: Byte
```

Character type Pi  

    Value: 28

**See Also**

- [#INITIAL_QUOTE_PUNCTUATION](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#INITIAL_QUOTE_PUNCTUATION:kotlin.Byte)  

### INITIAL_QUOTE_PUNCTUATION

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val INITIAL_QUOTE_PUNCTUATION: Byte
```

Character type Pi This name is compatible with java.lang.Character's name for this type.  

    Value: 28

**See Also**

- [#INITIAL_PUNCTUATION](https://developer.android.com/reference/kotlin/android/icu/lang/UCharacterEnums.ECharacterCategory#INITIAL_PUNCTUATION:kotlin.Byte)  

### LETTER_NUMBER

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val LETTER_NUMBER: Byte
```

Character type Nl  

    Value: 10

### LINE_SEPARATOR

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val LINE_SEPARATOR: Byte
```

Character type Zl  

    Value: 13

### LOWERCASE_LETTER

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val LOWERCASE_LETTER: Byte
```

Character type Ll  

    Value: 2

### MATH_SYMBOL

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val MATH_SYMBOL: Byte
```

Character type Sm  

    Value: 24

### MODIFIER_LETTER

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val MODIFIER_LETTER: Byte
```

Character type Lm  

    Value: 4

### MODIFIER_SYMBOL

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val MODIFIER_SYMBOL: Byte
```

Character type Sk  

    Value: 26

### NON_SPACING_MARK

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val NON_SPACING_MARK: Byte
```

Character type Mn  

    Value: 6

### OTHER_LETTER

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OTHER_LETTER: Byte
```

Character type Lo  

    Value: 5

### OTHER_NUMBER

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OTHER_NUMBER: Byte
```

Character type No  

    Value: 11

### OTHER_PUNCTUATION

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OTHER_PUNCTUATION: Byte
```

Character type Po  

    Value: 23

### OTHER_SYMBOL

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OTHER_SYMBOL: Byte
```

Character type So  

    Value: 27

### PARAGRAPH_SEPARATOR

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val PARAGRAPH_SEPARATOR: Byte
```

Character type Zp  

    Value: 14

### PRIVATE_USE

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val PRIVATE_USE: Byte
```

Character type Co  

    Value: 17

### SPACE_SEPARATOR

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val SPACE_SEPARATOR: Byte
```

Character type Zs  

    Value: 12

### START_PUNCTUATION

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val START_PUNCTUATION: Byte
```

Character type Ps  

    Value: 20

### SURROGATE

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val SURROGATE: Byte
```

Character type Cs  

    Value: 18

### TITLECASE_LETTER

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val TITLECASE_LETTER: Byte
```

Character type Lt  

    Value: 3

### UNASSIGNED

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val UNASSIGNED: Byte
```

Unassigned character type  

    Value: 0

### UPPERCASE_LETTER

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val UPPERCASE_LETTER: Byte
```

Character type Lu  

    Value: 1