ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
UtfNormal.php File Reference

Go to the source code of this file.

Data Structures

class  UtfNormal
 

Namespaces

 UtfNormal
 Unicode normalization routines for working with UTF-8 strings.
 
 MediaWiki
 

Variables

global $utfCombiningClass = NULL
 
global $utfCanonicalComp = NULL
 
global $utfCanonicalDecomp = NULL
 
global $utfCompatibilityDecomp = NULL
 
const UNICODE_HANGUL_FIRST 0xac00
 
const UNICODE_HANGUL_LAST 0xd7a3
 
const UNICODE_HANGUL_LBASE 0x1100
 
const UNICODE_HANGUL_VBASE 0x1161
 
const UNICODE_HANGUL_TBASE 0x11a7
 
const UNICODE_HANGUL_LCOUNT 19
 
const UNICODE_HANGUL_VCOUNT 21
 
const UNICODE_HANGUL_TCOUNT 28
 
const UNICODE_HANGUL_NCOUNT UNICODE_HANGUL_VCOUNT * UNICODE_HANGUL_TCOUNT
 
const UNICODE_HANGUL_LEND UNICODE_HANGUL_LBASE + UNICODE_HANGUL_LCOUNT - 1
 
const UNICODE_HANGUL_VEND UNICODE_HANGUL_VBASE + UNICODE_HANGUL_VCOUNT - 1
 
const UNICODE_HANGUL_TEND UNICODE_HANGUL_TBASE + UNICODE_HANGUL_TCOUNT - 1
 
const UNICODE_SURROGATE_FIRST 0xd800
 
const UNICODE_SURROGATE_LAST 0xdfff
 
const UNICODE_MAX 0x10ffff
 
const UNICODE_REPLACEMENT 0xfffd
 
const UTF8_HANGUL_FIRST codepointToUtf8( UNICODE_HANGUL_FIRST )
 
const UTF8_HANGUL_LAST codepointToUtf8( UNICODE_HANGUL_LAST )
 
const UTF8_HANGUL_LBASE codepointToUtf8( UNICODE_HANGUL_LBASE )
 
const UTF8_HANGUL_VBASE codepointToUtf8( UNICODE_HANGUL_VBASE )
 
const UTF8_HANGUL_TBASE codepointToUtf8( UNICODE_HANGUL_TBASE )
 
const UTF8_HANGUL_LEND codepointToUtf8( UNICODE_HANGUL_LEND )
 
const UTF8_HANGUL_VEND codepointToUtf8( UNICODE_HANGUL_VEND )
 
const UTF8_HANGUL_TEND codepointToUtf8( UNICODE_HANGUL_TEND )
 
const UTF8_SURROGATE_FIRST codepointToUtf8( UNICODE_SURROGATE_FIRST )
 
const UTF8_SURROGATE_LAST codepointToUtf8( UNICODE_SURROGATE_LAST )
 
const UTF8_MAX codepointToUtf8( UNICODE_MAX )
 
const UTF8_REPLACEMENT codepointToUtf8( UNICODE_REPLACEMENT )
 
const UTF8_OVERLONG_A "\xc1\xbf"
 
const UTF8_OVERLONG_B "\xe0\x9f\xbf"
 
const UTF8_OVERLONG_C "\xf0\x8f\xbf\xbf"
 
const UTF8_FDD0 codepointToUtf8( 0xfdd0 )
 
const UTF8_FDEF codepointToUtf8( 0xfdef )
 
const UTF8_FFFE codepointToUtf8( 0xfffe )
 
const UTF8_FFFF codepointToUtf8( 0xffff )
 
const UTF8_HEAD false
 
const UTF8_TAIL true
 
const UNORM_NONE 1
 For using the ICU wrapper. More...
 
const UNORM_NFD 2
 
const UNORM_NFKD 3
 
const UNORM_NFC 4
 
const UNORM_DEFAULT UNORM_NFC
 
const UNORM_NFKC 5
 
const UNORM_FCD 6
 
const NORMALIZE_ICU function_exists( 'utf8_normalize' )
 

Variable Documentation

◆ $utfCanonicalComp

$utfCanonicalComp = NULL

◆ $utfCanonicalDecomp

$utfCanonicalDecomp = NULL

◆ $utfCombiningClass

◆ $utfCompatibilityDecomp

$utfCompatibilityDecomp = NULL

Definition at line 44 of file UtfNormal.php.

Referenced by UtfNormal\NFKD().

◆ NORMALIZE_ICU

const NORMALIZE_ICU function_exists( 'utf8_normalize' )

◆ UNICODE_HANGUL_FIRST

const UNICODE_HANGUL_FIRST 0xac00

Definition at line 47 of file UtfNormal.php.

Referenced by UtfNormal\fastCompose(), and UtfNormal\fastDecompose().

◆ UNICODE_HANGUL_LAST

const UNICODE_HANGUL_LAST 0xd7a3

Definition at line 48 of file UtfNormal.php.

◆ UNICODE_HANGUL_LBASE

const UNICODE_HANGUL_LBASE 0x1100

Definition at line 50 of file UtfNormal.php.

◆ UNICODE_HANGUL_LCOUNT

const UNICODE_HANGUL_LCOUNT 19

Definition at line 54 of file UtfNormal.php.

◆ UNICODE_HANGUL_LEND

const UNICODE_HANGUL_LEND UNICODE_HANGUL_LBASE + UNICODE_HANGUL_LCOUNT - 1

Definition at line 59 of file UtfNormal.php.

◆ UNICODE_HANGUL_NCOUNT

const UNICODE_HANGUL_NCOUNT UNICODE_HANGUL_VCOUNT * UNICODE_HANGUL_TCOUNT

Definition at line 57 of file UtfNormal.php.

Referenced by UtfNormal\fastDecompose().

◆ UNICODE_HANGUL_TBASE

const UNICODE_HANGUL_TBASE 0x11a7

Definition at line 52 of file UtfNormal.php.

◆ UNICODE_HANGUL_TCOUNT

const UNICODE_HANGUL_TCOUNT 28

Definition at line 56 of file UtfNormal.php.

Referenced by UtfNormal\fastCompose(), and UtfNormal\fastDecompose().

◆ UNICODE_HANGUL_TEND

const UNICODE_HANGUL_TEND UNICODE_HANGUL_TBASE + UNICODE_HANGUL_TCOUNT - 1

Definition at line 61 of file UtfNormal.php.

◆ UNICODE_HANGUL_VBASE

const UNICODE_HANGUL_VBASE 0x1161

Definition at line 51 of file UtfNormal.php.

◆ UNICODE_HANGUL_VCOUNT

const UNICODE_HANGUL_VCOUNT 21

Definition at line 55 of file UtfNormal.php.

Referenced by UtfNormal\fastCompose().

◆ UNICODE_HANGUL_VEND

const UNICODE_HANGUL_VEND UNICODE_HANGUL_VBASE + UNICODE_HANGUL_VCOUNT - 1

Definition at line 60 of file UtfNormal.php.

◆ UNICODE_MAX

const UNICODE_MAX 0x10ffff

Definition at line 65 of file UtfNormal.php.

Referenced by CleanUpTest\XtestAllChars().

◆ UNICODE_REPLACEMENT

const UNICODE_REPLACEMENT 0xfffd

Definition at line 66 of file UtfNormal.php.

◆ UNICODE_SURROGATE_FIRST

const UNICODE_SURROGATE_FIRST 0xd800

Definition at line 63 of file UtfNormal.php.

Referenced by CleanUpTest\XtestAllChars().

◆ UNICODE_SURROGATE_LAST

const UNICODE_SURROGATE_LAST 0xdfff

Definition at line 64 of file UtfNormal.php.

Referenced by CleanUpTest\XtestAllChars().

◆ UNORM_DEFAULT

const UNORM_DEFAULT UNORM_NFC

Definition at line 107 of file UtfNormal.php.

◆ UNORM_FCD

const UNORM_FCD 6

Definition at line 109 of file UtfNormal.php.

◆ UNORM_NFC

const UNORM_NFC 4

Definition at line 106 of file UtfNormal.php.

Referenced by UtfNormal\cleanUp(), donorm(), and UtfNormal\toNFC().

◆ UNORM_NFD

const UNORM_NFD 2

Definition at line 104 of file UtfNormal.php.

Referenced by UtfNormal\toNFD().

◆ UNORM_NFKC

const UNORM_NFKC 5

Definition at line 108 of file UtfNormal.php.

Referenced by UtfNormal\toNFKC().

◆ UNORM_NFKD

const UNORM_NFKD 3

Definition at line 105 of file UtfNormal.php.

Referenced by UtfNormal\toNFKD().

◆ UNORM_NONE

const UNORM_NONE 1

For using the ICU wrapper.

Definition at line 103 of file UtfNormal.php.

◆ UTF8_FDD0

const UTF8_FDD0 codepointToUtf8( 0xfdd0 )

Definition at line 91 of file UtfNormal.php.

◆ UTF8_FDEF

const UTF8_FDEF codepointToUtf8( 0xfdef )

Definition at line 92 of file UtfNormal.php.

◆ UTF8_FFFE

const UTF8_FFFE codepointToUtf8( 0xfffe )

Definition at line 93 of file UtfNormal.php.

Referenced by UtfNormal\cleanUp(), donorm(), and UtfNormal\quickIsNFCVerify().

◆ UTF8_FFFF

const UTF8_FFFF codepointToUtf8( 0xffff )

Definition at line 94 of file UtfNormal.php.

Referenced by UtfNormal\cleanUp(), donorm(), and UtfNormal\quickIsNFCVerify().

◆ UTF8_HANGUL_FIRST

const UTF8_HANGUL_FIRST codepointToUtf8( UNICODE_HANGUL_FIRST )

Definition at line 69 of file UtfNormal.php.

Referenced by UtfNormal\fastCompose(), and UtfNormal\fastDecompose().

◆ UTF8_HANGUL_LAST

const UTF8_HANGUL_LAST codepointToUtf8( UNICODE_HANGUL_LAST )

Definition at line 70 of file UtfNormal.php.

Referenced by UtfNormal\fastCompose(), and UtfNormal\fastDecompose().

◆ UTF8_HANGUL_LBASE

const UTF8_HANGUL_LBASE codepointToUtf8( UNICODE_HANGUL_LBASE )

Definition at line 72 of file UtfNormal.php.

Referenced by UtfNormal\fastCompose().

◆ UTF8_HANGUL_LEND

const UTF8_HANGUL_LEND codepointToUtf8( UNICODE_HANGUL_LEND )

Definition at line 76 of file UtfNormal.php.

Referenced by UtfNormal\fastCompose().

◆ UTF8_HANGUL_TBASE

const UTF8_HANGUL_TBASE codepointToUtf8( UNICODE_HANGUL_TBASE )

Definition at line 74 of file UtfNormal.php.

Referenced by UtfNormal\fastCompose().

◆ UTF8_HANGUL_TEND

const UTF8_HANGUL_TEND codepointToUtf8( UNICODE_HANGUL_TEND )

Definition at line 78 of file UtfNormal.php.

Referenced by UtfNormal\fastCompose().

◆ UTF8_HANGUL_VBASE

const UTF8_HANGUL_VBASE codepointToUtf8( UNICODE_HANGUL_VBASE )

Definition at line 73 of file UtfNormal.php.

Referenced by UtfNormal\fastCompose().

◆ UTF8_HANGUL_VEND

const UTF8_HANGUL_VEND codepointToUtf8( UNICODE_HANGUL_VEND )

Definition at line 77 of file UtfNormal.php.

Referenced by UtfNormal\fastCompose().

◆ UTF8_HEAD

const UTF8_HEAD false

Definition at line 96 of file UtfNormal.php.

◆ UTF8_MAX

const UTF8_MAX codepointToUtf8( UNICODE_MAX )

Definition at line 82 of file UtfNormal.php.

Referenced by UtfNormal\quickIsNFCVerify().

◆ UTF8_OVERLONG_A

const UTF8_OVERLONG_A "\xc1\xbf"

Definition at line 86 of file UtfNormal.php.

Referenced by UtfNormal\quickIsNFCVerify().

◆ UTF8_OVERLONG_B

const UTF8_OVERLONG_B "\xe0\x9f\xbf"

Definition at line 87 of file UtfNormal.php.

Referenced by UtfNormal\quickIsNFCVerify().

◆ UTF8_OVERLONG_C

const UTF8_OVERLONG_C "\xf0\x8f\xbf\xbf"

Definition at line 88 of file UtfNormal.php.

Referenced by UtfNormal\quickIsNFCVerify().

◆ UTF8_REPLACEMENT

◆ UTF8_SURROGATE_FIRST

const UTF8_SURROGATE_FIRST codepointToUtf8( UNICODE_SURROGATE_FIRST )

Definition at line 80 of file UtfNormal.php.

Referenced by CleanUpTest\doTestTripleBytes(), and UtfNormal\quickIsNFCVerify().

◆ UTF8_SURROGATE_LAST

const UTF8_SURROGATE_LAST codepointToUtf8( UNICODE_SURROGATE_LAST )

Definition at line 81 of file UtfNormal.php.

◆ UTF8_TAIL

const UTF8_TAIL true

Definition at line 97 of file UtfNormal.php.