[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 412 lines (12 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
IdnaEncoder:: (8 methods):
encode()
to_ascii()
is_ascii()
nameprep()
utf8_to_codepoints()
punycode_encode()
digit_to_char()
adapt()
Class: IdnaEncoder - X-Ref
IDNA URL encoderencode($hostname) X-Ref |
Encode a hostname using Punycode param: string|Stringable $hostname Hostname return: string Punycode-encoded hostname |
to_ascii($text) X-Ref |
Convert a UTF-8 text string to an ASCII string using Punycode param: string $text ASCII or UTF-8 string (max length 64 characters) return: string ASCII string |
is_ascii($text) X-Ref |
Check whether a given text string contains only ASCII characters param: string $text Text to examine. return: bool Is the text string ASCII-only? |
nameprep($text) X-Ref |
Prepare a text string for use as an IDNA name param: string $text Text to prepare. return: string Prepared string |
utf8_to_codepoints($input) X-Ref |
Convert a UTF-8 string to a UCS-4 codepoint array Based on \WpOrg\Requests\Iri::replace_invalid_with_pct_encoding() param: string $input Text to convert. 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|float New bias |
Generated : Thu Nov 21 08:20:01 2024 | Cross-referenced by PHPXref |