uawdijnntqw1x1x1
IP : 18.116.36.23
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
yar.axolotls.ru
/
1c9cb
/
..
/
bitrix
/
modules
/
main
/
lib
/
text
/
binarystring.php
/
/
<?php /** * Bitrix Framework * @package bitrix * @subpackage main * @copyright 2001-2016 Bitrix */ namespace Bitrix\Main\Text; class BinaryString { /** * Binary version of strlen. * @param $str * @return int */ public static function getLength($str) { return function_exists('mb_strlen') ? mb_strlen($str, 'latin1') : strlen($str); } /** * Binary version of substr. * @param $str * @param $start * @return string */ public static function getSubstring($str, $start) { if(function_exists('mb_substr')) { $length = (func_num_args() > 2? func_get_arg(2) : self::getLength($str)); return mb_substr($str, $start, $length, 'latin1'); } if(func_num_args() > 2) { return substr($str, $start, func_get_arg(2)); } return substr($str, $start); } /** * Binary version of strpos. * @param $haystack * @param $needle * @param int $offset * @return bool|int */ public static function getPosition($haystack, $needle, $offset = 0) { if (defined("BX_UTF")) { if (function_exists("mb_orig_strpos")) { return mb_orig_strpos($haystack, $needle, $offset); } return mb_strpos($haystack, $needle, $offset, "latin1"); } return strpos($haystack, $needle, $offset); } /** * Binary version of strrpos. * @param $haystack * @param $needle * @param int $offset * @return bool|int */ public static function getLastPosition($haystack, $needle, $offset = 0) { if (defined("BX_UTF")) { if (function_exists("mb_orig_strrpos")) { return mb_orig_strrpos($haystack, $needle, $offset); } return mb_strrpos($haystack, $needle, $offset, "latin1"); } return strrpos($haystack, $needle, $offset); } /** * Binary version of stripos. * @param $haystack * @param $needle * @param int $offset * @return int */ public static function getPositionIgnoreCase($haystack, $needle, $offset = 0) { if (defined("BX_UTF")) { if (function_exists("mb_orig_stripos")) { return mb_orig_stripos($haystack, $needle, $offset); } return mb_stripos($haystack, $needle, $offset, "latin1"); } return stripos($haystack, $needle, $offset); } /** * Binary version of strripos. * @param $haystack * @param $needle * @param int $offset * @return int */ public static function getLastPositionIgnoreCase($haystack, $needle, $offset = 0) { if (defined("BX_UTF")) { if (function_exists("mb_orig_strripos")) { return mb_orig_strripos($haystack, $needle, $offset); } return mb_strripos($haystack, $needle, $offset, "latin1"); } return strripos($haystack, $needle, $offset); } /** * Binary version of strtolower. * @param $str * @return string */ public static function changeCaseToLower($str) { if (defined("BX_UTF")) { if (function_exists("mb_orig_strtolower")) { return mb_orig_strtolower($str); } return mb_strtolower($str, "latin1"); } return strtolower($str); } }
/var/www/axolotl/data/www/yar.axolotls.ru/1c9cb/../bitrix/modules/main/lib/text/binarystring.php