]> granicus.if.org Git - php/commitdiff
Rename i18_loc_* to locale_*.
authorAndrei Zmievski <andrei@php.net>
Fri, 21 Apr 2006 19:35:26 +0000 (19:35 +0000)
committerAndrei Zmievski <andrei@php.net>
Fri, 21 Apr 2006 19:35:26 +0000 (19:35 +0000)
ext/unicode/locale.c
ext/unicode/php_unicode.h
ext/unicode/unicode.c

index bc28aeabd776e51dbe8396e59d9e03badda50cbf..fbf81940f61cc57b7a6e4f293581208214e30356 100644 (file)
@@ -40,9 +40,9 @@ static void php_canonicalize_locale_id(char **target, int32_t *target_len, char
        *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 @@ PHP_FUNCTION(i18n_loc_get_default)
 }
 /* }}} */
 
-/* {{{ 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;
index d4ffab70abaab1661a858caa0a412b79854af2ea..b3b53181c38371b1d04af3489d181e13f085b0ac 100644 (file)
@@ -55,8 +55,8 @@ PHP_MINFO_FUNCTION(unicode);
 #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);
index 146d6a7dc974a9000ffb798d4622e77adccf6d59..6ffe8f0a1d7ea1ebd1e12b2102346ac7c8252746 100644 (file)
@@ -233,9 +233,8 @@ PHP_FUNCTION(unicode_get_subst_char)
 
 /* {{{ 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 @@ zend_function_entry unicode_functions[] = {
        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 }
 };
 /* }}} */