cvs: php-src /ext/unicode locale.c php_unicode.h unicode.c
| From: | Andrei Zmievski | Date: | Fri, 21 Apr 2006 19:35:26 +0000 |
| Subject: | cvs: php-src /ext/unicode locale.c php_unicode.h unicode.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-37881@lists.php.net to get a copy of this message | ||
andrei Fri Apr 21 19:35:26 2006 UTC
Modified files:
/php-src/ext/unicode locale.c php_unicode.h unicode.c
Log:
Rename i18_loc_* to locale_*.
http://cvs.php.net/viewcvs.cgi/php-src/ext/unicode/locale.c?r1=1.8&r2=1.9&diff_format=u
Index: php-src/ext/unicode/locale.c
diff -u php-src/ext/unicode/locale.c:1.8 php-src/ext/unicode/locale.c:1.9
--- php-src/ext/unicode/locale.c:1.8 Tue Apr 18 21:36:38 2006
+++ php-src/ext/unicode/locale.c Fri Apr 21 19:35:26 2006
@@ -14,7 +14,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: locale.c,v 1.8 2006/04/18 21:36:38 andrei Exp $ */
+/* $Id: locale.c,v 1.9 2006/04/21 19:35:26 andrei Exp $ */
#include "php_unicode.h"
@@ -40,9 +40,9 @@
*target_len = canonicalized_len;
}
-/* {{{ proto string i18n_loc_get_default(void) U
+/* {{{ proto string locale_get_default(void) U
Returns default locale */
-PHP_FUNCTION(i18n_loc_get_default)
+PHP_FUNCTION(locale_get_default)
{
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) {
return;
@@ -52,9 +52,9 @@
}
/* }}} */
-/* {{{ proto bool i18n_loc_set_default(string locale) U
+/* {{{ proto bool locale_set_default(string locale) U
Sets default locale */
-PHP_FUNCTION(i18n_loc_set_default)
+PHP_FUNCTION(locale_set_default)
{
char *locale;
int locale_len;
http://cvs.php.net/viewcvs.cgi/php-src/ext/unicode/php_unicode.h?r1=1.9&r2=1.10&diff_format=u
Index: php-src/ext/unicode/php_unicode.h
diff -u php-src/ext/unicode/php_unicode.h:1.9 php-src/ext/unicode/php_unicode.h:1.10
--- php-src/ext/unicode/php_unicode.h:1.9 Fri Apr 21 18:25:16 2006
+++ php-src/ext/unicode/php_unicode.h Fri Apr 21 19:35:26 2006
@@ -14,7 +14,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_unicode.h,v 1.9 2006/04/21 18:25:16 andrei Exp $ */
+/* $Id: php_unicode.h,v 1.10 2006/04/21 19:35:26 andrei Exp $ */
#ifndef PHP_UNICODE_H
#define PHP_UNICODE_H
@@ -55,8 +55,8 @@
#include "TSRM.h"
#endif
-PHP_FUNCTION(i18n_loc_get_default);
-PHP_FUNCTION(i18n_loc_set_default);
+PHP_FUNCTION(locale_get_default);
+PHP_FUNCTION(locale_set_default);
PHP_FUNCTION(collator_get_default);
PHP_FUNCTION(collator_create);
PHP_FUNCTION(collator_compare);
http://cvs.php.net/viewcvs.cgi/php-src/ext/unicode/unicode.c?r1=1.21&r2=1.22&diff_format=u
Index: php-src/ext/unicode/unicode.c
diff -u php-src/ext/unicode/unicode.c:1.21 php-src/ext/unicode/unicode.c:1.22
--- php-src/ext/unicode/unicode.c:1.21 Fri Apr 21 18:25:16 2006
+++ php-src/ext/unicode/unicode.c Fri Apr 21 19:35:26 2006
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: unicode.c,v 1.21 2006/04/21 18:25:16 andrei Exp $ */
+/* $Id: unicode.c,v 1.22 2006/04/21 19:35:26 andrei Exp $ */
#include "php_unicode.h"
#include "zend_unicode.h"
@@ -233,9 +233,8 @@
/* {{{ unicode_functions[] */
zend_function_entry unicode_functions[] = {
- PHP_FE(i18n_loc_get_default, NULL)
- PHP_FE(i18n_loc_set_default, NULL)
- PHP_FE(collator_get_default, NULL)
+ PHP_FE(locale_get_default, NULL)
+ PHP_FE(locale_set_default, NULL)
PHP_FE(unicode_decode, NULL)
PHP_FE(unicode_semantics, NULL)
PHP_FE(unicode_encode, NULL)
@@ -245,6 +244,7 @@
PHP_FE(unicode_get_subst_char, NULL)
PHP_FE(collator_create, NULL)
PHP_FE(collator_compare, NULL)
+ PHP_FE(collator_get_default, NULL)
{ NULL, NULL, NULL }
};
/* }}} */