File manager - Edit - /home/newsbmcs.com/public_html/static/img/logo/ThirdParty.tar
Back
Polyfill/LICENSE 0000644 00000002053 15030514416 0007342 0 ustar 00 Copyright (c) 2015-present Fabien Potencier Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Polyfill/Utf8.php 0000644 00000003764 15030514416 0007706 0 ustar 00 <?php /** * This file contains paired-down/modified code originally found in Symfony * package file Php72.php, used here as a PHP standard replacement for now * deprecated PHP functions utf8_encode() and utf8_decode(). * * Modified by: Michael Alegre (LiteSpeed Technologies, Inc.), 2023 * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Lsc\Wp\ThirdParty\Polyfill; /** * @since 1.16.1 */ class Utf8 { /** * * @since 1.16.1 * * @param $s * * @return false|string */ public static function encode($s) { $s .= $s; $len = strlen($s); for ($i = $len >> 1, $j = 0; $i < $len; ++$i, ++$j) { if ( $s[$i] < "\x80" ) { $s[$j] = $s[$i]; } elseif ( $s[$i] < "\xC0" ) { $s[$j] = "\xC2"; $s[++$j] = $s[$i]; } else { $s[$j] = "\xC3"; $s[++$j] = chr(ord($s[$i]) - 64); } } return substr($s, 0, $j); } /** * * @since 1.16.1 * * @param $s * * @return false|string */ public static function decode($s) { $s = (string) $s; $len = strlen($s); for ($i = 0, $j = 0; $i < $len; ++$i, ++$j) { switch ($s[$i] & "\xF0") { case "\xC0": case "\xD0": $c = (ord($s[$i] & "\x1F") << 6) | ord($s[++$i] & "\x3F"); $s[$j] = $c < 256 ? chr($c) : '?'; break; case "\xF0": ++$i; // fallthrough case "\xE0": $s[$j] = '?'; $i += 2; break; default: $s[$j] = $s[$i]; } } return substr($s, 0, $j); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings