Function

uni_gc

General category.

Since v1.0
unigc uni_gc(

Parameters 🔗

c in

The input character.

Return Value 🔗

The general category of c.

Discussion 🔗

Return the General_Category character property for the code point c. This property describes a character’s general classification. For example, the Latin Capital Letter A (U+0041) has a general category value of UNI_UPPERCASE_LETTER which indicates it’s an uppercase letter.

For a complete list of all possible general category values, see unigc.

Support for the general category character property must be enabled in the JSON configuration file otherwise the function will always return UNI_UNASSIGNED.

{
    "characterProperties": [
        "General_Category"
    ]
}