ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
UtfNormal.php File Reference

Go to the source code of this file.

Data Structures

class  UtfNormal

Namespaces

namespace  UtfNormal
 Unicode normalization routines for working with UTF-8 strings.
namespace  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.
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 = NULL

Definition at line 36 of file UtfNormal.php.

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

$utfCanonicalDecomp = NULL

Definition at line 36 of file UtfNormal.php.

Referenced by UtfNormal\loadData(), and UtfNormal\NFD().

$utfCompatibilityDecomp = NULL

Definition at line 44 of file UtfNormal.php.

Referenced by UtfNormal\NFKD().

const NORMALIZE_ICU = function_exists( 'utf8_normalize' )
const UNICODE_HANGUL_FIRST = 0xac00

Definition at line 47 of file UtfNormal.php.

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

const UNICODE_HANGUL_LAST = 0xd7a3

Definition at line 48 of file UtfNormal.php.

const UNICODE_HANGUL_LBASE = 0x1100

Definition at line 50 of file UtfNormal.php.

const UNICODE_HANGUL_LCOUNT = 19

Definition at line 54 of file UtfNormal.php.

const UNICODE_HANGUL_LEND = UNICODE_HANGUL_LBASE + UNICODE_HANGUL_LCOUNT - 1

Definition at line 59 of file UtfNormal.php.

const UNICODE_HANGUL_NCOUNT = UNICODE_HANGUL_VCOUNT * UNICODE_HANGUL_TCOUNT

Definition at line 57 of file UtfNormal.php.

Referenced by UtfNormal\fastDecompose().

const UNICODE_HANGUL_TBASE = 0x11a7

Definition at line 52 of file UtfNormal.php.

const UNICODE_HANGUL_TCOUNT = 28

Definition at line 56 of file UtfNormal.php.

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

const UNICODE_HANGUL_TEND = UNICODE_HANGUL_TBASE + UNICODE_HANGUL_TCOUNT - 1

Definition at line 61 of file UtfNormal.php.

const UNICODE_HANGUL_VBASE = 0x1161

Definition at line 51 of file UtfNormal.php.

const UNICODE_HANGUL_VCOUNT = 21

Definition at line 55 of file UtfNormal.php.

Referenced by UtfNormal\fastCompose().

const UNICODE_HANGUL_VEND = UNICODE_HANGUL_VBASE + UNICODE_HANGUL_VCOUNT - 1

Definition at line 60 of file UtfNormal.php.

const UNICODE_MAX = 0x10ffff

Definition at line 65 of file UtfNormal.php.

const UNICODE_REPLACEMENT = 0xfffd

Definition at line 66 of file UtfNormal.php.

const UNICODE_SURROGATE_FIRST = 0xd800

Definition at line 63 of file UtfNormal.php.

const UNICODE_SURROGATE_LAST = 0xdfff

Definition at line 64 of file UtfNormal.php.

const UNORM_DEFAULT = UNORM_NFC

Definition at line 107 of file UtfNormal.php.

const UNORM_FCD = 6

Definition at line 109 of file UtfNormal.php.

const UNORM_NFC = 4

Definition at line 106 of file UtfNormal.php.

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

const UNORM_NFD = 2

Definition at line 104 of file UtfNormal.php.

Referenced by UtfNormal\toNFD().

const UNORM_NFKC = 5

Definition at line 108 of file UtfNormal.php.

Referenced by UtfNormal\toNFKC().

const UNORM_NFKD = 3

Definition at line 105 of file UtfNormal.php.

Referenced by UtfNormal\toNFKD().

const UNORM_NONE = 1

For using the ICU wrapper.

Definition at line 103 of file UtfNormal.php.

const UTF8_FDD0 = codepointToUtf8( 0xfdd0 )

Definition at line 91 of file UtfNormal.php.

const UTF8_FDEF = codepointToUtf8( 0xfdef )

Definition at line 92 of file UtfNormal.php.

const UTF8_FFFE = codepointToUtf8( 0xfffe )

Definition at line 93 of file UtfNormal.php.

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

const UTF8_FFFF = codepointToUtf8( 0xffff )

Definition at line 94 of file UtfNormal.php.

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

const UTF8_HANGUL_FIRST = codepointToUtf8( UNICODE_HANGUL_FIRST )

Definition at line 69 of file UtfNormal.php.

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

const UTF8_HANGUL_LAST = codepointToUtf8( UNICODE_HANGUL_LAST )

Definition at line 70 of file UtfNormal.php.

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

const UTF8_HANGUL_LBASE = codepointToUtf8( UNICODE_HANGUL_LBASE )

Definition at line 72 of file UtfNormal.php.

Referenced by UtfNormal\fastCompose().

const UTF8_HANGUL_LEND = codepointToUtf8( UNICODE_HANGUL_LEND )

Definition at line 76 of file UtfNormal.php.

Referenced by UtfNormal\fastCompose().

const UTF8_HANGUL_TBASE = codepointToUtf8( UNICODE_HANGUL_TBASE )

Definition at line 74 of file UtfNormal.php.

Referenced by UtfNormal\fastCompose().

const UTF8_HANGUL_TEND = codepointToUtf8( UNICODE_HANGUL_TEND )

Definition at line 78 of file UtfNormal.php.

Referenced by UtfNormal\fastCompose().

const UTF8_HANGUL_VBASE = codepointToUtf8( UNICODE_HANGUL_VBASE )

Definition at line 73 of file UtfNormal.php.

Referenced by UtfNormal\fastCompose().

const UTF8_HANGUL_VEND = codepointToUtf8( UNICODE_HANGUL_VEND )

Definition at line 77 of file UtfNormal.php.

Referenced by UtfNormal\fastCompose().

const UTF8_HEAD = false

Definition at line 96 of file UtfNormal.php.

const UTF8_MAX = codepointToUtf8( UNICODE_MAX )

Definition at line 82 of file UtfNormal.php.

Referenced by UtfNormal\quickIsNFCVerify().

const UTF8_OVERLONG_A = "\xc1\xbf"

Definition at line 86 of file UtfNormal.php.

Referenced by UtfNormal\quickIsNFCVerify().

const UTF8_OVERLONG_B = "\xe0\x9f\xbf"

Definition at line 87 of file UtfNormal.php.

Referenced by UtfNormal\quickIsNFCVerify().

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

Definition at line 88 of file UtfNormal.php.

Referenced by UtfNormal\quickIsNFCVerify().

const UTF8_REPLACEMENT = codepointToUtf8( UNICODE_REPLACEMENT )

Definition at line 83 of file UtfNormal.php.

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

const UTF8_SURROGATE_FIRST = codepointToUtf8( UNICODE_SURROGATE_FIRST )

Definition at line 80 of file UtfNormal.php.

Referenced by UtfNormal\quickIsNFCVerify().

const UTF8_SURROGATE_LAST = codepointToUtf8( UNICODE_SURROGATE_LAST )

Definition at line 81 of file UtfNormal.php.

const UTF8_TAIL = true

Definition at line 97 of file UtfNormal.php.