diff options
author | SVN Migration <svn@php.net> | 2006-10-15 21:09:28 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2006-10-15 21:09:28 +0000 |
commit | 88ec761548b66f58acc1a86cdd0fc164ca925476 (patch) | |
tree | d0af978fa00d83bb1d82c613f66477fbd6bb18aa /ext/mbstring/tests/mb_strwidth.phpt | |
parent | 268984b4787e797db6054313fc9ba3b9e845306e (diff) | |
download | php-git-PECL_OPENSSL.tar.gz |
This commit was manufactured by cvs2svn to create branch 'PECL_OPENSSL'.PECL_OPENSSL
Diffstat (limited to 'ext/mbstring/tests/mb_strwidth.phpt')
-rw-r--r-- | ext/mbstring/tests/mb_strwidth.phpt | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/ext/mbstring/tests/mb_strwidth.phpt b/ext/mbstring/tests/mb_strwidth.phpt deleted file mode 100644 index 33ec851c3d..0000000000 --- a/ext/mbstring/tests/mb_strwidth.phpt +++ /dev/null @@ -1,32 +0,0 @@ ---TEST-- -mb_strwidth() ---SKIPIF-- -<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?> ---FILE-- -<?php -// TODO: Add more encoding, strings..... -//$debug = true; -ini_set('include_path','.'); -include_once('common.inc'); - -// EUC-JP -$euc_jp = '0123この文字列は日本語です。EUC-JPを使っています。日本語は面倒臭い。'; - -print "1: ". mb_strwidth($euc_jp, 'EUC-JP') . "\n"; -/* - -print "2: ". mb_strwidth($euc_jp, 'EUC-JP') . "\n"; -print "3: ". mb_strwidth($euc_jp, 'EUC-JP') . "\n"; -// Note: Did not start form -22 offset. Staring from 0. -print "4: ". mb_strwidth($euc_jp, 'EUC-JP') . "\n"; - -$str = mb_strwidth($euc_jp, 100, -10,'...','EUC-JP'); -($str === "") ? print "5 OK\n" : print "NG: $str\n"; - -$str = mb_strwidth($euc_jp, -100, 10,'...','EUC-JP'); -($str !== "") ? print "6 OK: $str\n" : print "NG: $str\n"; -*/ -?> - ---EXPECT-- -1: 68 |