summaryrefslogtreecommitdiff
path: root/src/shared/utf8.h
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-09-17 15:39:09 -0400
committerDave Reisner <dreisner@archlinux.org>2013-09-17 16:31:32 -0400
commit02a36bc9a1769c744f141f127898dbe076dbfd96 (patch)
treed6ef940458ee7a79e8a03ddba80735fd76512a1d /src/shared/utf8.h
parentbf24e638afb32ebc49b063c007888410fb9d19bd (diff)
move utf8 functions from libudev-private.h to utf8.h
There's now some more obvious overlap amongst the two utf8 validation functions, but no more than there already was previously. This also adds some menial tests for anyone who wants to do more merging of these two in the future.
Diffstat (limited to 'src/shared/utf8.h')
-rw-r--r--src/shared/utf8.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/utf8.h b/src/shared/utf8.h
index f805ea6b59..7a5608c9ee 100644
--- a/src/shared/utf8.h
+++ b/src/shared/utf8.h
@@ -34,3 +34,7 @@ char *utf8_filter(const char *s);
char *ascii_filter(const char *s);
char *utf16_to_utf8(const void *s, size_t length);
+
+int utf8_encoded_valid_unichar(const char *str);
+int is_utf8_encoding_whitelisted(char c, const char *white);
+int udev_encode_string(const char *str, char *str_enc, size_t len);