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.
at line 122
public
nfc($str)
Validate and normalize a UTF string to NFC
at line 154
public
nfkc($str)
Validate and normalize a UTF string to NFKC
at line 186
public
nfd($str)
Validate and normalize a UTF string to NFD
at line 212
public
nfkd($str)
Validate and normalize a UTF string to NFKD
at line 245
public
recompose($str, $pos, $len, $qc, $decomp_map)
Recompose a UTF string
at line 947
public
decompose($str, $pos, $len, $decomp_map)
Decompose a UTF string