summaryrefslogtreecommitdiff
path: root/utils/utf8.h
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-03-17 22:01:42 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2013-03-17 22:01:42 +0000
commitc3f21572ed18b9319aeba0fc5caf4a6394fd3905 (patch)
tree761308ff1d2c8b03396f84fbc2e6b51f52654798 /utils/utf8.h
parentc205378a8df1c3b099adf2436e2eacd16d070bb6 (diff)
downloadnetsurf-c3f21572ed18b9319aeba0fc5caf4a6394fd3905.tar.gz
netsurf-c3f21572ed18b9319aeba0fc5caf4a6394fd3905.tar.bz2
Add function to get the byte length of n characters in a utf8 string.
Diffstat (limited to 'utils/utf8.h')
-rw-r--r--utils/utf8.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/utf8.h b/utils/utf8.h
index 26234f6c0..eb043c227 100644
--- a/utils/utf8.h
+++ b/utils/utf8.h
@@ -37,6 +37,7 @@ size_t utf8_from_ucs4(uint32_t c, char *s);
size_t utf8_length(const char *s);
size_t utf8_bounded_length(const char *s, size_t l);
+size_t utf8_bounded_byte_length(const char *s, size_t l, size_t c);
size_t utf8_char_byte_length(const char *s);