*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;
}
/* }}} */
-/* {{{ 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;
#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);
/* {{{ 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)
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 }
};
/* }}} */