Home
last modified time | relevance | path

Searched refs:mb_strwidth (Results 1 – 7 of 7) sorted by relevance

/php-src/ext/mbstring/tests/
H A Dmb_strwidth.phpt2 mb_strwidth()
21 print "1: " . mb_strwidth($euc_jp, 'EUC-JP') . "\n";
22 print "2: " . mb_strwidth($utf8, 'UTF-8') . "\n";
23 print "3: " . mb_strwidth($utf16le, 'UTF-16LE') . "\n";
24 print "4: " . mb_strwidth($utf16be, 'UTF-16BE') . "\n";
25 print "5: " . mb_strwidth($koi8r, 'KOI8-R') . "\n";
H A Dunicode_versions.phpt10 print "ASCII (PHP): " . mb_strwidth('PHP', 'UTF-8') . "\n";
12 print "Vietnamese (Xin chào): " . mb_strwidth('Xin chào', 'UTF-8') . "\n";
14 print "Traditional Chinese (你好): " . mb_strwidth('你好', 'UTF-8') . "\n";
16 print "Sinhalese (අයේෂ්): " . mb_strwidth('අයේෂ්', 'UTF-8') . "\n";
18 print "Emoji (\u{1F418}): " . mb_strwidth("\u{1F418}", 'UTF-8') . "\n";
21 print "Emoji (\u{1F6DC}): " . mb_strwidth("\u{1F6DC}", 'UTF-8') . "\n";
24 print "Emoji (\u{2630}): " . mb_strwidth("\u{2630}", 'UTF-8') . "\n";
H A Dmb_str_unknown_encoding.phpt126 mb_strwidth('coudenys', 'UTF-0');
164 mb_strwidth(): Argument #2 ($encoding) must be a valid encoding, "UTF-0" given
H A Dmb_strimwidth.phpt20 return mb_strwidth($char, $encoding);
29 print " width=" . mb_strwidth($result, $encoding) . "\n";
42 print "String width: " . mb_strwidth($utf16le, 'UTF-16LE') . "\n";
83 print "String width: " . mb_strwidth($euc_jp, 'EUC-JP') . "\n";
181 if (mb_strwidth($result, 'ASCII') !== $width)
/php-src/ext/mbstring/
H A Dmbstring_arginfo.h319 ZEND_FUNCTION(mb_strwidth);
388 ZEND_FE(mb_strwidth, arginfo_mb_strwidth)
H A Dmbstring.stub.php119 function mb_strwidth(string $string, ?string $encoding = null): int {} function
H A Dmbstring.c2518 PHP_FUNCTION(mb_strwidth) in PHP_FUNCTION() argument

Completed in 29 milliseconds