Home
last modified time | relevance | path

Searched refs:mb_strlen (Results 1 – 21 of 21) sorted by relevance

/PHP-8.0/ext/mbstring/tests/
H A Dmb_strlen_error2.phpt2 Test mb_strlen() function : error conditions - pass an unknown encoding
6 function_exists('mb_strlen') or die("skip mb_strlen() is not available in this build");
11 * Test mb_strlen when passed an unknown encoding
14 echo "*** Testing mb_strlen() : error ***\n";
21 var_dump(mb_strlen($string, $encoding));
28 *** Testing mb_strlen() : error ***
29 mb_strlen(): Argument #2 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_strlen_basic.phpt2 Test mb_strlen() function : basic functionality
6 function_exists('mb_strlen') or die("skip mb_strlen() is not available in this build");
11 * Test basic functionality of mb_strlen()
14 echo "*** Testing mb_strlen() : basic functionality***\n";
21 var_dump(mb_strlen($string_ascii));
24 var_dump(mb_strlen($string_mb, 'UTF-8'));
29 *** Testing mb_strlen() : basic functionality***
H A Dmb_strlen.phpt2 mb_strlen()
21 print mb_strlen($ascii,'ASCII') . "\n";
26 print mb_strlen($euc_jp,'EUC-JP') . "\n";
33 print mb_strlen($sjis,'SJIS') . "\n";
41 print mb_strlen($jis,'JIS') . "\n";
49 print mb_strlen($utf8,'UTF-8') . "\n";
59 var_dump( mb_strlen($euc_jp, 'BAD_NAME') );
82 mb_strlen(): Argument #2 ($encoding) must be a valid encoding, "BAD_NAME" given
H A Dinternal_encoding.phpt11 var_dump(mb_strlen("\xc3\xb6"));
16 var_dump(mb_strlen("\xc3\xb6"));
22 var_dump(mb_strlen("\xc3\xb6"));
28 var_dump(mb_strlen("\xc3\xb6"));
33 var_dump(mb_strlen("\xc3\xb6"));
39 var_dump(mb_strlen("\xc3\xb6"));
45 var_dump(mb_strlen("\xc3\xb6"));
H A Dbug54494.phpt20 $length = mb_strlen($string, $mode);
36 $length = mb_strlen($string, $mode);
H A Dmb_strlen_variation3.phpt2 Test mb_strlen() function : usage variations - Pass list of encodings
6 function_exists('mb_strlen') or die("skip mb_strlen() is not available in this build");
11 * Pass all encodings listed on php.net to mb_strlen to test that function recognises them
16 echo "*** Testing mb_strlen() : usage variations ***\n";
85 if(mb_strlen($string_ascii, $enc)) {
92 if(mb_strlen($string_mb, $enc)){
103 *** Testing mb_strlen() : usage variations ***
H A Dmb_str_unknown_encoding.phpt72 mb_strlen('coudenys', 'UTF-0');
155 mb_strlen(): Argument #2 ($encoding) must be a valid encoding, "UTF-0" given
H A Dmb_stripos_invalid_offset.phpt15 $slen = mb_strlen($string);
H A Dmb_strpos_invalid_offset.phpt15 $slen = mb_strlen($string);
H A Dmb_substr_variation4.phpt37 if (strlen($a) == mb_strlen($b, 'UTF-8')) { // should return same length
H A Dmb_substr_variation5.phpt38 if (strlen($a) == mb_strlen($b, 'UTF-8')) { // should return same length
H A Dmb_substr_variation6.phpt42 if (strlen($a) == mb_strlen($b, 'UTF-8')) { // should return same length
H A Dmb_substr_variation7.phpt43 if (strlen($a) == mb_strlen($b, 'UTF-8')) { // should return same length
H A Dmb_strpos.phpt16 $slen = mb_strlen($euc_jp, 'EUC-JP');
H A Dmb_stripos.phpt16 $slen = mb_strlen($euc_jp, 'EUC-JP');
/PHP-8.0/ext/pdo_oci/tests/
H A Dbug60994.phpt40 echo 'size of string1 is ', strlen($string1), ' bytes, ', mb_strlen($string1), ' chars.', PHP_EOL;
41 echo 'size of stream1 is ', strlen($stream1), ' bytes, ', mb_strlen($stream1), ' chars.', PHP_EOL;
57 echo 'size of string2 is ', strlen($string2), ' bytes, ', mb_strlen($string2), ' chars.', PHP_EOL;
58 echo 'size of stream2 is ', strlen($stream2), ' bytes, ', mb_strlen($stream2), ' chars.', PHP_EOL;
74 echo 'size of string3 is ', strlen($string3), ' bytes, ', mb_strlen($string3), ' chars.', PHP_EOL;
75 echo 'size of stream3 is ', strlen($stream3), ' bytes, ', mb_strlen($stream3), ' chars.', PHP_EOL;
91 echo 'size of string4 is ', strlen($string4), ' bytes, ', mb_strlen($string4), ' chars.', PHP_EOL;
92 echo 'size of stream4 is ', strlen($stream4), ' bytes, ', mb_strlen($stream4), ' chars.', PHP_EOL;
/PHP-8.0/ext/oci8/tests/
H A Dbug70700.phpt60 echo 'size of string1 is ', strlen($string1), ' bytes, ', mb_strlen($string1), ' chars.', PHP_EOL;
61 echo 'size of stream1a is ', strlen($stream1a), ' bytes, ', mb_strlen($stream1a), ' chars.', PHP_EO…
91 echo 'size of string2 is ', strlen($string2), ' bytes, ', mb_strlen($string2), ' chars.', PHP_EOL;
92 echo 'size of stream2a is ', strlen($stream2a), ' bytes, ', mb_strlen($stream2a), ' chars.', PHP_EO…
122 echo 'size of string3 is ', strlen($string3), ' bytes, ', mb_strlen($string3), ' chars.', PHP_EOL;
123 echo 'size of stream3a is ', strlen($stream3a), ' bytes, ', mb_strlen($stream3a), ' chars.', PHP_EO…
153 echo 'size of string4 is ', strlen($string4), ' bytes, ', mb_strlen($string4), ' chars.', PHP_EOL;
154 echo 'size of stream4a is ', strlen($stream4a), ' bytes, ', mb_strlen($stream4a), ' chars.', PHP_EO…
/PHP-8.0/ext/odbc/tests/
H A Dbug60616.phpt43 $euc_jp_check = $euc_jp . str_repeat(" ", (200 - mb_strlen($euc_jp)));
/PHP-8.0/ext/mbstring/
H A Dmbstring_arginfo.h316 ZEND_FUNCTION(mb_strlen);
410 ZEND_FE(mb_strlen, arginfo_mb_strlen)
H A Dmbstring.stub.php26 function mb_strlen(string $string, ?string $encoding = null): int {} function
H A Dmbstring.c1822 PHP_FUNCTION(mb_strlen) in PHP_FUNCTION() argument

Completed in 44 milliseconds