]> granicus.if.org Git - php/commitdiff
Rename to str_transliterate().
authorAndrei Zmievski <andrei@php.net>
Thu, 15 Jun 2006 17:37:48 +0000 (17:37 +0000)
committerAndrei Zmievski <andrei@php.net>
Thu, 15 Jun 2006 17:37:48 +0000 (17:37 +0000)
ext/unicode/php_transform.h
ext/unicode/transform.c
ext/unicode/unicode.c

index 41118447d72fa9a83d0368d91e7822dee9c5a8d7..16b451aa8418853c8112bedc10166c84370fa70e 100644 (file)
@@ -19,7 +19,7 @@
 #ifndef PHP_TRANSFORM_H
 #define PHP_TRANSFORM_H
 
-PHP_FUNCTION(transliterate);
+PHP_FUNCTION(str_transliterate);
 
 #endif /* PHP_TRANSFORM_H */
 
index 6787eda60b51029fdbbdd9e264fed0608b0b702b..8f7e0f6879508d81ebcf3f8843006c097d1143f8 100644 (file)
@@ -18,7 +18,7 @@
 
 #include "php_unicode.h"
 
-PHP_FUNCTION(transliterate)
+PHP_FUNCTION(str_transliterate)
 {
        UChar      *str, *from, *to, *variant = NULL;
        int                     str_len, from_len, to_len, variant_len = 0;
@@ -30,26 +30,6 @@ PHP_FUNCTION(transliterate)
        UErrorCode      status = U_ZERO_ERROR;
        int32_t         capacity, start, limit;
 
-       /*
-       {
-
-               char *str;
-               int32_t str_len;
-               UEnumeration *ids;
-
-               ids = utrans_openIDs(&status);
-               printf("%d\n", uenum_count(ids, &status));
-               str = (char*)uenum_next(ids, &str_len, &status);
-               while (str) {
-                       printf("id: %s\n", str);
-                       str = (char*)uenum_next(ids, &str_len, &status);
-               }
-               uenum_close(ids);
-       }
-
-       return;
-       */
-
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "uuu|u", &str,
                                                          &str_len, &from, &from_len, &to, &to_len,
                                                          &variant, &variant_len) == FAILURE) {
index 4611eea89960f036ea84ab49953179fb2e2cb5ae..98367b0638e53ec5c40127260c7f004831cbb16c 100644 (file)
@@ -301,7 +301,7 @@ zend_function_entry unicode_functions[] = {
 
        /* text transformation functions */
 
-       PHP_FE(transliterate, NULL)
+       PHP_FE(str_transliterate, NULL)
 
        { NULL, NULL, NULL }
 };