unicode.inc

Version

1.23.2.2 (checked in on 2007/05/21 at 01:09:21 by drumm)

Constants

Namesort iconDescription
UNICODE_ERRORIndicates an error during check for PHP unicode support.
UNICODE_MULTIBYTEIndicates that full unicode support with the PHP mbstring extension is being used.
UNICODE_SINGLEBYTEIndicates that standard PHP (emulated) unicode support is being used.

Functions

Namesort iconDescription
decode_entitiesDecode all HTML entities (including numerical ones) to regular UTF-8 bytes. Double-escaped entities will only be decoded once ("&amp;lt;" becomes "&lt;", not "<").
drupal_convert_to_utf8Convert data to UTF-8
drupal_strlenCount the amount of characters in a UTF-8 string. This is less than or equal to the byte count.
drupal_strtolowerLowercase a UTF-8 string.
drupal_strtoupperUppercase a UTF-8 string.
drupal_substrCut off a piece of a string based on character indices and counts. Follows the same behaviour as PHP's own substr) function.
drupal_ucfirstCapitalize the first letter of a UTF-8 string.
drupal_xml_parser_createPrepare a new XML parser.
mime_header_decodeComplement to mime_header_encode
mime_header_encodeEncodes MIME/HTTP header values that contain non-ASCII, UTF-8 encoded characters.
truncate_utf8Truncate a UTF-8-encoded string safely to a number of bytes.
unicode_checkWrapper around _unicode_check().
unicode_requirementsReturn Unicode library status and errors.
_decode_entitiesHelper function for decode_entities
_mime_header_decodeHelper function to mime_header_decode
_unicode_caseflipHelper function for case conversion of Latin-1. Used for flipping U+C0-U+DE to U+E0-U+FD and back.
_unicode_checkPerform checks about Unicode support in PHP, and set the right settings if needed.
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.