lib/charcnv/util_unistr: add next_codepoint_ext() that accepts input charset.
[kai/samba.git] / lib / util / charset / util_unistr.c
index 520ce054680ed1b43cb14b312db23602da60fd58..79a9ffe3df9f1904398e72c24f717906b325c624 100644 (file)
@@ -992,6 +992,12 @@ _PUBLIC_ bool convert_string_talloc(TALLOC_CTX *ctx,
                                                                                         allow_badcharcnv);
 }
 
+_PUBLIC_ codepoint_t next_codepoint_ext(const char *str, charset_t src_charset,
+                                       size_t *size)
+{
+       return next_codepoint_convenience_ext(get_iconv_convenience(), str,
+                                             src_charset, size);
+}
 
 _PUBLIC_ codepoint_t next_codepoint(const char *str, size_t *size)
 {