Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 223659 программистов и 2917 роботов. Сейчас ищут 1292 программиста ...
The UConverter class
Вернуться к: intl
(PHP 5.5.0, PHP 7, PECL >= 3.0.0a1)
Введение
Обзор классов
UConverter
{
/* Constants */
/* Методы */
public mixed fromUCallback
( integer
$reason
, string $source
, string $codePoint
, integer &$error
)
public static string transcode
( string
}$str
, string $toEncoding
, string $fromEncoding
[, array $options
] )Предопределенные константы
UConverter::REASON_UNASSIGNEDUConverter::REASON_ILLEGALUConverter::REASON_IRREGULARUConverter::REASON_RESETUConverter::REASON_CLOSEUConverter::REASON_CLONEUConverter::UNSUPPORTED_CONVERTERUConverter::SBCSUConverter::DBCSUConverter::MBCSUConverter::LATIN_1UConverter::UTF8UConverter::UTF16_BigEndianUConverter::UTF16_LittleEndianUConverter::UTF32_BigEndianUConverter::UTF32_LittleEndianUConverter::EBCDIC_STATEFULUConverter::ISO_2022UConverter::LMBCS_1UConverter::LMBCS_2UConverter::LMBCS_3UConverter::LMBCS_4UConverter::LMBCS_5UConverter::LMBCS_6UConverter::LMBCS_8UConverter::LMBCS_11UConverter::LMBCS_16UConverter::LMBCS_17UConverter::LMBCS_18UConverter::LMBCS_19UConverter::LMBCS_LASTUConverter::HZUConverter::SCSUUConverter::ISCIIUConverter::US_ASCIIUConverter::UTF7UConverter::BOCU1UConverter::UTF16UConverter::UTF32UConverter::CESU8UConverter::IMAP_MAILBOX
Содержание
- 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 convertor 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 string from one charset to another
Вернуться к: intl