Documentation

IdnaInfo
in package

Tags
see
https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/uidna_8h.html

Table of Contents

ERRORS  = [LeagueUriIdnaIdna::ERROR_EMPTY_LABEL => 'a non-final domain name label (or the whole domain name) is empty', LeagueUriIdnaIdna::ERROR_LABEL_TOO_LONG => 'a domain name label is longer than 63 bytes', LeagueUriIdnaIdna::ERROR_DOMAIN_NAME_TOO_LONG => 'a domain name is longer than 255 bytes in its storage form', LeagueUriIdnaIdna::ERROR_LEADING_HYPHEN => 'a label starts with a hyphen-minus ("-")', LeagueUriIdnaIdna::ERROR_TRAILING_HYPHEN => 'a label ends with a hyphen-minus ("-")', LeagueUriIdnaIdna::ERROR_HYPHEN_3_4 => 'a label contains hyphen-minus ("-") in the third and fourth positions', LeagueUriIdnaIdna::ERROR_LEADING_COMBINING_MARK => 'a label starts with a combining mark', LeagueUriIdnaIdna::ERROR_DISALLOWED => 'a label or domain name contains disallowed characters', LeagueUriIdnaIdna::ERROR_PUNYCODE => 'a label starts with "xn--" but does not contain valid Punycode', LeagueUriIdnaIdna::ERROR_LABEL_HAS_DOT => 'a label contains a dot=full stop', LeagueUriIdnaIdna::ERROR_INVALID_ACE_LABEL => 'An ACE label does not contain a valid label string', LeagueUriIdnaIdna::ERROR_BIDI => 'a label does not meet the IDNA BiDi requirements (for right-to-left characters)', LeagueUriIdnaIdna::ERROR_CONTEXTJ => 'a label does not meet the IDNA CONTEXTJ requirements', LeagueUriIdnaIdna::ERROR_CONTEXTO_DIGITS => 'a label does not meet the IDNA CONTEXTO requirements for digits', LeagueUriIdnaIdna::ERROR_CONTEXTO_PUNCTUATION => 'a label does not meet the IDNA CONTEXTO requirements for punctuation characters. Some punctuation characters "Would otherwise have been DISALLOWED" but are allowed in certain contexts']
$errorList  : array<int, string>
$errors  : int
$isTransitionalDifferent  : bool
$result  : string
__set_state()  : self
error()  : string|null
errorList()  : array<int, string>
errors()  : int
fromIntl()  : self
isTransitionalDifferent()  : bool
result()  : string
__construct()  : mixed

Constants

ERRORS

private mixed ERRORS = [LeagueUriIdnaIdna::ERROR_EMPTY_LABEL => 'a non-final domain name label (or the whole domain name) is empty', LeagueUriIdnaIdna::ERROR_LABEL_TOO_LONG => 'a domain name label is longer than 63 bytes', LeagueUriIdnaIdna::ERROR_DOMAIN_NAME_TOO_LONG => 'a domain name is longer than 255 bytes in its storage form', LeagueUriIdnaIdna::ERROR_LEADING_HYPHEN => 'a label starts with a hyphen-minus ("-")', LeagueUriIdnaIdna::ERROR_TRAILING_HYPHEN => 'a label ends with a hyphen-minus ("-")', LeagueUriIdnaIdna::ERROR_HYPHEN_3_4 => 'a label contains hyphen-minus ("-") in the third and fourth positions', LeagueUriIdnaIdna::ERROR_LEADING_COMBINING_MARK => 'a label starts with a combining mark', LeagueUriIdnaIdna::ERROR_DISALLOWED => 'a label or domain name contains disallowed characters', LeagueUriIdnaIdna::ERROR_PUNYCODE => 'a label starts with "xn--" but does not contain valid Punycode', LeagueUriIdnaIdna::ERROR_LABEL_HAS_DOT => 'a label contains a dot=full stop', LeagueUriIdnaIdna::ERROR_INVALID_ACE_LABEL => 'An ACE label does not contain a valid label string', LeagueUriIdnaIdna::ERROR_BIDI => 'a label does not meet the IDNA BiDi requirements (for right-to-left characters)', LeagueUriIdnaIdna::ERROR_CONTEXTJ => 'a label does not meet the IDNA CONTEXTJ requirements', LeagueUriIdnaIdna::ERROR_CONTEXTO_DIGITS => 'a label does not meet the IDNA CONTEXTO requirements for digits', LeagueUriIdnaIdna::ERROR_CONTEXTO_PUNCTUATION => 'a label does not meet the IDNA CONTEXTO requirements for punctuation characters. Some punctuation characters "Would otherwise have been DISALLOWED" but are allowed in certain contexts']

Properties

$errorList

private array<int, string> $errorList

$isTransitionalDifferent

private bool $isTransitionalDifferent

Methods

__set_state()

public static __set_state(array{result: string, isTransitionalDifferent: bool, errors: int} $properties) : self
Parameters
$properties : array{result: string, isTransitionalDifferent: bool, errors: int}
Return values
self

error()

public error(int $error) : string|null
Parameters
$error : int
Return values
string|null

errorList()

public errorList() : array<int, string>
Return values
array<int, string>

errors()

public errors() : int
Return values
int

fromIntl()

public static fromIntl(array{result: string, isTransitionalDifferent: bool, errors: int} $infos) : self
Parameters
$infos : array{result: string, isTransitionalDifferent: bool, errors: int}
Return values
self

isTransitionalDifferent()

public isTransitionalDifferent() : bool
Return values
bool

result()

public result() : string
Return values
string

__construct()

private __construct(string $result, bool $isTransitionalDifferent, int $errors) : mixed
Parameters
$result : string
$isTransitionalDifferent : bool
$errors : int
Return values
mixed

Search results