Home
last modified time | relevance | path

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

/PHP-8.0/ext/mbstring/tests/
H A Dmb_substr_basic.phpt2 Test mb_substr() function : basic functionality
6 function_exists('mb_substr') or die("skip mb_substr() is not available in this build");
13 * Test Basic Functionality of mb_substr with ASCII characters and multibyte strings.
16 echo "*** Testing mb_substr() : basic functionality ***\n";
23 var_dump(mb_substr($string_ascii, 3));
26 var_dump(mb_substr($string_ascii, 3, 5, 'ISO-8859-1'));
29 $result_1 = mb_substr($string_mb, 2, 7);
33 $result_2 = mb_substr($string_mb, 2, 7, 'utf-8');
39 *** Testing mb_substr() : basic functionality ***
H A Dmb_substr_error2.phpt2 Test mb_substr() function : error conditions - Pass an unknown encoding
6 function_exists('mb_substr') or die("skip mb_substr() is not available in this build");
11 * Pass an unknown encoding to mb_substr() to test behaviour
14 echo "*** Testing mb_substr() : error conditions ***\n";
22 var_dump( mb_substr($str, $start, $length, $encoding));
29 *** Testing mb_substr() : error conditions ***
30 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)
11 mb_substr('bar', 0, 0x7fffffff),
12 mb_substr('bar', 0, 0x80000000),
13 mb_substr('bar', 0xffffffff, 1),
14 mb_substr('bar', 0x100000000, 1)
H A Dmb_substr.phpt2 mb_substr()
16 print "1: ". bin2hex(mb_substr($euc_jp, 10, 10,'EUC-JP')) . "\n";
17 print "2: ". bin2hex(mb_substr($euc_jp, 0, 100,'EUC-JP')) . "\n";
19 $str = mb_substr($euc_jp, 100, 10,'EUC-JP');
23 $str = mb_substr($euc_jp, -100, 10,'EUC-JP');
H A Dmb_substr_variation4.phpt2 Test mb_substr() function : usage variations - pass different integers to $start arg
6 function_exists('mb_substr') or die("skip mb_substr() is not available in this build");
11 * Test how mb_substr() behaves when passed a range of integers as $start argument
14 echo "*** Testing mb_substr() : usage variations ***\n";
33 $a = mb_substr($string_ascii, $i, 4);
36 $b = mb_substr($string_mb, $i, 4, 'UTF-8');
48 *** Testing mb_substr() : usage variations ***
H A Dmb_substr_variation5.phpt2 Test mb_substr() function : usage variations - pass different integers to $length arg
6 function_exists('mb_substr') or die("skip mb_substr() is not available in this build");
11 * Test how mb_substr() behaves when passed a range of integers as $length argument
14 echo "*** Testing mb_substr() : usage variations ***\n";
34 $a = mb_substr($string_ascii, 1, $i);
37 $b = mb_substr($string_mb, 1, $i, 'UTF-8');
49 *** Testing mb_substr() : usage variations ***
H A Dmb_substr_variation6.phpt2 Test mb_substr() function : usage variations - pass different integers to $start arg
6 function_exists('mb_substr') or die("skip mb_substr() is not available in this build");
11 * Test how mb_substr() behaves when passed a range of integers as $start argument
14 echo "*** Testing mb_substr() : usage variations ***\n";
33 $a = mb_substr($string_ascii, $i, 4);
41 $b = mb_substr($string_mb, $i, 4, 'UTF-8');
53 *** Testing mb_substr() : usage variations ***
H A Dmb_substr_variation7.phpt2 Test mb_substr() function : usage variations - pass different integers to $length arg
6 function_exists('mb_substr') or die("skip mb_substr() is not available in this build");
11 * Test how mb_substr() behaves when passed a range of integers as $length argument
14 echo "*** Testing mb_substr() : usage variations ***\n";
34 $a = mb_substr($string_ascii, 1, $i);
42 $b = mb_substr($string_mb, 1, $i, 'UTF-8');
54 *** 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_functions_opt-parameter.phpt15 echo mb_substr('foobarbaz', 6, null, 'UTF-8') . "\n";
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
/PHP-8.0/ext/pdo_oci/tests/
H A Dbug60994.phpt38 $start1 = mb_substr($stream1, 0, 10);
39 $ending1 = mb_substr($stream1, -10);
55 $start2 = mb_substr($stream2, 0, 10);
56 $ending2 = mb_substr($stream2, -10);
72 $start3 = mb_substr($stream3, 0, 10);
73 $ending3 = mb_substr($stream3, -10);
89 $start4 = mb_substr($stream4, 0, 10);
90 $ending4 = mb_substr($stream4, -10);
/PHP-8.0/ext/oci8/tests/
H A Dbug70700.phpt58 $start1a = mb_substr($stream1a, 0, 10);
59 $ending1a = mb_substr($stream1a, -10);
89 $start2a = mb_substr($stream2a, 0, 10);
90 $ending2a = mb_substr($stream2a, -10);
120 $start3a = mb_substr($stream3a, 0, 10);
121 $ending3a = mb_substr($stream3a, -10);
151 $start4a = mb_substr($stream4a, 0, 10);
152 $ending4a = mb_substr($stream4a, -10);
/PHP-8.0/ext/mbstring/
H A Dmbstring_arginfo.h326 ZEND_FUNCTION(mb_substr);
420 ZEND_FE(mb_substr, arginfo_mb_substr)
H A Dmbstring.stub.php46 function mb_substr(string $string, int $start, ?int $length = null, ?string $encoding = null): stri… function
H A Dmbstring.c2132 PHP_FUNCTION(mb_substr) in PHP_FUNCTION() argument
/PHP-8.0/
H A DUPGRADING628 . substr(), mb_substr(), iconv_substr() and grapheme_substr() now consistently

Completed in 30 milliseconds