X7ROOT File Manager
Current Path:
/home/notabjze/just4dastreets.com/libraries/vendor/joomla/string/src/phputf8
home
/
notabjze
/
just4dastreets.com
/
libraries
/
vendor
/
joomla
/
string
/
src
/
phputf8
/
ðŸ“
..
📄
LICENSE
(25.81 KB)
📄
README
(3.21 KB)
ðŸ“
mbstring
ðŸ“
native
📄
ord.php
(2.57 KB)
📄
str_ireplace.php
(1.89 KB)
📄
str_pad.php
(1.62 KB)
📄
str_split.php
(764 B)
📄
strcasecmp.php
(486 B)
📄
strcspn.php
(834 B)
📄
stristr.php
(795 B)
📄
strrev.php
(398 B)
📄
strspn.php
(863 B)
📄
substr_replace.php
(562 B)
📄
trim.php
(2.08 KB)
📄
ucfirst.php
(727 B)
📄
ucwords.php
(1.36 KB)
📄
utf8.php
(2.68 KB)
ðŸ“
utils
Editing: trim.php
<?php /** * @package utf8 */ //--------------------------------------------------------------- /** * UTF-8 aware replacement for ltrim() * Note: you only need to use this if you are supplying the charlist * optional arg and it contains UTF-8 characters. Otherwise ltrim will * work normally on a UTF-8 string * @author Andreas Gohr <andi@splitbrain.org> * @see http://www.php.net/ltrim * @see http://dev.splitbrain.org/view/darcs/dokuwiki/inc/utf8.php * @return string * @package utf8 */ function utf8_ltrim( $str, $charlist = FALSE ) { if($charlist === FALSE) return ltrim($str); //quote charlist for use in a characterclass $charlist = preg_replace('!([\\\\\\-\\]\\[/^])!','\\\${1}',$charlist); return preg_replace('/^['.$charlist.']+/u','',$str); } //--------------------------------------------------------------- /** * UTF-8 aware replacement for rtrim() * Note: you only need to use this if you are supplying the charlist * optional arg and it contains UTF-8 characters. Otherwise rtrim will * work normally on a UTF-8 string * @author Andreas Gohr <andi@splitbrain.org> * @see http://www.php.net/rtrim * @see http://dev.splitbrain.org/view/darcs/dokuwiki/inc/utf8.php * @return string * @package utf8 */ function utf8_rtrim( $str, $charlist = FALSE ) { if($charlist === FALSE) return rtrim($str); //quote charlist for use in a characterclass $charlist = preg_replace('!([\\\\\\-\\]\\[/^])!','\\\${1}',$charlist); return preg_replace('/['.$charlist.']+$/u','',$str); } //--------------------------------------------------------------- /** * UTF-8 aware replacement for trim() * Note: you only need to use this if you are supplying the charlist * optional arg and it contains UTF-8 characters. Otherwise trim will * work normally on a UTF-8 string * @author Andreas Gohr <andi@splitbrain.org> * @see http://www.php.net/trim * @see http://dev.splitbrain.org/view/darcs/dokuwiki/inc/utf8.php * @return string * @package utf8 */ function utf8_trim( $str, $charlist = FALSE ) { if($charlist === FALSE) return trim($str); return utf8_ltrim(utf8_rtrim($str, $charlist), $charlist); }
Upload File
Create Folder