phpBB3


Package utf

Class Summary
utf_normalizerUnicode normalization routines
Function Summary
utf8_basenameUTF8-safe basename() functionbasename() has some limitations and is dependent on the locale setting according to the PHP manual.
utf8_case_foldCase folds a unicode string as per Unicode 5.0, section 3.13
utf8_case_fold_nfcAssume the input is NFC: Takes the input and does a "special" case fold.
utf8_case_fold_nfkcTakes the input and does a "special" case fold.
utf8_chrConverts an NCR to a UTF-8 char
utf8_clean_stringThis function is used to generate a "clean" version of a string.
utf8_convert_messageTrying to convert returned system message to utf8PHP assumes such messages are ISO-8859-1 so we'll do that too and if it breaks messages we'll blame it on them ;-)
utf8_decodeImplementation of PHP's native utf8_decode for people without XML support
utf8_decode_ncrConvert Numeric Character References to UTF-8 charsNotes: - we do not convert NCRs recursively, if you pass & it will return & - we DO NOT check for the existence of the Unicode characters, therefore an entity may be converted to an inexistent codepoint
utf8_decode_ncr_callbackCallback used in decode_ncr()Takes a NCR (in decimal or hexadecimal) and returns a UTF-8 char.
utf8_encodeImplementation of PHP's native utf8_encode for people without XML support This function exploits some nice things that ISO-8859-1 and UTF-8 have in common
utf8_encode_ncrReplace all UTF-8 chars that are not in ASCII with their NCR
utf8_encode_ncr_callbackCallback used in encode_ncr()Takes a UTF-8 char and replaces it with its NCR.
utf8_htmlspecialcharsA wrapper for htmlspecialchars($value, ENT_COMPAT, 'UTF-8')
utf8_normalize_nfcA wrapper function for the normalizer which takes care of including the class if required and modifies the passed strings to be in NFC (Normalization Form Composition).
utf8_ordConverts a UTF-8 char to an NCR
utf8_recodeRecode a string to UTF-8If the encoding is not supported, the string is returned as-is
utf8_str_replaceUTF8-safe str_replace() function
utf8_str_splitUTF-8 aware alternative to str_split Convert a string to an array
utf8_strlenReturn the length (in characters) of a UTF-8 string
utf8_strposUTF-8 aware alternative to strpos Find position of first occurrence of a string
utf8_strrposUTF-8 aware alternative to strrpos Find position of last occurrence of a char in a string
utf8_strspnUTF-8 aware alternative to strspn Find length of initial segment matching the mask
utf8_strtolowerUTF-8 aware alternative to strtolower Make a string lowercase Note: The concept of a characters "case" only exists is some alphabets such as Latin, Greek, Cyrillic, Armenian and archaic Georgian - it does not exist in the Chinese alphabet, for example.
utf8_strtoupperUTF-8 aware alternative to strtoupper Make a string uppercase Note: The concept of a characters "case" only exists is some alphabets such as Latin, Greek, Cyrillic, Armenian and archaic Georgian - it does not exist in the Chinese alphabet, for example.
utf8_substrUTF-8 aware alternative to substr Return part of a string given character offset (and optionally length)Note arguments: comparied to substr - if offset or length are not integers, this version will not complain but rather massages them into an integer.
utf8_ucfirstUTF-8 aware alternative to ucfirst Make a string's first character uppercase
utf8_wordwrapUTF8-compatible wordwrap replacement
Global Summary
UTF8_REPLACEMENTSome Unicode characters encoded in UTF-8Preserved for compatibility

phpBB3