]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Rename strncat_from_utf8_utf8 function to strncat_from_utf8_to_utf8.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 25 Apr 2011 10:00:58 +0000 (06:00 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 25 Apr 2011 10:00:58 +0000 (06:00 -0400)
SVN-Revision: 3268

libarchive/archive_string.c

index 8cd4420639f3a9ac07dfd96ae4d50e1458b23e6c..da9bca54a483cfd44fa5de8014d03b9d41199981 100644 (file)
@@ -117,7 +117,7 @@ static int best_effort_strncat_in_locale(struct archive_string *, const void *,
     size_t, struct archive_string_conv *);
 static int strncat_from_utf8_libarchive2(struct archive_string *,
     const char *, size_t);
-static int strncat_from_utf8_utf8(struct archive_string *, const char *,
+static int strncat_from_utf8_to_utf8(struct archive_string *, const char *,
     size_t);
 
 static struct archive_string *
@@ -1372,7 +1372,7 @@ archive_strncat_in_locale(struct archive_string *as, const void *_p, size_t n,
         * when both from-charset and to-charset are UTF-8.
         */
        if (sc != NULL && (sc->flag & SCONV_COPY_UTF8_TO_UTF8) != 0)
-               return (strncat_from_utf8_utf8(as, _p, length));
+               return (strncat_from_utf8_to_utf8(as, _p, length));
 
        archive_string_ensure(as, as->length + length*2+1);
 
@@ -1640,7 +1640,7 @@ best_effort_strncat_in_locale(struct archive_string *as, const void *_p,
 
        /* Copy UTF-8 string with a check of CESU-8. */
        if (sc != NULL && (sc->flag & SCONV_COPY_UTF8_TO_UTF8) != 0)
-               return (strncat_from_utf8_utf8(as, _p, length));
+               return (strncat_from_utf8_to_utf8(as, _p, length));
 
        archive_string_append(as, _p, length);
        /* If charset is NULL, just make a copy, so return 0 as success. */
@@ -1836,7 +1836,7 @@ unicode_to_utf8(char *p, uint32_t uc)
  * If any surrogate pair are found, it would be canonicalized.
  */
 static int
-strncat_from_utf8_utf8(struct archive_string *as, const char *s, size_t len)
+strncat_from_utf8_to_utf8(struct archive_string *as, const char *s, size_t len)
 {
        char *p;
        int n, ret = 0;