The UConverter class
(PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1)
简介
类摘要
预定义常量
-
UConverter::REASON_UNASSIGNEDint -
-
UConverter::REASON_ILLEGALint -
-
UConverter::REASON_IRREGULARint -
-
UConverter::REASON_RESETint -
-
UConverter::REASON_CLOSEint -
-
UConverter::REASON_CLONEint -
-
UConverter::UNSUPPORTED_CONVERTERint -
-
UConverter::SBCSint -
-
UConverter::DBCSint -
-
UConverter::MBCSint -
-
UConverter::LATIN_1int -
-
UConverter::UTF8int -
-
UConverter::UTF16_BigEndianint -
-
UConverter::UTF16_LittleEndianint -
-
UConverter::UTF32_BigEndianint -
-
UConverter::UTF32_LittleEndianint -
-
UConverter::EBCDIC_STATEFULint -
-
UConverter::ISO_2022int -
-
UConverter::LMBCS_1int -
-
UConverter::LMBCS_2int -
-
UConverter::LMBCS_3int -
-
UConverter::LMBCS_4int -
-
UConverter::LMBCS_5int -
-
UConverter::LMBCS_6int -
-
UConverter::LMBCS_8int -
-
UConverter::LMBCS_11int -
-
UConverter::LMBCS_16int -
-
UConverter::LMBCS_17int -
-
UConverter::LMBCS_18int -
-
UConverter::LMBCS_19int -
-
UConverter::LMBCS_LASTint -
-
UConverter::HZint -
-
UConverter::SCSUint -
-
UConverter::ISCIIint -
-
UConverter::US_ASCIIint -
-
UConverter::UTF7int -
-
UConverter::BOCU1int -
-
UConverter::UTF16int -
-
UConverter::UTF32int -
-
UConverter::CESU8int -
-
UConverter::IMAP_MAILBOXint -
更新日志
| 版本 | 说明 |
|---|---|
| 8.4.0 | The class constants are now typed. |
目录
- UConverter::__construct — Create UConverter object
- UConverter::convert — Convert string from one charset to another
- UConverter::fromUCallback — Default "from" callback function
- UConverter::getAliases — Get the aliases of the given name
- UConverter::getAvailable — Get the available canonical converter names
- UConverter::getDestinationEncoding — Get the destination encoding
- UConverter::getDestinationType — Get the destination converter type
- UConverter::getErrorCode — Get last error code on the object
- UConverter::getErrorMessage — Get last error message on the object
- UConverter::getSourceEncoding — Get the source encoding
- UConverter::getSourceType — Get the source converter type
- UConverter::getStandards — Get standards associated to converter names
- UConverter::getSubstChars — Get substitution chars
- UConverter::reasonText — Get string representation of the callback reason
- UConverter::setDestinationEncoding — Set the destination encoding
- UConverter::setSourceEncoding — Set the source encoding
- UConverter::setSubstChars — Set the substitution chars
- UConverter::toUCallback — Default "to" callback function
- UConverter::transcode — Convert a string from one character encoding to another