]> granicus.if.org Git - php/commitdiff
Some additional binary property functions.
authorAndrei Zmievski <andrei@php.net>
Tue, 2 May 2006 22:43:52 +0000 (22:43 +0000)
committerAndrei Zmievski <andrei@php.net>
Tue, 2 May 2006 22:43:52 +0000 (22:43 +0000)
ext/unicode/property.c
ext/unicode/unicode.c

index 61df1b7b3a9145917d386879a3e99caf57d61e08..8daecd8cd4a470226969ac2f56db136483cff5ae 100644 (file)
@@ -109,6 +109,75 @@ PHP_FUNCTION(unicode_is_print)
 
 /* }}} */
 
+/*
+ * 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:
index 8ab19ec8993241dacebac61148df8a7ffd3967ac..dde3ef54af3073cadfde466d37b5528a5d1b5a5c 100644 (file)
@@ -262,6 +262,20 @@ zend_function_entry unicode_functions[] = {
        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 }
 };
 /* }}} */