ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
UtfNormal.php File Reference

Go to the source code of this file.

Data Structures

class  UtfNormal
 

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 "\xea\xb0\x80"
 
const UTF8_HANGUL_LAST "\xed\x9e\xa3"
 
const UTF8_HANGUL_LBASE "\xe1\x84\x80"
 
const UTF8_HANGUL_VBASE "\xe1\x85\xa1"
 
const UTF8_HANGUL_TBASE "\xe1\x86\xa7"
 
const UTF8_HANGUL_LEND "\xe1\x84\x92"
 
const UTF8_HANGUL_VEND "\xe1\x85\xb5"
 
const UTF8_HANGUL_TEND "\xe1\x87\x82"
 
const UTF8_SURROGATE_FIRST "\xed\xa0\x80"
 
const UTF8_SURROGATE_LAST "\xed\xbf\xbf"
 
const UTF8_MAX "\xf4\x8f\xbf\xbf"
 
const UTF8_REPLACEMENT "\xef\xbf\xbd"
 
const UTF8_OVERLONG_A "\xc1\xbf"
 
const UTF8_OVERLONG_B "\xe0\x9f\xbf"
 
const UTF8_OVERLONG_C "\xf0\x8f\xbf\xbf"
 
const UTF8_FDD0 "\xef\xb7\x90"
 
const UTF8_FDEF "\xef\xb7\xaf"
 
const UTF8_FFFE "\xef\xbf\xbe"
 
const UTF8_FFFF "\xef\xbf\xbf"
 
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

Definition at line 21 of file UtfNormal.php.

Referenced by UtfNormal\fastCompose(), and CleanUpTest\XtestAllChars().

◆ $utfCanonicalDecomp

$utfCanonicalDecomp = NULL

Definition at line 21 of file UtfNormal.php.

Referenced by benchmarkForm(), UtfNormal\NFD(), and CleanUpTest\XtestAllChars().

◆ $utfCombiningClass

◆ $utfCompatibilityDecomp

$utfCompatibilityDecomp = NULL

Definition at line 29 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 32 of file UtfNormal.php.

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

◆ UNICODE_HANGUL_LAST

const UNICODE_HANGUL_LAST 0xd7a3

Definition at line 33 of file UtfNormal.php.

◆ UNICODE_HANGUL_LBASE

const UNICODE_HANGUL_LBASE 0x1100

Definition at line 35 of file UtfNormal.php.

◆ UNICODE_HANGUL_LCOUNT

const UNICODE_HANGUL_LCOUNT 19

Definition at line 39 of file UtfNormal.php.

◆ UNICODE_HANGUL_LEND

const UNICODE_HANGUL_LEND UNICODE_HANGUL_LBASE + UNICODE_HANGUL_LCOUNT - 1

Definition at line 44 of file UtfNormal.php.

◆ UNICODE_HANGUL_NCOUNT

const UNICODE_HANGUL_NCOUNT UNICODE_HANGUL_VCOUNT * UNICODE_HANGUL_TCOUNT

Definition at line 42 of file UtfNormal.php.

Referenced by UtfNormal\fastDecompose().

◆ UNICODE_HANGUL_TBASE

const UNICODE_HANGUL_TBASE 0x11a7

Definition at line 37 of file UtfNormal.php.

◆ UNICODE_HANGUL_TCOUNT

const UNICODE_HANGUL_TCOUNT 28

Definition at line 41 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 46 of file UtfNormal.php.

◆ UNICODE_HANGUL_VBASE

const UNICODE_HANGUL_VBASE 0x1161

Definition at line 36 of file UtfNormal.php.

◆ UNICODE_HANGUL_VCOUNT

const UNICODE_HANGUL_VCOUNT 21

Definition at line 40 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 45 of file UtfNormal.php.

◆ UNICODE_MAX

const UNICODE_MAX 0x10ffff

Definition at line 50 of file UtfNormal.php.

Referenced by CleanUpTest\XtestAllChars().

◆ UNICODE_REPLACEMENT

const UNICODE_REPLACEMENT 0xfffd

Definition at line 51 of file UtfNormal.php.

◆ UNICODE_SURROGATE_FIRST

const UNICODE_SURROGATE_FIRST 0xd800

Definition at line 48 of file UtfNormal.php.

Referenced by CleanUpTest\XtestAllChars().

◆ UNICODE_SURROGATE_LAST

const UNICODE_SURROGATE_LAST 0xdfff

Definition at line 49 of file UtfNormal.php.

Referenced by CleanUpTest\XtestAllChars().

◆ UNORM_DEFAULT

const UNORM_DEFAULT UNORM_NFC

Definition at line 92 of file UtfNormal.php.

◆ UNORM_FCD

const UNORM_FCD 6

Definition at line 94 of file UtfNormal.php.

◆ UNORM_NFC

const UNORM_NFC 4

Definition at line 91 of file UtfNormal.php.

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

◆ UNORM_NFD

const UNORM_NFD 2

Definition at line 89 of file UtfNormal.php.

Referenced by UtfNormal\toNFD().

◆ UNORM_NFKC

const UNORM_NFKC 5

Definition at line 93 of file UtfNormal.php.

Referenced by UtfNormal\toNFKC().

◆ UNORM_NFKD

const UNORM_NFKD 3

Definition at line 90 of file UtfNormal.php.

Referenced by UtfNormal\toNFKD().

◆ UNORM_NONE

const UNORM_NONE 1

For using the ICU wrapper.

Definition at line 88 of file UtfNormal.php.

◆ UTF8_FDD0

const UTF8_FDD0 "\xef\xb7\x90"

Definition at line 76 of file UtfNormal.php.

◆ UTF8_FDEF

const UTF8_FDEF "\xef\xb7\xaf"

Definition at line 77 of file UtfNormal.php.

◆ UTF8_FFFE

const UTF8_FFFE "\xef\xbf\xbe"

Definition at line 78 of file UtfNormal.php.

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

◆ UTF8_FFFF

const UTF8_FFFF "\xef\xbf\xbf"

Definition at line 79 of file UtfNormal.php.

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

◆ UTF8_HANGUL_FIRST

const UTF8_HANGUL_FIRST "\xea\xb0\x80"

Definition at line 54 of file UtfNormal.php.

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

◆ UTF8_HANGUL_LAST

const UTF8_HANGUL_LAST "\xed\x9e\xa3"

Definition at line 55 of file UtfNormal.php.

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

◆ UTF8_HANGUL_LBASE

const UTF8_HANGUL_LBASE "\xe1\x84\x80"

Definition at line 57 of file UtfNormal.php.

Referenced by UtfNormal\fastCompose().

◆ UTF8_HANGUL_LEND

const UTF8_HANGUL_LEND "\xe1\x84\x92"

Definition at line 61 of file UtfNormal.php.

Referenced by UtfNormal\fastCompose().

◆ UTF8_HANGUL_TBASE

const UTF8_HANGUL_TBASE "\xe1\x86\xa7"

Definition at line 59 of file UtfNormal.php.

Referenced by UtfNormal\fastCompose().

◆ UTF8_HANGUL_TEND

const UTF8_HANGUL_TEND "\xe1\x87\x82"

Definition at line 63 of file UtfNormal.php.

Referenced by UtfNormal\fastCompose().

◆ UTF8_HANGUL_VBASE

const UTF8_HANGUL_VBASE "\xe1\x85\xa1"

Definition at line 58 of file UtfNormal.php.

Referenced by UtfNormal\fastCompose().

◆ UTF8_HANGUL_VEND

const UTF8_HANGUL_VEND "\xe1\x85\xb5"

Definition at line 62 of file UtfNormal.php.

Referenced by UtfNormal\fastCompose().

◆ UTF8_HEAD

const UTF8_HEAD false

Definition at line 81 of file UtfNormal.php.

◆ UTF8_MAX

const UTF8_MAX "\xf4\x8f\xbf\xbf"

Definition at line 67 of file UtfNormal.php.

Referenced by UtfNormal\quickIsNFCVerify().

◆ UTF8_OVERLONG_A

const UTF8_OVERLONG_A "\xc1\xbf"

Definition at line 71 of file UtfNormal.php.

Referenced by UtfNormal\quickIsNFCVerify().

◆ UTF8_OVERLONG_B

const UTF8_OVERLONG_B "\xe0\x9f\xbf"

Definition at line 72 of file UtfNormal.php.

Referenced by UtfNormal\quickIsNFCVerify().

◆ UTF8_OVERLONG_C

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

Definition at line 73 of file UtfNormal.php.

Referenced by UtfNormal\quickIsNFCVerify().

◆ UTF8_REPLACEMENT

◆ UTF8_SURROGATE_FIRST

const UTF8_SURROGATE_FIRST "\xed\xa0\x80"

Definition at line 65 of file UtfNormal.php.

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

◆ UTF8_SURROGATE_LAST

const UTF8_SURROGATE_LAST "\xed\xbf\xbf"

Definition at line 66 of file UtfNormal.php.

◆ UTF8_TAIL

const UTF8_TAIL true

Definition at line 82 of file UtfNormal.php.