andrei Tue May 2 22:43:52 2006 UTC Modified files: /php-src/ext/unicode property.c unicode.c Log: Some additional binary property functions. http://cvs.php.net/viewcvs.cgi/php-src/ext/unicode/property.c?r1=1.3&r2=1.4&diff_format=u Index: php-src/ext/unicode/property.c diff -u php-src/ext/unicode/property.c:1.3 php-src/ext/unicode/property.c:1.4 --- php-src/ext/unicode/property.c:1.3 Tue May 2 21:49:16 2006 +++ php-src/ext/unicode/property.c Tue May 2 22:43:52 2006 @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: property.c,v 1.3 2006/05/02 21:49:16 andrei Exp $ */ +/* $Id: property.c,v 1.4 2006/05/02 22:43:52 andrei Exp $ */ #include "php_unicode.h" @@ -109,6 +109,75 @@ /* }}} */ +/* + * Additional binary property functions + */ + +PHP_FUNCTION(unicode_is_title) +{ + check_property_impl(INTERNAL_FUNCTION_PARAM_PASSTHRU, u_istitle); +} + +PHP_FUNCTION(unicode_is_defined) +{ + check_property_impl(INTERNAL_FUNCTION_PARAM_PASSTHRU, u_isdefined); +} + +PHP_FUNCTION(unicode_is_id_start) +{ + check_property_impl(INTERNAL_FUNCTION_PARAM_PASSTHRU, u_isIDStart); +} + +PHP_FUNCTION(unicode_is_id_part) +{ + check_property_impl(INTERNAL_FUNCTION_PARAM_PASSTHRU, u_isIDPart); +} + +PHP_FUNCTION(unicode_is_id_ignorable) +{ + check_property_impl(INTERNAL_FUNCTION_PARAM_PASSTHRU, u_isIDIgnorable); +} + +PHP_FUNCTION(unicode_is_iso_control) +{ + check_property_impl(INTERNAL_FUNCTION_PARAM_PASSTHRU, u_isISOControl); +} + +PHP_FUNCTION(unicode_is_mirrored) +{ + check_property_impl(INTERNAL_FUNCTION_PARAM_PASSTHRU, u_isMirrored); +} + +PHP_FUNCTION(unicode_is_base) +{ + check_property_impl(INTERNAL_FUNCTION_PARAM_PASSTHRU, u_isbase); +} + +PHP_FUNCTION(unicode_is_whitespace) +{ + check_property_impl(INTERNAL_FUNCTION_PARAM_PASSTHRU, u_isWhitespace); +} + +PHP_FUNCTION(unicode_is_u_whitespace) +{ + check_property_impl(INTERNAL_FUNCTION_PARAM_PASSTHRU, u_isUWhiteSpace); +} + +PHP_FUNCTION(unicode_is_u_alphabetic) +{ + check_property_impl(INTERNAL_FUNCTION_PARAM_PASSTHRU, u_isUAlphabetic); +} + +PHP_FUNCTION(unicode_is_u_uppercase) +{ + check_property_impl(INTERNAL_FUNCTION_PARAM_PASSTHRU, u_isUUppercase); +} + +PHP_FUNCTION(unicode_is_u_lowercase) +{ + check_property_impl(INTERNAL_FUNCTION_PARAM_PASSTHRU, u_isULowercase); +} + /* * Local variables: http://cvs.php.net/viewcvs.cgi/php-src/ext/unicode/unicode.c?r1=1.24&r2=1.25&diff_format=u Index: php-src/ext/unicode/unicode.c diff -u php-src/ext/unicode/unicode.c:1.24 php-src/ext/unicode/unicode.c:1.25 --- php-src/ext/unicode/unicode.c:1.24 Tue May 2 21:39:15 2006 +++ php-src/ext/unicode/unicode.c Tue May 2 22:43:52 2006 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: unicode.c,v 1.24 2006/05/02 21:39:15 andrei Exp $ */ +/* $Id: unicode.c,v 1.25 2006/05/02 22:43:52 andrei Exp $ */ #include "php_unicode.h" #include "zend_unicode.h" @@ -262,6 +262,20 @@ PHP_FE(unicode_is_cntrl, NULL) PHP_FE(unicode_is_print, NULL) + PHP_FE(unicode_is_title, NULL) + PHP_FE(unicode_is_defined, NULL) + PHP_FE(unicode_is_id_start, NULL) + PHP_FE(unicode_is_id_part, NULL) + PHP_FE(unicode_is_id_ignorable, NULL) + PHP_FE(unicode_is_iso_control, NULL) + PHP_FE(unicode_is_mirrored, NULL) + PHP_FE(unicode_is_base, NULL) + PHP_FE(unicode_is_whitespace, NULL) + PHP_FE(unicode_is_u_whitespace, NULL) + PHP_FE(unicode_is_u_alphabetic, NULL) + PHP_FE(unicode_is_u_uppercase, NULL) + PHP_FE(unicode_is_u_lowercase, NULL) + { NULL, NULL, NULL } }; /* }}} */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php