Name

SPVM::Unicode::Normalize - Normalizing UTF-8

Description

The Unicode::Normalize class in SPVM has methods to normalize UTF-8.

Usage

use Unicode::Normalize;
 
my $NFD_string  = Unicode::Normalize->NFD($string);

my $NFC_string  = Unicode::Normalize->NFC($string);

my $NFKD_string = Unicode::Normalize->NFKD($string);

my $NFKC_string = Unicode::Normalize->NFKC($string);

Class Methods

NFC

static method NFC : string ($string : string);

Returns the Normalization Form C (formed by canonical decomposition followed by canonical composition).

NFD

static method NFD : string ($string : string);

Returns the Normalization Form D (formed by canonical decomposition).

NFKC

static method NFKC : string ($string : string);

Returns the Normalization Form KC (formed by compatibility decomposition followed by canonical composition).

NFKD

static method NFKD : string ($string : string);

Returns the Normalization Form KD (formed by compatibility decomposition).

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License