1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс CBXPunycode

Открытые члены

 __construct ($encoding=null)
 IsEncoded ($domainName)
 Decode ($domainName)
 Encode ($domainName)
 GetErrors ()

Открытые статические члены

static GetConverter ()
static ToASCII ($domainName, &$arErrors)
static ToUnicode ($domainName, &$arErrors)
static CheckASCII ($domainName)

Поля данных

const PREFIX = 'xn--'

Подробное описание

См. определение в файле punycode.php строка 3

Конструктор(ы)

◆ __construct()

__construct ( $encoding = null)

См. определение в файле punycode.php строка 91

Методы

◆ CheckASCII()

CheckASCII ( $domainName)
static

Check if the given string contains encoded parts

Аргументы
string$domainNameString to be checked
Возвращает
bool True - if the given string contains encoded parts, false - otherwise

См. определение в файле punycode.php строка 85

◆ Decode()

Decode ( $domainName)

Decode the given string

Аргументы
string$domainNameString to be decoded
Возвращает
string Decoded form of the given string

См. определение в файле punycode.php строка 153

◆ Encode()

Encode ( $domainName)

Encode the given string

Аргументы
string$domainNameString to be encoded
Возвращает
string Encoded form of the given string

См. определение в файле punycode.php строка 213

◆ GetConverter()

GetConverter ( )
static

Singleton method to return object instance.

Возвращает
CBXPunycode

См. определение в файле punycode.php строка 25

◆ GetErrors()

GetErrors ( )

См. определение в файле punycode.php строка 728

◆ IsEncoded()

IsEncoded ( $domainName)

Check if the string contains encoded parts

Аргументы
string$domainNameValidated string
Возвращает
bool

См. определение в файле punycode.php строка 118

◆ ToASCII()

ToASCII ( $domainName,
& $arErrors )
static

Encode the given string

Аргументы
string$domainNameString to be encoded
array$arErrorsArray of encoding errors (if any)
Возвращает
string Encoded form of the given string

См. определение в файле punycode.php строка 44

◆ ToUnicode()

ToUnicode ( $domainName,
& $arErrors )
static

Decode the given string

Аргументы
string$domainNameString to be decoded
array$arErrorsArray of decoding errors (if any)
Возвращает
string Decoded form of the given string

См. определение в файле punycode.php строка 65

Поля

◆ PREFIX

const PREFIX = 'xn--'

См. определение в файле punycode.php строка 5


Объявления и описания членов класса находятся в файле: