diff options
author | SVN Migration <svn@php.net> | 2004-01-25 12:03:25 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2004-01-25 12:03:25 +0000 |
commit | 22476b36ce621bdd115493bab84cbe706e422a7c (patch) | |
tree | 1124d1c5af68860a78c2252bb0dac63c9f18156e /ext/mbstring/tests/mb_strwidth.phpt | |
parent | eb7aca4ea896b09cb9afc2466a46f4720acc4a4e (diff) | |
download | php-git-php_ibase_before_split.tar.gz |
This commit was manufactured by cvs2svn to create tagphp_ibase_before_split
'php_ibase_before_split'.
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 |