UConverter クラス

はじめに

クラス概要

UConverter
/* 定数 */
public const int UConverter::REASON_UNASSIGNED;
public const int UConverter::REASON_ILLEGAL;
public const int UConverter::REASON_IRREGULAR;
public const int UConverter::REASON_RESET;
public const int UConverter::REASON_CLOSE;
public const int UConverter::REASON_CLONE;
public const int UConverter::UNSUPPORTED_CONVERTER;
public const int UConverter::SBCS;
public const int UConverter::DBCS;
public const int UConverter::MBCS;
public const int UConverter::LATIN_1;
public const int UConverter::UTF8;
public const int UConverter::UTF16_BigEndian;
public const int UConverter::UTF16_LittleEndian;
public const int UConverter::UTF32_BigEndian;
public const int UConverter::UTF32_LittleEndian;
public const int UConverter::EBCDIC_STATEFUL;
public const int UConverter::ISO_2022;
public const int UConverter::LMBCS_1;
public const int UConverter::LMBCS_2;
public const int UConverter::LMBCS_3;
public const int UConverter::LMBCS_4;
public const int UConverter::LMBCS_5;
public const int UConverter::LMBCS_6;
public const int UConverter::LMBCS_8;
public const int UConverter::LMBCS_11;
public const int UConverter::LMBCS_16;
public const int UConverter::LMBCS_17;
public const int UConverter::LMBCS_18;
public const int UConverter::LMBCS_19;
public const int UConverter::LMBCS_LAST;
public const int UConverter::HZ;
public const int UConverter::SCSU;
public const int UConverter::ISCII;
public const int UConverter::US_ASCII;
public const int UConverter::UTF7;
public const int UConverter::BOCU1;
public const int UConverter::UTF16;
public const int UConverter::UTF32;
public const int UConverter::CESU8;
public const int UConverter::IMAP_MAILBOX;
/* メソッド */
public __construct(stringnull $destination_encoding = null, stringnull $source_encoding = null)
public stringfalse convert(string $str, bool $reverse = false)
public stringintarraynull fromUCallback(
    int $reason,
    array $source,
    int $codePoint,
    int &$error
)
public static arrayfalsenull getAliases(string $name)
public static array getAvailable()
public stringfalsenull getDestinationEncoding()
public intfalsenull getDestinationType()
public int getErrorCode()
public stringnull getErrorMessage()
public stringfalsenull getSourceEncoding()
public intfalsenull getSourceType()
public static arraynull getStandards()
public stringfalsenull getSubstChars()
public static string reasonText(int $reason)
public bool setDestinationEncoding(string $encoding)
public bool setSourceEncoding(string $encoding)
public bool setSubstChars(string $chars)
public stringintarraynull toUCallback(
    int $reason,
    string $source,
    string $codeUnits,
    int &$error
)
public static stringfalse transcode(
    string $str,
    string $toEncoding,
    string $fromEncoding,
    arraynull $options = null
)

定義済み定数

UConverter::REASON_UNASSIGNED

UConverter::REASON_ILLEGAL

UConverter::REASON_IRREGULAR

UConverter::REASON_RESET

UConverter::REASON_CLOSE

UConverter::REASON_CLONE

UConverter::UNSUPPORTED_CONVERTER

UConverter::SBCS

UConverter::DBCS

UConverter::MBCS

UConverter::LATIN_1

UConverter::UTF8

UConverter::UTF16_BigEndian

UConverter::UTF16_LittleEndian

UConverter::UTF32_BigEndian

UConverter::UTF32_LittleEndian

UConverter::EBCDIC_STATEFUL

UConverter::ISO_2022

UConverter::LMBCS_1

UConverter::LMBCS_2

UConverter::LMBCS_3

UConverter::LMBCS_4

UConverter::LMBCS_5

UConverter::LMBCS_6

UConverter::LMBCS_8

UConverter::LMBCS_11

UConverter::LMBCS_16

UConverter::LMBCS_17

UConverter::LMBCS_18

UConverter::LMBCS_19

UConverter::LMBCS_LAST

UConverter::HZ

UConverter::SCSU

UConverter::ISCII

UConverter::US_ASCII

UConverter::UTF7

UConverter::BOCU1

UConverter::UTF16

UConverter::UTF32

UConverter::CESU8

UConverter::IMAP_MAILBOX

目次