Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1430670
Constants.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
Constants.php
View Options
<?php
namespace
UtfNormal
;
/**
* Some constant definitions for the unicode normalization module.
*
* Note: these constants must all be resolvable at compile time by HipHop,
* since this file will not be executed during request startup for a compiled
* MediaWiki.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
*
* @file
* @ingroup UtfNormal
*/
class
Constants
{
public
const
UNICODE_HANGUL_FIRST
=
0xac00
;
public
const
UNICODE_HANGUL_LAST
=
0xd7a3
;
public
const
UNICODE_HANGUL_LBASE
=
0x1100
;
public
const
UNICODE_HANGUL_VBASE
=
0x1161
;
public
const
UNICODE_HANGUL_TBASE
=
0x11a7
;
public
const
UNICODE_HANGUL_LCOUNT
=
19
;
public
const
UNICODE_HANGUL_VCOUNT
=
21
;
public
const
UNICODE_HANGUL_TCOUNT
=
28
;
public
const
UNICODE_HANGUL_NCOUNT
=
self
::
UNICODE_HANGUL_VCOUNT
*
self
::
UNICODE_HANGUL_TCOUNT
;
public
const
UNICODE_HANGUL_LEND
=
self
::
UNICODE_HANGUL_LBASE
+
self
::
UNICODE_HANGUL_LCOUNT
-
1
;
public
const
UNICODE_HANGUL_VEND
=
self
::
UNICODE_HANGUL_VBASE
+
self
::
UNICODE_HANGUL_VCOUNT
-
1
;
public
const
UNICODE_HANGUL_TEND
=
self
::
UNICODE_HANGUL_TBASE
+
self
::
UNICODE_HANGUL_TCOUNT
-
1
;
public
const
UNICODE_SURROGATE_FIRST
=
0xd800
;
public
const
UNICODE_SURROGATE_LAST
=
0xdfff
;
public
const
UNICODE_MAX
=
0x10ffff
;
public
const
UNICODE_REPLACEMENT
=
0xfffd
;
# codepointToUtf8( UNICODE_HANGUL_FIRST )
public
const
UTF8_HANGUL_FIRST
=
"
\x
ea
\x
b0
\x
80"
;
# codepointToUtf8( UNICODE_HANGUL_LAST )
public
const
UTF8_HANGUL_LAST
=
"
\x
ed
\x
9e
\x
a3"
;
# codepointToUtf8( UNICODE_HANGUL_LBASE )
public
const
UTF8_HANGUL_LBASE
=
"
\x
e1
\x
84
\x
80"
;
# codepointToUtf8( UNICODE_HANGUL_VBASE )
public
const
UTF8_HANGUL_VBASE
=
"
\x
e1
\x
85
\x
a1"
;
# codepointToUtf8( UNICODE_HANGUL_TBASE )
public
const
UTF8_HANGUL_TBASE
=
"
\x
e1
\x
86
\x
a7"
;
# codepointToUtf8( UNICODE_HANGUL_LEND )
public
const
UTF8_HANGUL_LEND
=
"
\x
e1
\x
84
\x
92"
;
# codepointToUtf8( UNICODE_HANGUL_VEND )
public
const
UTF8_HANGUL_VEND
=
"
\x
e1
\x
85
\x
b5"
;
# codepointToUtf8( UNICODE_HANGUL_TEND )
public
const
UTF8_HANGUL_TEND
=
"
\x
e1
\x
87
\x
82"
;
# codepointToUtf8( UNICODE_SURROGATE_FIRST )
public
const
UTF8_SURROGATE_FIRST
=
"
\x
ed
\x
a0
\x
80"
;
# codepointToUtf8( UNICODE_SURROGATE_LAST )
public
const
UTF8_SURROGATE_LAST
=
"
\x
ed
\x
bf
\x
bf"
;
# codepointToUtf8( UNICODE_MAX )
public
const
UTF8_MAX
=
"
\x
f4
\x
8f
\x
bf
\x
bf"
;
# codepointToUtf8( UNICODE_REPLACEMENT )
public
const
UTF8_REPLACEMENT
=
"
\x
ef
\x
bf
\x
bd"
;
# public const UTF8_REPLACEMENT = '!';
public
const
UTF8_OVERLONG_A
=
"
\x
c1
\x
bf"
;
public
const
UTF8_OVERLONG_B
=
"
\x
e0
\x
9f
\x
bf"
;
public
const
UTF8_OVERLONG_C
=
"
\x
f0
\x
8f
\x
bf
\x
bf"
;
# These two ranges are illegal
# codepointToUtf8( 0xfdd0 )
public
const
UTF8_FDD0
=
"
\x
ef
\x
b7
\x
90"
;
# codepointToUtf8( 0xfdef )
public
const
UTF8_FDEF
=
"
\x
ef
\x
b7
\x
af"
;
# codepointToUtf8( 0xfffe )
public
const
UTF8_FFFE
=
"
\x
ef
\x
bf
\x
be"
;
# codepointToUtf8( 0xffff )
public
const
UTF8_FFFF
=
"
\x
ef
\x
bf
\x
bf"
;
public
const
UTF8_HEAD
=
false
;
public
const
UTF8_TAIL
=
true
;
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 19:23 (4 h, 30 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
de/77/71fbf4bae7290e9c943f6d05d916
Default Alt Text
Constants.php (3 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment