Home
last modified time | relevance | path

Searched refs:mb_substr (Results 1 – 16 of 16) sorted by relevance

/PHP-8.1/ext/mbstring/tests/
H A Dmb_substr.phpt2 mb_substr()
33 $str = mb_substr($euc_jp, 100, 10,'EUC-JP');
37 $str = mb_substr($euc_jp, -100, 10, 'EUC-JP');
87 print "1: " . mb_substr($hz, 0, 3, 'HZ') . "\n";
88 print "2: " . mb_substr($hz, -1, null, 'HZ') . "\n";
89 print "3: " . mb_substr($hz, -5, 3, 'HZ') . "\n";
90 print "4: " . mb_substr($hz, 1, null, 'HZ') . "\n";
91 print "5:" . mb_substr($hz, 10, 0, 'HZ') . "\n";
94 print "1: " . mb_substr($utf8, 0, 3, 'UTF-8') . "\n";
96 print "3: " . mb_substr($utf8, -5, 3, 'UTF-8') . "\n";
[all …]
H A Dmb_substr_basic.phpt2 Test mb_substr() function : basic functionality
10 * Test Basic Functionality of mb_substr with ASCII characters and multibyte strings.
13 echo "*** Testing mb_substr() : basic functionality ***\n";
20 var_dump(mb_substr($string_ascii, 3));
23 var_dump(mb_substr($string_ascii, 3, 5, 'ISO-8859-1'));
26 $result_1 = mb_substr($string_mb, 2, 7);
30 $result_2 = mb_substr($string_mb, 2, 7, 'utf-8');
36 *** Testing mb_substr() : basic functionality ***
H A Dmb_substr_error2.phpt2 Test mb_substr() function : error conditions - Pass an unknown encoding
8 * Pass an unknown encoding to mb_substr() to test behaviour
11 echo "*** Testing mb_substr() : error conditions ***\n";
19 var_dump( mb_substr($str, $start, $length, $encoding));
26 *** Testing mb_substr() : error conditions ***
27 mb_substr(): Argument #4 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dbug66797.phpt2 Bug #66797 (mb_substr only takes 32-bit signed integer)
12 mb_substr('bar', 0, 0x7fffffff),
13 mb_substr('bar', 0, 0x80000000),
14 mb_substr('bar', 0xffffffff, 1),
15 mb_substr('bar', 0x100000000, 1)
H A Dmb_substr_variation4.phpt2 Test mb_substr() function : usage variations - pass different integers to $start arg
8 * Test how mb_substr() behaves when passed a range of integers as $start argument
11 echo "*** Testing mb_substr() : usage variations ***\n";
30 $a = mb_substr($string_ascii, $i, 4);
33 $b = mb_substr($string_mb, $i, 4, 'UTF-8');
45 *** Testing mb_substr() : usage variations ***
H A Dmb_substr_variation5.phpt2 Test mb_substr() function : usage variations - pass different integers to $length arg
8 * Test how mb_substr() behaves when passed a range of integers as $length argument
11 echo "*** Testing mb_substr() : usage variations ***\n";
31 $a = mb_substr($string_ascii, 1, $i);
34 $b = mb_substr($string_mb, 1, $i, 'UTF-8');
46 *** Testing mb_substr() : usage variations ***
H A Dmb_substr_variation6.phpt2 Test mb_substr() function : usage variations - pass different integers to $start arg
8 * Test how mb_substr() behaves when passed a range of integers as $start argument
11 echo "*** Testing mb_substr() : usage variations ***\n";
30 $a = mb_substr($string_ascii, $i, 4);
38 $b = mb_substr($string_mb, $i, 4, 'UTF-8');
50 *** Testing mb_substr() : usage variations ***
H A Dmb_substr_variation7.phpt2 Test mb_substr() function : usage variations - pass different integers to $length arg
8 * Test how mb_substr() behaves when passed a range of integers as $length argument
11 echo "*** Testing mb_substr() : usage variations ***\n";
31 $a = mb_substr($string_ascii, 1, $i);
39 $b = mb_substr($string_mb, 1, $i, 'UTF-8');
51 *** Testing mb_substr() : usage variations ***
H A Dbug54494.phpt2 Bug #54494: mb_substr() mishandles UTF-32LE and UCS-2LE
25 $t = unpack("H*",mb_substr($string, $i, 1, $mode));
41 $t = unpack("H*",mb_substr($string, $i, 1, $mode));
H A Dmb_str_unknown_encoding.phpt132 mb_substr('coudenys', 0, null, 'UTF-0');
165 mb_substr(): Argument #4 ($encoding) must be a valid encoding, "UTF-0" given
H A Dmb_str_functions_opt-parameter.phpt15 echo mb_substr('foobarbaz', 6, null, 'UTF-8') . "\n";
/PHP-8.1/ext/oci8/tests/
H A Dbug70700.phpt60 $start1a = mb_substr($stream1a, 0, 10);
61 $ending1a = mb_substr($stream1a, -10);
91 $start2a = mb_substr($stream2a, 0, 10);
92 $ending2a = mb_substr($stream2a, -10);
122 $start3a = mb_substr($stream3a, 0, 10);
123 $ending3a = mb_substr($stream3a, -10);
153 $start4a = mb_substr($stream4a, 0, 10);
154 $ending4a = mb_substr($stream4a, -10);
/PHP-8.1/ext/pdo_oci/tests/
H A Dbug60994.phpt42 $start1 = mb_substr($stream1, 0, 10);
43 $ending1 = mb_substr($stream1, -10);
62 $start2 = mb_substr($stream2, 0, 10);
63 $ending2 = mb_substr($stream2, -10);
82 $start3 = mb_substr($stream3, 0, 10);
83 $ending3 = mb_substr($stream3, -10);
102 $start4 = mb_substr($stream4, 0, 10);
103 $ending4 = mb_substr($stream4, -10);
/PHP-8.1/ext/mbstring/
H A Dmbstring_arginfo.h326 ZEND_FUNCTION(mb_substr);
420 ZEND_FE(mb_substr, arginfo_mb_substr)
H A Dmbstring.stub.php65 function mb_substr(string $string, int $start, ?int $length = null, ?string $encoding = null): stri… function
H A Dmbstring.c2123 PHP_FUNCTION(mb_substr) in PHP_FUNCTION() argument

Completed in 29 milliseconds