Core Class
View Source on Trac ↗
Core Class
IdnaEncoder
class IdnaEncoder
// Constructor: function Object() { [native code] } IDNA URL encoder
Methods 8 methods
| Method / Return | Description |
|---|---|
| encode() string | Encode a hostname using Punycode
Parameters: $hostname: mixed |
| to_ascii() string | Convert a UTF-8 text string to an ASCII string using Punycode
Parameters: $text: mixed |
| is_ascii() bool | Check whether a given text string contains only ASCII characters
Parameters: $text: mixed |
| nameprep() string | Prepare a text string for use as an IDNA name
Parameters: $text: mixed |
| utf8_to_codepoints() array | Convert a UTF-8 string to a UCS-4 codepoint array
Parameters: $input: mixed |
| punycode_encode() string | RFC3492-compliant encoder
Parameters: $input: mixed |
| digit_to_char() string | Convert a digit to its respective character
Parameters: $digit: mixed |
| adapt() (int | Adapt the bias
Parameters: $delta: mixed, $numpoints: mixed, $firsttime: mixed |
Class Information
Source File
wp-includes/Requests/src/IdnaEncoder.php
Advertisement