Class Punycode
Punycode implementation as described in RFC 3492
Package: php-punycode
Copyright: 2020 Simple Machines and individual contributors
License: Simple Machines Forum (SMF)
License: BSD
Author: TrueServer B.V. support@true.nl
Author: Simple Machines https://www.simplemachines.org
Link: http://tools.ietf.org/html/rfc3492
Located at Sources/Class-Punycode.php
Copyright: 2020 Simple Machines and individual contributors
License: Simple Machines Forum (SMF)
License: BSD
Author: TrueServer B.V. support@true.nl
Author: Simple Machines https://www.simplemachines.org
Link: http://tools.ietf.org/html/rfc3492
Located at Sources/Class-Punycode.php
public
|
|
public
string
|
|
protected
string
|
|
public
string
|
|
protected
string
|
|
protected
integer
|
#
calculateThreshold( integer $k, integer $bias )
Calculate the bias threshold to fall between TMIN and TMAX |
protected
integer
|
|
protected
array
|
|
protected
integer
|
|
protected
string
|
integer |
BASE
Bootstring parameter values |
#
36
|
integer |
TMIN
|
#
1
|
integer |
TMAX
|
#
26
|
integer |
SKEW
|
#
38
|
integer |
DAMP
|
#
700
|
integer |
INITIAL_BIAS
|
#
72
|
integer |
INITIAL_N
|
#
128
|
string |
PREFIX
|
#
'xn--'
|
string |
DELIMITER
|
#
'-'
|
protected static
array
|
$encodeTable
Encode table |
#
array(
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',
'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x',
'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
)
|
protected static
array
|
$decodeTable
Decode table |
#
array(
'a' => 0, 'b' => 1, 'c' => 2, 'd' => 3, 'e' => 4, 'f' => 5,
'g' => 6, 'h' => 7, 'i' => 8, 'j' => 9, 'k' => 10, 'l' => 11,
'm' => 12, 'n' => 13, 'o' => 14, 'p' => 15, 'q' => 16, 'r' => 17,
's' => 18, 't' => 19, 'u' => 20, 'v' => 21, 'w' => 22, 'x' => 23,
'y' => 24, 'z' => 25, '0' => 26, '1' => 27, '2' => 28, '3' => 29,
'4' => 30, '5' => 31, '6' => 32, '7' => 33, '8' => 34, '9' => 35
)
|
protected
|
$encoding
Character encoding |