La clase UConverter

(PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1)

Introducción

Sinopsis de la Clase

class UConverter {
/* Constantes */
const integer SBCS = 0;
const integer DBCS = 1;
const integer MBCS = 2;
const integer LATIN_1 = 3;
const integer UTF8 = 4;
const integer ISO_2022 = 10;
const integer LMBCS_1 = 11;
const integer LMBCS_2 = 12;
const integer LMBCS_3 = 13;
const integer LMBCS_4 = 14;
const integer LMBCS_5 = 15;
const integer LMBCS_6 = 16;
const integer LMBCS_8 = 17;
const integer LMBCS_11 = 18;
const integer LMBCS_16 = 19;
const integer LMBCS_17 = 20;
const integer LMBCS_18 = 21;
const integer LMBCS_19 = 22;
const integer LMBCS_LAST = 22;
const integer HZ = 23;
const integer SCSU = 24;
const integer ISCII = 25;
const integer US_ASCII = 26;
const integer UTF7 = 27;
const integer BOCU1 = 28;
const integer UTF16 = 29;
const integer UTF32 = 30;
const integer CESU8 = 31;
const integer IMAP_MAILBOX = 32;
/* Métodos */
public convert(string $str, bool $reverse = false): string|false
public fromUCallback(
    int $reason,
    array $source,
    int $codePoint,
    int &$error
): string|int|array|null
public static getAliases(string $name): array|false|null
public static getAvailable(): array
public getErrorCode(): int
public static getStandards(): ?array
public static reasonText(int $reason): string
public setSourceEncoding(string $encoding): bool
public setSubstChars(string $chars): bool
public toUCallback(
    int $reason,
    string $source,
    string $codeUnits,
    int &$error
): string|int|array|null
public static transcode(
    string $str,
    string $toEncoding,
    string $fromEncoding,
    ?array $options = null
): string|false
}

Tabla de contenidos