unicode.inc
Version 1.29 (checked in on 2007/12/28 at 12:02:50 by dries)
Constants
| Name | Description |
|---|---|
| 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. |
Functions
| Name | Description |
|---|---|
| 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 | Convert data to 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 | Lowercase a UTF-8 string. |
| drupal_strtoupper | Uppercase a UTF-8 string. |
| 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 | 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 | Truncate a UTF-8-encoded string safely to a number of characters. |
| 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. |
