Home
last modified time | relevance | path

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

/php-src/ext/mbstring/tests/
H A Dmb_strlen.phpt2 mb_strlen()
20 print mb_strlen($ascii,'ASCII') . "\n";
24 print mb_strlen($euc_jp,'EUC-JP') . "\n";
30 print mb_strlen($sjis,'SJIS') . "\n";
35 print mb_strlen("\x80\xA1", 'SJIS') . "\n";
39 print mb_strlen("\x80\xA1", "CP932") . "\n";
67 print mb_strlen($jis,'JIS') . "\n";
79 print mb_strlen($utf8, 'UTF-8') . "\n";
80 print mb_strlen($long_utf8, 'UTF-8') . "\n";
86 print mb_strlen($utf8, 'UTF-8') . "\n";
[all …]
H A Dmb_strlen_error2.phpt2 Test mb_strlen() function : error conditions - pass an unknown encoding
8 * Test mb_strlen when passed an unknown encoding
11 echo "*** Testing mb_strlen() : error ***\n";
18 var_dump(mb_strlen($string, $encoding));
25 *** Testing mb_strlen() : error ***
26 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
8 * Test basic functionality of mb_strlen()
11 echo "*** Testing mb_strlen() : basic functionality***\n";
18 var_dump(mb_strlen($string_ascii));
21 var_dump(mb_strlen($string_mb, 'UTF-8'));
26 *** Testing mb_strlen() : basic functionality***
H A Dgh13815.phpt8 var_dump(mb_strlen(mb_trim($strUtf8)));
9 var_dump(mb_strlen(mb_trim($strUtf8, encoding: 'UTF-8')));
13 var_dump(mb_strlen(mb_trim($strSjis)));
14 var_dump(mb_strlen(mb_trim($strSjis, encoding: 'Shift_JIS')));
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
8 * Pass all encodings listed on php.net to mb_strlen to test that function recognises them
13 echo "*** Testing mb_strlen() : usage variations ***\n";
82 if(mb_strlen($string_ascii, $enc)) {
89 if(mb_strlen($string_mb, $enc)){
100 *** Testing mb_strlen() : usage variations ***
339 Deprecated: mb_strlen(): Handling Base64 via mbstring is deprecated; use base64_encode/base64_decod…
347 Deprecated: mb_strlen(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, h…
H A Dmb_str_split_other.phpt14 for ($i = 1; $i <= mb_strlen($str, 'UTF-8'); $i++) {
27 for ($i = 1; $i <= mb_strlen($str, 'UTF-8'); $i++) {
40 for ($i = 1; $i <= mb_strlen($str, 'UTF-8'); $i++) {
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 Dcp932_encoding.phpt145 echo 'mb_strlen("\x80\x81", "CP932") == ' . mb_strlen("\x80\x81", "CP932") . PHP_EOL;
156 mb_strlen("\x80\x81", "CP932") == 2
H A Dmb_stripos_invalid_offset.phpt15 $slen = mb_strlen($string);
H A Dmb_strpos_invalid_offset.phpt15 $slen = mb_strlen($string);
H A Dencoding_tests.inc156 $strLen = mb_strlen($fromString, $fromEncoding);
157 if ($strLen !== mb_strlen($toString, $toEncoding)) {
158 …ding string '" . bin2hex($fromString) . "' was different than expected; mb_strlen returned $strLen…
H A Dmb_substr_variation4.phpt34 if (strlen($a) == mb_strlen($b, 'UTF-8')) { // should return same length
H A Dmb_substr_variation5.phpt35 if (strlen($a) == mb_strlen($b, 'UTF-8')) { // should return same length
H A Dmb_substr_variation6.phpt39 if (strlen($a) == mb_strlen($b, 'UTF-8')) { // should return same length
H A Dmb_substr_variation7.phpt40 if (strlen($a) == mb_strlen($b, 'UTF-8')) { // should return same length
H A Dmb_strimwidth.phpt28 print "] length=" . mb_strlen($result, $encoding);
41 print "String length: " . mb_strlen($utf16le, 'UTF-16LE') . "\n";
82 print "String length: " . mb_strlen($euc_jp, 'EUC-JP') . "\n";
H A Dmb_strpos.phpt16 $slen = mb_strlen($euc_jp, 'EUC-JP');
H A Dmb_stripos.phpt15 $slen = mb_strlen($euc_jp, 'EUC-JP');
/php-src/ext/odbc/tests/
H A Dbug60616.phpt54 $euc_jp_check = $euc_jp . str_repeat(" ", (200 - mb_strlen($euc_jp)));
/php-src/ext/mbstring/
H A Dmbstring_arginfo.h307 ZEND_FUNCTION(mb_strlen);
376 ZEND_FE(mb_strlen, arginfo_mb_strlen)
H A Dmbstring.stub.php89 function mb_strlen(string $string, ?string $encoding = null): int {} function
H A Dmbstring.c1844 PHP_FUNCTION(mb_strlen) in PHP_FUNCTION() argument

Completed in 47 milliseconds