Rename i18_loc_* to locale_*.

This commit is contained in:
Andrei Zmievski 2006-04-21 19:35:26 +00:00
parent 24988a088c
commit 2bbced4bce
3 changed files with 9 additions and 9 deletions

View 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;

View 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);

View 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 }
};
/* }}} */