class NFKC

Codepoint-String in Normal Form KC (Compatibility Composed)

class NFKC is Uni {}

A Codepoint string in Unicode Normalization Form KC. It is created by Compatibility Decomposition, followed by Canonical Composition. For more information on what this means, see Unicode TR15.

Type Graph

Type relations for NFKC
perl6-type-graph NFKC NFKC Uni Uni NFKC->Uni Mu Mu Any Any Any->Mu Positional Positional Stringy Stringy Uni->Any Uni->Positional Uni->Stringy

Stand-alone image: vector

Routines supplied by class Uni

NFKC inherits from class Uni, which provides the following routines:

(Uni) method new

method new(*@codes --> Uni:D)

Creates a new Uni instance from the given codepoint numbers.

(Uni) method NFC

method NFC(Uni:D: --> NFC:D)

Returns a NFC (Normal Form Composed)-converted version of the invocant.

(Uni) method NFD

method NFD(Uni:D: --> NFD:D)

Returns a NFD (Normal Form Decomposed)-converted version of the invocant.

(Uni) method NFKC

method NFKC(Uni:D: --> NFKC:D)

Returns a NFKC (Normal Form Compatibility Composed)-converted version of the invocant.

(Uni) method NFKD

method NFKD(Uni:D: --> NFKD:D)

Returns a NFKD (Normal Form Compatibility Decomposed)-converted version of the invocant.

(Uni) method codes

method codes(Uni:D: --> Int:D)

Returns the number of codepoints in the invocant.

(Uni) method elems

method elems(Uni:D: --> Int:D)

Returns the number of codepoints in the invocant.

Routines supplied by role Positional

NFKC inherits from class Uni, which does role Positional, which provides the following routines:

(Positional) method of

method of()

Returns the type constraint for elements of the positional container. Defaults to Mu.