PHP Class Punycode
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
Punycode implementation as described in RFC 3492
Show file
Open project: zblogcn/zblogphp
Class Usage Examples
Protected Properties
Public Methods
Protected Methods
Method Details
__construct()
public method
calculateThreshold()
protected method
Calculate the bias threshold to fall between TMIN and TMAX
charToCodePoint()
protected method
Convert a single or multi-byte character to its code point
codePointToChar()
protected method
Convert a code point to its single or multi-byte character
Decode a Punycode domain name to its Unicode counterpart
decodePart()
protected method
Decode a part of domain name, such as tld
Encode a domain to its Punycode version
encodePart()
protected method
Encode a part of a domain name, such as tld, to its Punycode version
listCodePoints()
protected method
List code points for a given input
Property Details
$decodeTable protected static property
protected static $decodeTable |
$encodeTable protected static property
protected static $encodeTable |
$encoding protected property