MediaWiki REL1_31
UtfNormalDefines.php
Go to the documentation of this file.
1<?php
29define( 'UNICODE_HANGUL_FIRST', 0xac00 );
33define( 'UNICODE_HANGUL_LAST', 0xd7a3 );
34
38define( 'UNICODE_HANGUL_LBASE', 0x1100 );
42define( 'UNICODE_HANGUL_VBASE', 0x1161 );
46define( 'UNICODE_HANGUL_TBASE', 0x11a7 );
47
51define( 'UNICODE_HANGUL_LCOUNT', 19 );
55define( 'UNICODE_HANGUL_VCOUNT', 21 );
59define( 'UNICODE_HANGUL_TCOUNT', 28 );
63define( 'UNICODE_HANGUL_NCOUNT', UNICODE_HANGUL_VCOUNT * UNICODE_HANGUL_TCOUNT );
64
68define( 'UNICODE_HANGUL_LEND', UNICODE_HANGUL_LBASE + UNICODE_HANGUL_LCOUNT - 1 );
72define( 'UNICODE_HANGUL_VEND', UNICODE_HANGUL_VBASE + UNICODE_HANGUL_VCOUNT - 1 );
76define( 'UNICODE_HANGUL_TEND', UNICODE_HANGUL_TBASE + UNICODE_HANGUL_TCOUNT - 1 );
77
81define( 'UNICODE_SURROGATE_FIRST', 0xd800 );
85define( 'UNICODE_SURROGATE_LAST', 0xdfff );
89define( 'UNICODE_MAX', 0x10ffff );
93define( 'UNICODE_REPLACEMENT', 0xfffd );
94
98define( 'UTF8_HANGUL_FIRST', "\xea\xb0\x80" /*codepointToUtf8( UNICODE_HANGUL_FIRST )*/ );
102define( 'UTF8_HANGUL_LAST', "\xed\x9e\xa3" /*codepointToUtf8( UNICODE_HANGUL_LAST )*/ );
103
107define( 'UTF8_HANGUL_LBASE', "\xe1\x84\x80" /*codepointToUtf8( UNICODE_HANGUL_LBASE )*/ );
111define( 'UTF8_HANGUL_VBASE', "\xe1\x85\xa1" /*codepointToUtf8( UNICODE_HANGUL_VBASE )*/ );
115define( 'UTF8_HANGUL_TBASE', "\xe1\x86\xa7" /*codepointToUtf8( UNICODE_HANGUL_TBASE )*/ );
116
120define( 'UTF8_HANGUL_LEND', "\xe1\x84\x92" /*codepointToUtf8( UNICODE_HANGUL_LEND )*/ );
124define( 'UTF8_HANGUL_VEND', "\xe1\x85\xb5" /*codepointToUtf8( UNICODE_HANGUL_VEND )*/ );
128define( 'UTF8_HANGUL_TEND', "\xe1\x87\x82" /*codepointToUtf8( UNICODE_HANGUL_TEND )*/ );
129
133define( 'UTF8_SURROGATE_FIRST', "\xed\xa0\x80" /*codepointToUtf8( UNICODE_SURROGATE_FIRST )*/ );
137define( 'UTF8_SURROGATE_LAST', "\xed\xbf\xbf" /*codepointToUtf8( UNICODE_SURROGATE_LAST )*/ );
141define( 'UTF8_MAX', "\xf4\x8f\xbf\xbf" /*codepointToUtf8( UNICODE_MAX )*/ );
145define( 'UTF8_REPLACEMENT', "\xef\xbf\xbd" /*codepointToUtf8( UNICODE_REPLACEMENT )*/ );
146# define( 'UTF8_REPLACEMENT', '!' );
147
151define( 'UTF8_OVERLONG_A', "\xc1\xbf" );
155define( 'UTF8_OVERLONG_B', "\xe0\x9f\xbf" );
159define( 'UTF8_OVERLONG_C', "\xf0\x8f\xbf\xbf" );
160
161# These two ranges are illegal
165define( 'UTF8_FDD0', "\xef\xb7\x90" /*codepointToUtf8( 0xfdd0 )*/ );
169define( 'UTF8_FDEF', "\xef\xb7\xaf" /*codepointToUtf8( 0xfdef )*/ );
173define( 'UTF8_FFFE', "\xef\xbf\xbe" /*codepointToUtf8( 0xfffe )*/ );
177define( 'UTF8_FFFF', "\xef\xbf\xbf" /*codepointToUtf8( 0xffff )*/ );
178
182define( 'UTF8_HEAD', false );
186define( 'UTF8_TAIL', true );
const UNICODE_HANGUL_VCOUNT
const UNICODE_HANGUL_LCOUNT
const UNICODE_HANGUL_LBASE
const UNICODE_HANGUL_TBASE
const UNICODE_HANGUL_TCOUNT
const UNICODE_HANGUL_VBASE