Re: cvs: php-src /ext/ctype ctype.c
| From: | Andrei Zmievski | Date: | Wed, 17 Aug 2005 21:40:35 +0000 |
| Subject: | Re: cvs: php-src /ext/ctype ctype.c | ||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-33517@lists.php.net to get a copy of this message | ||
Keep in mind that we only want to use POSIX-compatible ICU functions for ext/ctype. The full range of character properties will be available via ext/unicode.
-Andrei
On Aug 17, 2005, at 1:42 PM, Ilia Alshanetsky wrote:
Yeah, I'll put it on my todo. Ilia Dmitry Stogov wrote:You probably right. Can you do it by you self? Dmitry.--PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php-----Original Message----- From: Ilia Alshanetsky [mailto:ilia@prohost.org] Sent: Wednesday, August 17, 2005 6:25 PM To: Dmitry Stogov Cc: php-cvs@lists.php.net Subject: Re: [PHP-CVS] cvs: php-src /ext/ctype ctype.c Dmitry, Would it not be better to emulate ctype functionality via equivalent ICU functions/macros when the given value is Unicode? Ilia Dmitry Stogov wrote:http://cvs.php.net/diff.php/php-src/ext/ctype/ctype.c?r1=1.34&r2=1.35&dmitry Wed Aug 17 10:16:06 2005 EDTModified files:/php-src/ext/ctype ctype.cLog: Unicode supportty=u Index: php-src/ext/ctype/ctype.c diff -u php-src/ext/ctype/ctype.c:1.34php-src/ext/ctype/ctype.c:1.35Z_STRVAL_P(c) + Z_STRLEN_P(c); \--- php-src/ext/ctype/ctype.c:1.34 Wed Aug 3 10:06:43 2005 +++ php-src/ext/ctype/ctype.c Wed Aug 17 10:16:05 2005@@ -105,6 +105,8 @@SEPARATE_ZVAL(&c); \ convert_to_string(c); \ case IS_STRING: \ + case IS_BINARY: \+string:\{ \ char *p = Z_STRVAL_P(c), *e =if (e == p) { \@@ -115,6 +117,9 @@} \ RETURN_TRUE; \ } \ + case IS_UNICODE: \ + convert_to_string(c); \ + goto string; \ default: \ break; \ } \