summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPeter Colberg <peter@colberg.org>2015-10-29 04:45:39 (GMT)
committer Peter Colberg <peter@colberg.org>2015-10-29 04:45:39 (GMT)
commit09360de1865e0e8dd59fc1e5038935f89b3f21cb (patch)
tree2e58ca1f8d66699351ed1261a55ea3497e334e83 /test
parent24515cbbe306568fa0a3646f1723b22373b91393 (diff)
downloadlibutf8proc-09360de1865e0e8dd59fc1e5038935f89b3f21cb.tar.gz
libutf8proc-09360de1865e0e8dd59fc1e5038935f89b3f21cb.tar.bz2
Do not export internal unsafe_encode_char()
Diffstat (limited to 'test')
-rw-r--r--test/tests.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/tests.h b/test/tests.h
index 6eb5457..43df51f 100644
--- a/test/tests.h
+++ b/test/tests.h
@@ -33,7 +33,6 @@ size_t skipspaces(const char *buf, size_t i)
separated by whitespace, and terminated by any character not in
[0-9a-fA-F] or whitespace, then stores the corresponding utf8 string
in dest, returning the number of bytes read from buf */
-utf8proc_ssize_t unsafe_encode_char(utf8proc_int32_t uc, utf8proc_uint8_t *dst);
size_t encode(char *dest, const char *buf)
{
size_t i = 0, j, d = 0;
@@ -48,7 +47,7 @@ size_t encode(char *dest, const char *buf)
}
check(sscanf(buf + i, "%x", (unsigned int *)&c) == 1, "invalid hex input %s", buf+i);
i = j; /* skip to char after hex input */
- d += unsafe_encode_char(c, (utf8proc_uint8_t *) (dest + d));
+ d += utf8proc_encode_char(c, (utf8proc_uint8_t *) (dest + d));
}
}