generalCategory

Retrieves the "General Category" of the first code point in some UTF-8 string. For broken UTF-8, the property is set to GeneralCategory.__ (0).

@property @safe @nogc pure nothrow
generalCategory
(
scope const(char)[] str
)

Parameters

str const(char)[]

the UTF-8 encoded text, which must not be empty

Return Value

Type: CodePointInfo!GeneralCategory

a code point information struct consisting of a the fields property, containing the GeneralCategory enumeration and the length of the code point in bytes.

Meta