Home
last modified time | relevance | path

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

/PHP-7.2/ext/mbstring/tests/
H A Dmb_strlen_error1.phpt2 Test mb_strlen() function : error conditions - pass incorrect number of args
6 function_exists('mb_strlen') or die("skip mb_strlen() is not available in this build");
10 /* Prototype : int mb_strlen(string $str [, string $encoding])
16 * Pass mb_strlen an incorrect number of arguments to test behaviour
19 echo "*** Testing mb_strlen() : error conditions ***\n";
22 echo "\n-- Testing mb_strlen() function with Zero arguments --\n";
23 var_dump( mb_strlen() );
25 //Test mb_strlen with one more than the expected number of arguments
30 var_dump( mb_strlen($str, $encoding, $extra_arg) );
35 *** Testing mb_strlen() : error conditions ***
[all …]
H A Dmb_strlen_variation2.phpt6 function_exists('mb_strlen') or die("skip mb_strlen() is not available in this build");
10 /* Prototype : int mb_strlen(string $str [, string $encoding])
20 echo "*** Testing mb_strlen() : usage variations ***\n";
97 var_dump( mb_strlen($str, $input));
106 *** Testing mb_strlen() : usage variations ***
110 Warning: mb_strlen(): Unknown encoding "0" in %s on line %d
115 Warning: mb_strlen(): Unknown encoding "1" in %s on line %d
155 Warning: mb_strlen(): Unknown encoding "" in %s on line %d
160 Warning: mb_strlen(): Unknown encoding "" in %s on line %d
170 Warning: mb_strlen(): Unknown encoding "" in %s on line %d
[all …]
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");
10 /* Prototype : int mb_strlen(string $str [, string $encoding])
16 * Test mb_strlen when passed an unknown encoding
19 echo "*** Testing mb_strlen() : error ***\n";
25 var_dump(mb_strlen($string, $encoding));
30 *** Testing mb_strlen() : error ***
32 Warning: mb_strlen(): Unknown encoding "unknown-encoding" in %s on line %d
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");
10 /* Prototype : int mb_strlen(string $str [, string $encoding])
16 * Test basic functionality of mb_strlen()
19 echo "*** Testing mb_strlen() : basic functionality***\n";
26 var_dump(mb_strlen($string_ascii));
29 var_dump(mb_strlen($string_mb, 'UTF-8'));
34 *** Testing mb_strlen() : basic functionality***
H A Dmb_strlen_variation1.phpt2 Test mb_strlen() function : usage variations - Pass different data types as $str arg
6 function_exists('mb_strlen') or die("skip mb_strlen() is not available in this build");
10 /* Prototype : int mb_strlen(string $str [, string $encoding])
16 * Test mb_strlen by passing different data types as $str argument
19 echo "*** Testing mb_strlen() : usage variations ***\n";
92 // loop through each element of $inputs to check the behavior of mb_strlen()
96 var_dump( mb_strlen($input, $encoding));
105 *** Testing mb_strlen() : usage variations ***
178 Warning: mb_strlen() expects parameter 1 to be string, resource given in %s on line %d
H A Dmb_strlen.phpt2 mb_strlen()
24 print mb_strlen($ascii,'ASCII') . "\n";
29 print mb_strlen($euc_jp,'EUC-JP') . "\n";
36 print mb_strlen($sjis,'SJIS') . "\n";
44 print mb_strlen($jis,'JIS') . "\n";
52 print mb_strlen($utf8,'UTF-8') . "\n";
69 $r = mb_strlen($euc_jp, 'BAD_NAME');
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");
10 /* Prototype : int mb_strlen(string $str [, string $encoding])
16 * Pass all encodings listed on php.net to mb_strlen to test that function recognises them
21 echo "*** Testing mb_strlen() : usage variations ***\n";
90 if(mb_strlen($string_ascii, $enc)) {
97 if(mb_strlen($string_mb, $enc)){
108 *** Testing mb_strlen() : usage variations ***
H A Dmb_get_info.phpt42 string(9) "mb_strlen"
106 string(9) "mb_strlen"
132 string(9) "mb_strlen"
H A Dbug52931.phpt14 var_dump(mb_strlen($string));
H A Doverload01.phpt21 var_dump(mb_strlen($str));
H A Dmb_substr_variation4.phpt42 if (strlen($a) == mb_strlen($b, 'UTF-8')) { // should return same length
H A Dmb_substr_variation5.phpt43 if (strlen($a) == mb_strlen($b, 'UTF-8')) { // should return same length
H A Dmb_substr_variation6.phpt47 if (strlen($a) == mb_strlen($b, 'UTF-8')) { // should return same length
H A Dmb_substr_variation7.phpt48 if (strlen($a) == mb_strlen($b, 'UTF-8')) { // should return same length
H A Dmb_stripos.phpt17 $slen = mb_strlen($euc_jp, 'EUC-JP');
H A Dmb_strpos.phpt17 $slen = mb_strlen($euc_jp, 'EUC-JP');
/PHP-7.2/ext/pdo_oci/tests/
H A Dbug60994.phpt41 echo 'size of string1 is ', strlen($string1), ' bytes, ', mb_strlen($string1), ' chars.', PHP_EOL;
42 echo 'size of stream1 is ', strlen($stream1), ' bytes, ', mb_strlen($stream1), ' chars.', PHP_EOL;
58 echo 'size of string2 is ', strlen($string2), ' bytes, ', mb_strlen($string2), ' chars.', PHP_EOL;
59 echo 'size of stream2 is ', strlen($stream2), ' bytes, ', mb_strlen($stream2), ' chars.', PHP_EOL;
75 echo 'size of string3 is ', strlen($string3), ' bytes, ', mb_strlen($string3), ' chars.', PHP_EOL;
76 echo 'size of stream3 is ', strlen($stream3), ' bytes, ', mb_strlen($stream3), ' chars.', PHP_EOL;
92 echo 'size of string4 is ', strlen($string4), ' bytes, ', mb_strlen($string4), ' chars.', PHP_EOL;
93 echo 'size of stream4 is ', strlen($stream4), ' bytes, ', mb_strlen($stream4), ' chars.', PHP_EOL;
/PHP-7.2/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-7.2/ext/opcache/tests/
H A Dbug68644.phpt13 var_dump(mb_strlen("中国, 北京"));
/PHP-7.2/ext/odbc/tests/
H A Dbug60616.phpt43 $euc_jp_check = $euc_jp . str_repeat(" ", (200 - mb_strlen($euc_jp)));
/PHP-7.2/ext/mbstring/
H A Dmbstring.h106 PHP_FUNCTION(mb_strlen);
H A Dmbstring.c551 PHP_FE(mb_strlen, arginfo_mb_strlen)
2250 PHP_FUNCTION(mb_strlen) in PHP_FUNCTION() argument

Completed in 60 milliseconds