27 lines
637 B
PHP
27 lines
637 B
PHP
<?php
|
|
namespace Opencart\System\Helper\Utf8;
|
|
mb_internal_encoding('UTF-8');
|
|
|
|
function strlen(string $string) {
|
|
return mb_strlen($string);
|
|
}
|
|
|
|
function strpos(string $string, string $needle, int $offset = 0) {
|
|
return mb_strpos($string, $needle, $offset);
|
|
}
|
|
|
|
function strrpos(string $string, string $needle, int $offset = 0) {
|
|
return mb_strrpos($string, $needle, $offset);
|
|
}
|
|
|
|
function substr(string $string, int $offset, ?int $length = null) {
|
|
return mb_substr($string, $offset, $length);
|
|
}
|
|
|
|
function strtoupper(string $string) {
|
|
return mb_strtoupper($string);
|
|
}
|
|
|
|
function strtolower(string $string) {
|
|
return mb_strtolower($string);
|
|
} |