phpBB API Documentation
Class

utf_normalizer

class utf_normalizer

Unicode normalization routines

Methods

cleanup($str)

Validate, cleanup and normalize a string

nfc($str)

Validate and normalize a UTF string to NFC

nfkc($str)

Validate and normalize a UTF string to NFKC

nfd($str)

Validate and normalize a UTF string to NFD

nfkd($str)

Validate and normalize a UTF string to NFKD

recompose($str, $pos, $len, $qc, $decomp_map)

Recompose a UTF string

decompose($str, $pos, $len, $decomp_map)

Decompose a UTF string

Details

at line 80
public cleanup($str)

Validate, cleanup and normalize a string

The ultimate convenience function! Clean up invalid UTF-8 sequences, and convert to Normal Form C, canonical composition.

Parameters

$str

at line 122
public nfc($str)

Validate and normalize a UTF string to NFC

Parameters

$str

at line 154
public nfkc($str)

Validate and normalize a UTF string to NFKC

Parameters

$str

at line 186
public nfd($str)

Validate and normalize a UTF string to NFD

Parameters

$str

at line 212
public nfkd($str)

Validate and normalize a UTF string to NFKD

Parameters

$str

at line 245
public recompose($str, $pos, $len, $qc, $decomp_map)

Recompose a UTF string

Parameters

$str
$pos
$len
$qc
$decomp_map

at line 947
public decompose($str, $pos, $len, $decomp_map)

Decompose a UTF string

Parameters

$str
$pos
$len
$decomp_map