31use UtfNormal\Validator;
60 return Validator::cleanUp( $string );
71 static function toNFC( $string ) {
72 return Validator::toNFC( $string );
82 static function toNFD( $string ) {
83 return Validator::toNFD( $string );
95 return Validator::toNFKC( $string );
107 return Validator::toNFKD( $string );
117 return Validator::quickIsNFC( $string );
127 return Validator::quickIsNFCVerify( $string );
Unicode normalization routines for working with UTF-8 strings.
static toNFD( $string)
Convert a UTF-8 string to normal form D, canonical decomposition.
static toNFKC( $string)
Convert a UTF-8 string to normal form KC, compatibility composition.
static toNFC( $string)
Convert a UTF-8 string to normal form C, canonical composition.
static cleanUp( $string)
The ultimate convenience function! Clean up invalid UTF-8 sequences, and convert to normal form C,...
static quickIsNFC( $string)
Returns true if the string is definitely in NFC.
static quickIsNFCVerify(&$string)
Returns true if the string is definitely in NFC.
static toNFKD( $string)
Convert a UTF-8 string to normal form KD, compatibility decomposition.