php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
UConverter Class Reference

Public Member Functions

 __construct (?string $destination_encoding=null, ?string $source_encoding=null)
 
 convert (string $str, bool $reverse=false)
 
 fromUCallback (int $reason, array $source, int $codePoint, &$error)
 
 getDestinationEncoding ()
 
 getDestinationType ()
 
 getErrorCode ()
 
 getErrorMessage ()
 
 getSourceEncoding ()
 
 getSourceType ()
 
 getSubstChars ()
 
 setDestinationEncoding (string $encoding)
 
 setSourceEncoding (string $encoding)
 
 setSubstChars (string $chars)
 
 toUCallback (int $reason, string $source, string $codeUnits, &$error)
 

Static Public Member Functions

static getAliases (string $name)
 
static getAvailable ()
 
static getStandards ()
 
static reasonText (int $reason)
 
static transcode (string $str, string $toEncoding, string $fromEncoding, ?array $options=null)
 

Data Fields

const int REASON_UNASSIGNED = UNKNOWN
 
const int REASON_ILLEGAL = UNKNOWN
 
const int REASON_IRREGULAR = UNKNOWN
 
const int REASON_RESET = UNKNOWN
 
const int REASON_CLOSE = UNKNOWN
 
const int REASON_CLONE = UNKNOWN
 
const int UNSUPPORTED_CONVERTER = UNKNOWN
 
const int SBCS = UNKNOWN
 
const int DBCS = UNKNOWN
 
const int MBCS = UNKNOWN
 
const int LATIN_1 = UNKNOWN
 
const int UTF8 = UNKNOWN
 
const int UTF16_BigEndian = UNKNOWN
 
const int UTF16_LittleEndian = UNKNOWN
 
const int UTF32_BigEndian = UNKNOWN
 
const int UTF32_LittleEndian = UNKNOWN
 
const int EBCDIC_STATEFUL = UNKNOWN
 
const int ISO_2022 = UNKNOWN
 
const int LMBCS_1 = UNKNOWN
 
const int LMBCS_2 = UNKNOWN
 
const int LMBCS_3 = UNKNOWN
 
const int LMBCS_4 = UNKNOWN
 
const int LMBCS_5 = UNKNOWN
 
const int LMBCS_6 = UNKNOWN
 
const int LMBCS_8 = UNKNOWN
 
const int LMBCS_11 = UNKNOWN
 
const int LMBCS_16 = UNKNOWN
 
const int LMBCS_17 = UNKNOWN
 
const int LMBCS_18 = UNKNOWN
 
const int LMBCS_19 = UNKNOWN
 
const int LMBCS_LAST = UNKNOWN
 
const int HZ = UNKNOWN
 
const int SCSU = UNKNOWN
 
const int ISCII = UNKNOWN
 
const int US_ASCII = UNKNOWN
 
const int UTF7 = UNKNOWN
 
const int BOCU1 = UNKNOWN
 
const int UTF16 = UNKNOWN
 
const int UTF32 = UNKNOWN
 
const int CESU8 = UNKNOWN
 
const int IMAP_MAILBOX = UNKNOWN
 

Detailed Description

@generate-class-entries @not-serializable

Definition at line 6 of file converter.stub.php.

Constructor & Destructor Documentation

◆ __construct()

UConverter::__construct ( ?string $destination_encoding = null,
?string $source_encoding = null )

Definition at line 96 of file converter.stub.php.

Member Function Documentation

◆ convert()

UConverter::convert ( string $str,
bool $reverse = false )

@tentative-return-type

Definition at line 99 of file converter.stub.php.

◆ fromUCallback()

UConverter::fromUCallback ( int $reason,
array $source,
int $codePoint,
& $error )
Parameters
int$error@tentative-return-type

Definition at line 105 of file converter.stub.php.

◆ getAliases()

static UConverter::getAliases ( string $name)
static
Returns
array<int, string>|false|null @tentative-return-type

Definition at line 111 of file converter.stub.php.

◆ getAvailable()

static UConverter::getAvailable ( )
static
Returns
array<int, string> @tentative-return-type

Definition at line 117 of file converter.stub.php.

◆ getDestinationEncoding()

UConverter::getDestinationEncoding ( )

@tentative-return-type

Definition at line 120 of file converter.stub.php.

◆ getDestinationType()

UConverter::getDestinationType ( )

@tentative-return-type

Definition at line 123 of file converter.stub.php.

◆ getErrorCode()

UConverter::getErrorCode ( )

@tentative-return-type

Definition at line 126 of file converter.stub.php.

◆ getErrorMessage()

UConverter::getErrorMessage ( )

@tentative-return-type

Definition at line 129 of file converter.stub.php.

◆ getSourceEncoding()

UConverter::getSourceEncoding ( )

@tentative-return-type

Definition at line 132 of file converter.stub.php.

◆ getSourceType()

UConverter::getSourceType ( )

@tentative-return-type

Definition at line 135 of file converter.stub.php.

◆ getStandards()

static UConverter::getStandards ( )
static

@tentative-return-type

Definition at line 138 of file converter.stub.php.

◆ getSubstChars()

UConverter::getSubstChars ( )

@tentative-return-type

Definition at line 141 of file converter.stub.php.

◆ reasonText()

static UConverter::reasonText ( int $reason)
static

@tentative-return-type

Definition at line 144 of file converter.stub.php.

◆ setDestinationEncoding()

UConverter::setDestinationEncoding ( string $encoding)

@tentative-return-type

Definition at line 147 of file converter.stub.php.

◆ setSourceEncoding()

UConverter::setSourceEncoding ( string $encoding)

@tentative-return-type

Definition at line 150 of file converter.stub.php.

◆ setSubstChars()

UConverter::setSubstChars ( string $chars)

@tentative-return-type

Definition at line 153 of file converter.stub.php.

◆ toUCallback()

UConverter::toUCallback ( int $reason,
string $source,
string $codeUnits,
& $error )
Parameters
int$error@tentative-return-type

Definition at line 159 of file converter.stub.php.

◆ transcode()

static UConverter::transcode ( string $str,
string $toEncoding,
string $fromEncoding,
?array $options = null )
static

@tentative-return-type

Definition at line 162 of file converter.stub.php.

Field Documentation

◆ BOCU1

const int UConverter::BOCU1 = UNKNOWN

@cvalue UCNV_BOCU1

Definition at line 86 of file converter.stub.php.

◆ CESU8

const int UConverter::CESU8 = UNKNOWN

@cvalue UCNV_CESU8

Definition at line 92 of file converter.stub.php.

◆ DBCS

const int UConverter::DBCS = UNKNOWN

@cvalue UCNV_DBCS

Definition at line 30 of file converter.stub.php.

◆ EBCDIC_STATEFUL

const int UConverter::EBCDIC_STATEFUL = UNKNOWN

@cvalue UCNV_EBCDIC_STATEFUL

Definition at line 46 of file converter.stub.php.

◆ HZ

const int UConverter::HZ = UNKNOWN

@cvalue UCNV_HZ

Definition at line 76 of file converter.stub.php.

◆ IMAP_MAILBOX

const int UConverter::IMAP_MAILBOX = UNKNOWN

@cvalue UCNV_IMAP_MAILBOX

Definition at line 94 of file converter.stub.php.

◆ ISCII

const int UConverter::ISCII = UNKNOWN

@cvalue UCNV_ISCII

Definition at line 80 of file converter.stub.php.

◆ ISO_2022

const int UConverter::ISO_2022 = UNKNOWN

@cvalue UCNV_ISO_2022

Definition at line 48 of file converter.stub.php.

◆ LATIN_1

const int UConverter::LATIN_1 = UNKNOWN

@cvalue UCNV_LATIN_1

Definition at line 34 of file converter.stub.php.

◆ LMBCS_1

const int UConverter::LMBCS_1 = UNKNOWN

@cvalue UCNV_LMBCS_1

Definition at line 50 of file converter.stub.php.

◆ LMBCS_11

const int UConverter::LMBCS_11 = UNKNOWN

@cvalue UCNV_LMBCS_11

Definition at line 64 of file converter.stub.php.

◆ LMBCS_16

const int UConverter::LMBCS_16 = UNKNOWN

@cvalue UCNV_LMBCS_16

Definition at line 66 of file converter.stub.php.

◆ LMBCS_17

const int UConverter::LMBCS_17 = UNKNOWN

@cvalue UCNV_LMBCS_17

Definition at line 68 of file converter.stub.php.

◆ LMBCS_18

const int UConverter::LMBCS_18 = UNKNOWN

@cvalue UCNV_LMBCS_18

Definition at line 70 of file converter.stub.php.

◆ LMBCS_19

const int UConverter::LMBCS_19 = UNKNOWN

@cvalue UCNV_LMBCS_19

Definition at line 72 of file converter.stub.php.

◆ LMBCS_2

const int UConverter::LMBCS_2 = UNKNOWN

@cvalue UCNV_LMBCS_2

Definition at line 52 of file converter.stub.php.

◆ LMBCS_3

const int UConverter::LMBCS_3 = UNKNOWN

@cvalue UCNV_LMBCS_3

Definition at line 54 of file converter.stub.php.

◆ LMBCS_4

const int UConverter::LMBCS_4 = UNKNOWN

@cvalue UCNV_LMBCS_4

Definition at line 56 of file converter.stub.php.

◆ LMBCS_5

const int UConverter::LMBCS_5 = UNKNOWN

@cvalue UCNV_LMBCS_5

Definition at line 58 of file converter.stub.php.

◆ LMBCS_6

const int UConverter::LMBCS_6 = UNKNOWN

@cvalue UCNV_LMBCS_6

Definition at line 60 of file converter.stub.php.

◆ LMBCS_8

const int UConverter::LMBCS_8 = UNKNOWN

@cvalue UCNV_LMBCS_8

Definition at line 62 of file converter.stub.php.

◆ LMBCS_LAST

const int UConverter::LMBCS_LAST = UNKNOWN

@cvalue UCNV_LMBCS_LAST

Definition at line 74 of file converter.stub.php.

◆ MBCS

const int UConverter::MBCS = UNKNOWN

@cvalue UCNV_MBCS

Definition at line 32 of file converter.stub.php.

◆ REASON_CLONE

const int UConverter::REASON_CLONE = UNKNOWN

@cvalue UCNV_CLONE

Definition at line 21 of file converter.stub.php.

◆ REASON_CLOSE

const int UConverter::REASON_CLOSE = UNKNOWN

@cvalue UCNV_CLOSE

Definition at line 19 of file converter.stub.php.

◆ REASON_ILLEGAL

const int UConverter::REASON_ILLEGAL = UNKNOWN

@cvalue UCNV_ILLEGAL

Definition at line 13 of file converter.stub.php.

◆ REASON_IRREGULAR

const int UConverter::REASON_IRREGULAR = UNKNOWN

@cvalue UCNV_IRREGULAR

Definition at line 15 of file converter.stub.php.

◆ REASON_RESET

const int UConverter::REASON_RESET = UNKNOWN

@cvalue UCNV_RESET

Definition at line 17 of file converter.stub.php.

◆ REASON_UNASSIGNED

const int UConverter::REASON_UNASSIGNED = UNKNOWN

@cvalue UCNV_UNASSIGNED

Definition at line 11 of file converter.stub.php.

◆ SBCS

const int UConverter::SBCS = UNKNOWN

@cvalue UCNV_SBCS

Definition at line 28 of file converter.stub.php.

◆ SCSU

const int UConverter::SCSU = UNKNOWN

@cvalue UCNV_SCSU

Definition at line 78 of file converter.stub.php.

◆ UNSUPPORTED_CONVERTER

const int UConverter::UNSUPPORTED_CONVERTER = UNKNOWN

@cvalue UCNV_UNSUPPORTED_CONVERTER

Definition at line 26 of file converter.stub.php.

◆ US_ASCII

const int UConverter::US_ASCII = UNKNOWN

@cvalue UCNV_US_ASCII

Definition at line 82 of file converter.stub.php.

◆ UTF16

const int UConverter::UTF16 = UNKNOWN

@cvalue UCNV_UTF16

Definition at line 88 of file converter.stub.php.

◆ UTF16_BigEndian

const int UConverter::UTF16_BigEndian = UNKNOWN

@cvalue UCNV_UTF16_BigEndian

Definition at line 38 of file converter.stub.php.

◆ UTF16_LittleEndian

const int UConverter::UTF16_LittleEndian = UNKNOWN

@cvalue UCNV_UTF16_LittleEndian

Definition at line 40 of file converter.stub.php.

◆ UTF32

const int UConverter::UTF32 = UNKNOWN

@cvalue UCNV_UTF32

Definition at line 90 of file converter.stub.php.

◆ UTF32_BigEndian

const int UConverter::UTF32_BigEndian = UNKNOWN

@cvalue UCNV_UTF32_BigEndian

Definition at line 42 of file converter.stub.php.

◆ UTF32_LittleEndian

const int UConverter::UTF32_LittleEndian = UNKNOWN

@cvalue UCNV_UTF32_LittleEndian

Definition at line 44 of file converter.stub.php.

◆ UTF7

const int UConverter::UTF7 = UNKNOWN

@cvalue UCNV_UTF7

Definition at line 84 of file converter.stub.php.

◆ UTF8

const int UConverter::UTF8 = UNKNOWN

@cvalue UCNV_UTF8

Definition at line 36 of file converter.stub.php.


The documentation for this class was generated from the following file: