unicode.inc
Версия 1.23.2.2 (checked in on 2007/05/21 at 01:09:21 by drumm)
Константы
Имя | Описание |
---|---|
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 | Возвращает количество символов в строке имеющей кодировку UTF-8. Это кол-во обычно меньше или равно количеству байт. |
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 behaviour as PHP's own substr() function. |
drupal_ucfirst | Capitalize the first letter of a UTF-8 string. |
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 | Helper function for 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. |