| [ Index ] |
PHP Cross Reference of Limb3 |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 718 lines (30 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
lmbUTF8BaseDriver:: (28 methods):
UTF8EncodeFN()
UTF8DecodeFN()
isASCII()
UTF8Strip()
UTF8Check()
UTF8Deaccent()
UTF8StripSpecials()
_strlen()
_substr()
_str_replace()
_ltrim()
_rtrim()
_trim()
_strtolower()
_strtoupper()
_strpos()
_strrpos()
_ucfirst()
_strcasecmp()
_substr_count()
_str_split()
_preg_match()
_preg_match_all()
_preg_replace()
_preg_replace_callback()
_preg_split()
toUnicode()
toUTF8()
Class: lmbUTF8BaseDriver - X-Ref
class lmbUTF8BaseDriver.| UTF8EncodeFN($file, $safe = true) X-Ref |
| URL-Encode a filename to allow unicodecharacters Slashes are not encoded When the second parameter is true the string will be encoded only if non ASCII characters are detected - This makes it safe to run it multiple times on the same string (default is true) author: Andreas Gohr <andi@splitbrain.org> |
| UTF8DecodeFN($file) X-Ref |
| URL-Decode a filename This is just a wrapper around urldecode author: Andreas Gohr <andi@splitbrain.org> |
| isASCII($str) X-Ref |
| Checks if a string contains 7bit ASCII only author: Andreas Gohr <andi@splitbrain.org> |
| UTF8Strip($str) X-Ref |
| Strips all highbyte chars Returns a pure ASCII7 string author: Andreas Gohr <andi@splitbrain.org> |
| UTF8Check($str) X-Ref |
| Tries to detect if a string is in utf8 encoding author: <bmorel@ssi.fr> |
| UTF8Deaccent($string, $case = 0) X-Ref |
| Replace accented UTF-8 characters by unaccented ASCII-7 equivalents Use the optional parameter to just deaccent lower ($case = -1) or upper ($case = 1) letters. Default is to deaccent both cases ($case = 0) author: Andreas Gohr <andi@splitbrain.org> |
| UTF8StripSpecials($string, $repl = '', $keep = '') X-Ref |
| Removes special characters (nonalphanumeric) from a UTF-8 string Be sure to specify all specialchars you give in $repl in $keep, too or it won't work. This function adds the controlchars 0x00 to 0x19 to the array of stripped chars (they are not included in $UTF8_SPECIAL_CHARS) author: Andreas Gohr <andi@splitbrain.org> param: string $string The UTF8 string to strip of special chars param: string $repl Replace special with this string param: string $keep Special chars to keep (in UTF8) |
| _strlen($string) X-Ref |
| UTF8 aware replacement for strlen() utf8_decode() converts characters that are not in ISO-8859-1 to '?', which, for the purpose of counting, is alright - It's even faster than mb_strlen. author: <chernyshevsky at hotmail dot com> |
| _substr($str, $start, $length=null) X-Ref |
| UTF8 aware replacement for substr() author: Harry Fuecks <hfuecks@gmail.com> |
| _str_replace($s, $r, $str) X-Ref |
| UTF8 aware replacement for strrepalce() author: Harry Fuecks <hfuecks@gmail.com> |
| _ltrim($str, $charlist = '') X-Ref |
| UTF8 aware replacement for ltrim() author: Andreas Gohr <andi@splitbrain.org> return: string |
| _rtrim($str, $charlist = '') X-Ref |
| UTF8 aware replacement for ltrim() author: Andreas Gohr <andi@splitbrain.org> return: string |
| _trim($str, $charlist = '') X-Ref |
| UTF8 aware replacement for trim() author: Andreas Gohr <andi@splitbrain.org> return: string |
| _strtolower($string) X-Ref |
| This is a unicode aware replacement for strtolower() author: Andreas Gohr <andi@splitbrain.org> |
| _strtoupper($string) X-Ref |
| This is a unicode aware replacement for strtoupper() author: Andreas Gohr <andi@splitbrain.org> |
| _strpos($haystack, $needle, $offset=false) X-Ref |
| This is an UTF8 aware replacement for strpos author: Harry Fuecks <hfuecks@gmail.com> |
| _strrpos($str, $needle, $offset=false) X-Ref |
| This is an UTF-8 aware alternative to strrpos Find position of last occurrence of a char in a string Note: This will get alot slower if offset is used author: Harry Fuecks <hfuecks@gmail.com> |
| _ucfirst($str) X-Ref |
| No description |
| _strcasecmp($strX, $strY) X-Ref |
| No description |
| _substr_count($haystack, $needle) X-Ref |
| UTF-8 aware alternative to substr_count |
| _str_split($str, $split_len=1) X-Ref |
| UTF-8 aware alternative to str_split Convert a string to an array author: Harry Fuecks <hfuecks@gmail.com> |
| _preg_match($pattern, $subject, &$matches, $flags=null, $offset=null) X-Ref |
| No description |
| _preg_match_all($pattern, $subject, &$matches, $flags=null, $offset=null) X-Ref |
| No description |
| _preg_replace($pattern, $replacement, $subject, $limit=null) X-Ref |
| No description |
| _preg_replace_callback($pattern, $callback, $subject, $limit=null) X-Ref |
| No description |
| _preg_split($pattern, $subject, $limit=null, $flags=null) X-Ref |
| No description |
| toUnicode($str) X-Ref |
| This function returns any UTF-8 encoded text as a list of Unicode values: author: Scott Michael Reynen <scott@randomchaos.com> |
| toUTF8($arr) X-Ref |
| This function converts a Unicode array back to its UTF-8 representation author: Scott Michael Reynen <scott@randomchaos.com> |
| Generated: Fri Aug 29 04:49:26 2008 | Cross-referenced by PHPXref 0.7 |