Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/main/lib/text/ |
Upload File : |
<?php /** * Bitrix Framework * @package bitrix * @subpackage main * @copyright 2001-2016 Bitrix */ namespace Bitrix\Main\Text; /** * @deprecated Use str* functions for binary strings and mb_* for characters. */ class BinaryString { /** * Binary version of strlen. * @param $str * @return int */ public static function getLength($str) { return strlen($str); } /** * Binary version of substr. * @param $str * @param $start * @param array $args * @return string */ public static function getSubstring($str, $start, ...$args) { return substr($str, $start, ...$args); } /** * Binary version of strpos. * @param $haystack * @param $needle * @param int $offset * @return bool|int */ public static function getPosition($haystack, $needle, $offset = 0) { 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) { 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) { 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) { return strripos($haystack, $needle, $offset); } /** * Binary version of strtolower. * @param $str * @return string */ public static function changeCaseToLower($str) { return strtolower($str); } }