00001 <?php
00002
00003 define( 'UNICODE_HANGUL_FIRST', 0xac00 );
00004 define( 'UNICODE_HANGUL_LAST', 0xd7a3 );
00005
00006 define( 'UNICODE_HANGUL_LBASE', 0x1100 );
00007 define( 'UNICODE_HANGUL_VBASE', 0x1161 );
00008 define( 'UNICODE_HANGUL_TBASE', 0x11a7 );
00009
00010 define( 'UNICODE_HANGUL_LCOUNT', 19 );
00011 define( 'UNICODE_HANGUL_VCOUNT', 21 );
00012 define( 'UNICODE_HANGUL_TCOUNT', 28 );
00013 define( 'UNICODE_HANGUL_NCOUNT', UNICODE_HANGUL_VCOUNT * UNICODE_HANGUL_TCOUNT );
00014
00015 define( 'UNICODE_HANGUL_LEND', UNICODE_HANGUL_LBASE + UNICODE_HANGUL_LCOUNT - 1 );
00016 define( 'UNICODE_HANGUL_VEND', UNICODE_HANGUL_VBASE + UNICODE_HANGUL_VCOUNT - 1 );
00017 define( 'UNICODE_HANGUL_TEND', UNICODE_HANGUL_TBASE + UNICODE_HANGUL_TCOUNT - 1 );
00018
00019 define( 'UNICODE_SURROGATE_FIRST', 0xd800 );
00020 define( 'UNICODE_SURROGATE_LAST', 0xdfff );
00021 define( 'UNICODE_MAX', 0x10ffff );
00022 define( 'UNICODE_REPLACEMENT', 0xfffd );
00023
00024
00025 define( 'UTF8_HANGUL_FIRST', "\xea\xb0\x80" );
00026 define( 'UTF8_HANGUL_LAST', "\xed\x9e\xa3" );
00027
00028 define( 'UTF8_HANGUL_LBASE', "\xe1\x84\x80" );
00029 define( 'UTF8_HANGUL_VBASE', "\xe1\x85\xa1" );
00030 define( 'UTF8_HANGUL_TBASE', "\xe1\x86\xa7" );
00031
00032 define( 'UTF8_HANGUL_LEND', "\xe1\x84\x92" );
00033 define( 'UTF8_HANGUL_VEND', "\xe1\x85\xb5" );
00034 define( 'UTF8_HANGUL_TEND', "\xe1\x87\x82" );
00035
00036 define( 'UTF8_SURROGATE_FIRST', "\xed\xa0\x80" );
00037 define( 'UTF8_SURROGATE_LAST', "\xed\xbf\xbf" );
00038 define( 'UTF8_MAX', "\xf4\x8f\xbf\xbf" );
00039 define( 'UTF8_REPLACEMENT', "\xef\xbf\xbd" );
00040 #define( 'UTF8_REPLACEMENT', '!' );
00041
00042 define( 'UTF8_OVERLONG_A', "\xc1\xbf" );
00043 define( 'UTF8_OVERLONG_B', "\xe0\x9f\xbf" );
00044 define( 'UTF8_OVERLONG_C', "\xf0\x8f\xbf\xbf" );
00045
00046 # These two ranges are illegal
00047 define( 'UTF8_FDD0', "\xef\xb7\x90" );
00048 define( 'UTF8_FDEF', "\xef\xb7\xaf" );
00049 define( 'UTF8_FFFE', "\xef\xbf\xbe" );
00050 define( 'UTF8_FFFF', "\xef\xbf\xbf" );
00051
00052 define( 'UTF8_HEAD', false );
00053 define( 'UTF8_TAIL', true );