unicode.inc
Версия 1.29 (checked in on 2007/12/28 at 12:02:50 by dries)
Константы
Имя | Описание |
---|---|
UNICODE_ERROR | Indicates an error during check for PHP unicode support. |
UNICODE_MULTIBYTE | Indicates that full unicode support with the PHP mbstring extension is being used. |
UNICODE_SINGLEBYTE | Indicates that standard PHP (emulated) unicode support is being used. |
Функции
Имя | Описание |
---|---|
decode_entities | Decode all HTML entities (including numerical ones) to regular UTF-8 bytes. Double-escaped entities will only be decoded once ('&lt;' becomes '<', not '<'). |
drupal_convert_to_utf8 | Конвертирует данные в UTF-8. |
drupal_strlen | Count the amount of characters in a UTF-8 string. This is less than or equal to the byte count. |
drupal_strtolower | Преобразовывает UTF-8 строку в нижний регистр. |
drupal_strtoupper | Преобразовывает UTF-8 строку в верхний регистр. |
drupal_substr | Cut off a piece of a string based on character indices and counts. Follows the same behavior as PHP's own substr() function. |
drupal_truncate_bytes | Truncate a UTF-8-encoded string safely to a number of bytes. |
drupal_ucfirst | Делает прописным первый символ строки UTF-8. |
drupal_xml_parser_create | Prepare a new XML parser. |
mime_header_decode | Complement to mime_header_encode |
mime_header_encode | Encodes MIME/HTTP header values that contain non-ASCII, UTF-8 encoded characters. |
truncate_utf8 | Безопасно обрезает кодированную в UTF-8 строку до указанного количества символов. |
unicode_check | Wrapper around _unicode_check(). |
unicode_requirements | Return Unicode library status and errors. |
_decode_entities | Вспомогательная функция для decode_entities. |
_mime_header_decode | Helper function to mime_header_decode |
_unicode_caseflip | Helper function for case conversion of Latin-1. Used for flipping U+C0-U+DE to U+E0-U+FD and back. |
_unicode_check | Perform checks about Unicode support in PHP, and set the right settings if needed. |