helly Mon Feb 13 09:20:19 2006 UTC Modified files: /php-src/ext/unicode unicode.c Log: - Add unicode_enabled() to check whether unicode_semantics is on http://cvs.php.net/viewcvs.cgi/php-src/ext/unicode/unicode.c?r1=1.8&r2=1.9&diff_format=u Index: php-src/ext/unicode/unicode.c diff -u php-src/ext/unicode/unicode.c:1.8 php-src/ext/unicode/unicode.c:1.9 --- php-src/ext/unicode/unicode.c:1.8 Wed Feb 1 23:50:50 2006 +++ php-src/ext/unicode/unicode.c Mon Feb 13 09:20:19 2006 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: unicode.c,v 1.8 2006/02/01 23:50:50 andrei Exp $ */ +/* $Id: unicode.c,v 1.9 2006/02/13 09:20:19 helly Exp $ */ #include "php_unicode.h" #if HAVE_UNICODE @@ -68,6 +68,14 @@ } /* }}} */ +/* {{{ proto bool unicode_enabled() + Check whether unicode semantics is enabled */ +static PHP_FUNCTION(unicode_enabled) +{ + RETURN_BOOL(UG(unicode)); +} +/* }}} */ + /* {{{ proto string unicode_encode(unicode input, string encoding) Takes a unicode string and converts it to a string in the specified encoding */ static PHP_FUNCTION(unicode_encode) @@ -109,6 +117,7 @@ PHP_FE(i18n_loc_get_default, NULL) PHP_FE(i18n_loc_set_default, NULL) PHP_FE(unicode_decode, NULL) + PHP_FE(unicode_enabled, NULL) PHP_FE(unicode_encode, NULL) PHP_FE(i18n_strtotitle, NULL) { NULL, NULL, NULL }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php