Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
|
Functions | |
_adapt ($delta, $numPoints, $firstTime) | |
Bias adaptation. | |
_calculateThreshold ($k, $bias) | |
Calculate the bias threshold to fall between TMIN and TMAX. | |
_charToCodePoint ($char) | |
Convert a single or multi-byte character to its code point. | |
static | _checkForError ($info) |
Checks if the $idna_info parameter of idn_to_ascii() or idn_to_utf8() contains errors. | |
_codePoints ($input) | |
List code points for a given input. | |
_codePointToChar ($code) | |
Convert a code point to its single or multi-byte character. | |
_decodePart ($input) | |
Decode a part of domain name, such as tld. | |
_encodePart ($input) | |
Encode a part of a domain name, such as tld, to its Punycode version. | |
static | _getBackend () |
Return the IDNA backend. | |
static | decode ( $input) |
Decode a Punycode domain name to its Unicode counterpart. | |
static | encode ( $input) |
Encode a domain to its Punycode version. | |
Variables | |
static | $_decodeTable |
Decode table. | |
static | $_encodeTable |
Encode table. | |
static string | $_pearDirectory = '@data_dir@' |
The absolute PEAR path to the translations for the default gettext handler. | |
const | DAMP = 700 |
const | DELIMITER = '-' |
*See the enclosed file LICENSE for license information(BSD). If you *did not receive this file see | http |
**See the enclosed file LICENSE for license information(BSD). If you *did not receive this file see | http |
*See the enclosed file LICENSE for license information(BSD). If you *did not receive this file see | http |
const | INITIAL_BIAS = 72 |
const | INITIAL_N = 128 |
const | PREFIX = 'xn--' |
const | SKEW = 38 |
const | TMAX = 26 |
const | TMIN = 1 |
|
protected |
Bias adaptation.
integer | $delta | |
integer | $numPoints | |
boolean | $firstTime |
integer |
|
protected |
Calculate the bias threshold to fall between TMIN and TMAX.
integer | $k | |
integer | $bias |
integer |
|
protected |
Convert a single or multi-byte character to its code point.
string | $char |
integer |
|
staticprotected |
Checks if the $idna_info parameter of idn_to_ascii() or idn_to_utf8() contains errors.
array | $info | Fourth parameter to idn_to_ascii() or idn_to_utf8(). |
Horde_Idna_Exception |
|
protected |
List code points for a given input.
string | $input |
array | Multi-dimension array with basic, non-basic and aggregated code points. |
|
protected |
Convert a code point to its single or multi-byte character.
integer | $code |
string |
|
protected |
Decode a part of domain name, such as tld.
string | $input | Part of a domain name. |
string | Unicode domain part. |
|
protected |
Encode a part of a domain name, such as tld, to its Punycode version.
string | $input | Part of a domain name. |
string | Punycode representation of a domain part. |
|
staticprotected |
Return the IDNA backend.
mixed | IDNA backend (false if none available). |
|
static |
Decode a Punycode domain name to its Unicode counterpart.
Horde_Idna_Exception |
string | $input | Domain name in Punycode |
string | Unicode domain name. |
|
static |
Encode a domain to its Punycode version.
Horde_Idna_Exception |
string | $input | Domain name in Unicde to be encoded. |
string | Punycode representation in ASCII. |
|
staticprotected |
Decode table.
array |
|
staticprotected |
Encode table.
array |