MediaWiki REL1_30
UtfNormal.php
Go to the documentation of this file.
1<?php
31use UtfNormal\Validator;
32
48class UtfNormal {
59 static function cleanUp( $string ) {
60 return Validator::cleanUp( $string );
61 }
62
71 static function toNFC( $string ) {
72 return Validator::toNFC( $string );
73 }
74
82 static function toNFD( $string ) {
83 return Validator::toNFD( $string );
84 }
85
94 static function toNFKC( $string ) {
95 return Validator::toNFKC( $string );
96 }
97
106 static function toNFKD( $string ) {
107 return Validator::toNFKD( $string );
108 }
109
116 static function quickIsNFC( $string ) {
117 return Validator::quickIsNFC( $string );
118 }
119
126 static function quickIsNFCVerify( &$string ) {
127 return Validator::quickIsNFCVerify( $string );
128 }
129}
Unicode normalization routines for working with UTF-8 strings.
Definition UtfNormal.php:48
static toNFD( $string)
Convert a UTF-8 string to normal form D, canonical decomposition.
Definition UtfNormal.php:82
static toNFKC( $string)
Convert a UTF-8 string to normal form KC, compatibility composition.
Definition UtfNormal.php:94
static toNFC( $string)
Convert a UTF-8 string to normal form C, canonical composition.
Definition UtfNormal.php:71
static cleanUp( $string)
The ultimate convenience function! Clean up invalid UTF-8 sequences, and convert to normal form C,...
Definition UtfNormal.php:59
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.