#23501 [NEW]: Request a multibyte-safe version of trim()

From: Date: Tue, 06 May 2003 06:18:33 +0000
Subject: #23501 [NEW]: Request a multibyte-safe version of trim()
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39132@lists.php.net to get a copy of this message
From: jc at mega-bucks dot co dot jp Operating system: Red Hat Linux 8.0 PHP version: 4.3.2RC2 PHP Bug Type: Feature/Change Request Bug description: Request a multibyte-safe version of trim() I'd like to ask that a multibyte-safe version of trim() be added to PHP. If possible with this functionality: String trim(string str, [string encoding], [string charlist]) 1- automatically determine encoding of given string and remove that encoding's "whitespace". I.e if I pass an ASCII string it would act just as the current trim(), if I pass in an SJIS string it would remove whatever is considered "whitespace" for that character set (including full-width spaces). Automatically determining the encoding of a string is not always possible, in that case the function promises only a "best guess" at the string's encoding. 2- Optional parameter that gives the string's encoding. 3- An optional list of characters to be considered "whitespace" instead of the function's built-in default list. -- Edit bug report at http://bugs.php.net/?id=23501&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23501&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23501&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23501&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23501&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23501&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23501&r=support Expected behavior: http://bugs.php.net/fix.php?id=23501&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23501&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23501&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23501&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23501&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23501&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23501&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23501&r=gnused

« previous php.bugs (#39132) next »