summaryrefslogtreecommitdiffstats
path: root/utf8.h
diff options
context:
space:
mode:
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/utf8.h b/utf8.h
index 83c23874..7c7c6fc4 100644
--- a/utf8.h
+++ b/utf8.h
@@ -24,14 +24,14 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-size_t utf8_from_uc(wchar_t *, const unsigned char *);
+size_t utf8_from_buf(wchar_t *, const unsigned char *, size_t nbytes);
size_t utf8_from(wchar_t *, const char *);
-size_t utf8_to_uc(unsigned char *, const wchar_t *);
+size_t utf8_to_buf(unsigned char *dst, const wchar_t *wsrc, int null_term);
size_t utf8_to(char *, const wchar_t *);
-wchar_t *utf8_dup_from_uc(const unsigned char *);
wchar_t *utf8_dup_from(const char *);
char *utf8_dup_to(const wchar_t *);
-unsigned char *utf8_dup_to_uc(const wchar_t *);
+unsigned char *utf8_dup_to_buf(const wchar_t *, size_t *pnbytes,
+ int null_term);
enum utf8_state { utf8_init, utf8_more1, utf8_more2, utf8_more3 };