unicode.inc

Version

1.29 (checked in on 2007/12/28 at 12:02:50 by dries)

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 behavior as PHP's own substr) function.
drupal_truncate_bytesTruncate a UTF-8-encoded string safely to a number of bytes.
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 characters.
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.
 
 

Drupal is a registered trademark of Dries Buytaert.