1: | <?php
2: | namespace Opencart\System\Helper\Utf8;
3: | mb_internal_encoding('UTF-8');
4: |
5: | function strlen(string $string): int {
6: | return mb_strlen($string);
7: | }
8: |
9: | /**
10: | * @param string $string
11: | * @param string $needle
12: | * @param int $offset
13: | *
14: | * @return false|int
15: | */
16: | function strpos(string $string, string $needle, int $offset = 0) {
17: | return mb_strpos($string, $needle, $offset);
18: | }
19: |
20: | /**
21: | * @param string $string
22: | * @param string $needle
23: | * @param int $offset
24: | *
25: | * @return false|int
26: | */
27: | function strrpos(string $string, string $needle, int $offset = 0) {
28: | return mb_strrpos($string, $needle, $offset);
29: | }
30: |
31: | function substr(string $string, int $offset, ?int $length = null): string {
32: | return mb_substr($string, $offset, $length);
33: | }
34: |
35: | function strtoupper(string $string): string {
36: | return mb_strtoupper($string);
37: | }
38: |
39: | function strtolower(string $string): string {
40: | return mb_strtolower($string);
41: | }
42: |

OpenCart API API documentation generated by ApiGen dev-master