| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Source view] [Print] [Project Stats]
(no description)
| Version: | $Id: bad.php 10381 2008-06-01 03:35:53Z pasamio $ |
| File Size: | 421 lines (14 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: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |