[ Index ]

WordPress 5.4.1

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    




/wp-includes/Requests/ -> IDNAEncoder.php (summary)

(no description)

File Size: 388 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Requests_IDNAEncoder:: (8 methods):

Class: Requests_IDNAEncoder  - X-Ref

IDNA URL encoder

Note: Not fully compliant, as nameprep does nothing yet.

encode($string)   X-Ref
Encode a hostname using Punycode

param: string $string Hostname
return: string Punycode-encoded hostname

to_ascii($string)   X-Ref
Convert a UTF-8 string to an ASCII string using Punycode

param: string $string ASCII or UTF-8 string (max length 64 characters)
return: string ASCII string

is_ascii($string)   X-Ref
Check whether a given string contains only ASCII characters

param: string $string
return: bool Is the string ASCII-only?

nameprep($string)   X-Ref
Prepare a string for use as an IDNA name

param: string $string
return: string Prepared string

utf8_to_codepoints($input)   X-Ref
Convert a UTF-8 string to a UCS-4 codepoint array

Based on Requests_IRI::replace_invalid_with_pct_encoding()

param: string $input
return: array Unicode code points

punycode_encode($input)   X-Ref
RFC3492-compliant encoder

param: string $input UTF-8 encoded string to encode
return: string Punycode-encoded string

digit_to_char($digit)   X-Ref
Convert a digit to its respective character

param: int $digit Digit in the range 0-35
return: string Single character corresponding to digit

adapt($delta, $numpoints, $firsttime)   X-Ref
Adapt the bias

param: int $delta
param: int $numpoints
param: bool $firsttime
return: int New bias

Generated: Tue May 19 15:51:04 2020 Cross-referenced by PHPXref 0.7.1