]> wimlib.net Git - wimlib/blobdiff - include/wimlib/encoding.h
Implement setting of Windows-specific XML information
[wimlib] / include / wimlib / encoding.h
index f9e5f2645ef707eed8d4a8da96222e769a117166..f40f77be3f32043a971c7f1156b5f7e41c067d34 100644 (file)
@@ -13,6 +13,8 @@ iconv_global_init(void);
 extern void
 iconv_global_cleanup(void);
 
+extern u16 upcase[65536];
+
 extern void
 init_upcase(void);
 
@@ -37,6 +39,15 @@ varname1##_to_##varname2##_buf(const chartype1 *in, size_t in_nbytes,        \
 extern utf16lechar *
 utf16le_dupz(const void *ustr, size_t usize);
 
+extern utf16lechar *
+utf16le_dup(const utf16lechar *ustr);
+
+extern size_t
+utf16le_len_bytes(const utf16lechar *s);
+
+extern size_t
+utf16le_len_chars(const utf16lechar *s);
+
 #if !TCHAR_IS_UTF16LE
 DECLARE_CHAR_CONVERSION_FUNCTIONS(utf16le, tstr, utf16lechar, tchar);
 DECLARE_CHAR_CONVERSION_FUNCTIONS(tstr, utf16le, tchar, utf16lechar);
@@ -72,6 +83,10 @@ cmp_utf16le_strings(const utf16lechar *s1, size_t n1,
                    const utf16lechar *s2, size_t n2,
                    bool ignore_case);
 
+extern int
+cmp_utf16le_strings_z(const utf16lechar *s1, const utf16lechar *s2,
+                     bool ignore_case);
+
 /* Convert a string in the platform-dependent encoding to UTF-16LE, but if both
  * encodings are UTF-16LE, simply re-use the string.  Release with
  * tstr_put_utf16le() when done.  */