| [ Index ] |
PHP Cross Reference of MantisBT |
[Source view] [Print] [Project Stats]
(no description)
| Version: | $Id: bad.php,v 1.2 2006/02/26 13:20:44 harryf Exp $ |
| File Size: | 421 lines (15 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| utf8_bad_find($str) X-Ref |
| Locates the first bad byte in a UTF-8 string returning it's byte index in the string PCRE Pattern to locate bad bytes in a UTF-8 string Comes from W3 FAQ: Multilingual Forms Note: modified to include full ASCII range including control chars param: string return: mixed integer byte index or FALSE if no bad found |
| utf8_bad_findall($str) X-Ref |
| Locates all bad bytes in a UTF-8 string and returns a list of their byte index in the string PCRE Pattern to locate bad bytes in a UTF-8 string Comes from W3 FAQ: Multilingual Forms Note: modified to include full ASCII range including control chars param: string return: mixed array of integers or FALSE if no bad found |
| utf8_bad_strip($str) X-Ref |
| Strips out any bad bytes from a UTF-8 string and returns the rest PCRE Pattern to locate bad bytes in a UTF-8 string Comes from W3 FAQ: Multilingual Forms Note: modified to include full ASCII range including control chars param: string return: string |
| utf8_bad_replace($str, $replace = '?') X-Ref |
| Replace bad bytes with an alternative character - ASCII character recommended is replacement char PCRE Pattern to locate bad bytes in a UTF-8 string Comes from W3 FAQ: Multilingual Forms Note: modified to include full ASCII range including control chars param: string to search param: string to replace bad bytes with (defaults to '?') - use ASCII return: string |
| utf8_bad_identify($str, &$i) X-Ref |
| Reports on the type of bad byte found in a UTF-8 string. Returns a status code on the first bad byte found author: <hsivonen@iki.fi> param: string UTF-8 encoded string return: mixed integer constant describing problem or FALSE if valid UTF-8 |
| utf8_bad_explain($code) X-Ref |
| Takes a return code from utf8_bad_identify() are returns a message (in English) explaining what the problem is. param: int return code from utf8_bad_identify return: mixed string message or FALSE if return code unknown |
| Generated: Thu Jul 28 15:48:31 2011 | Cross-referenced by PHPXref 0.7 |