X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=include%2Fwimlib%2Fencoding.h;h=59914ae3cdf7e51d5e9fca8202990ec55b43e7c8;hb=5695db8f27535e50a8159a226902687fe32ffe9a;hp=ff3c2ae61e2a44044e1145279514d38fdfecbb37;hpb=e8c3ca2d1d0cac3d64985b45a9f654d2029a7518;p=wimlib diff --git a/include/wimlib/encoding.h b/include/wimlib/encoding.h index ff3c2ae6..59914ae3 100644 --- a/include/wimlib/encoding.h +++ b/include/wimlib/encoding.h @@ -6,6 +6,9 @@ extern void iconv_global_cleanup(void); +extern void +init_upcase(void); + extern bool wimlib_mbs_is_utf8; #define DECLARE_CHAR_CONVERSION_FUNCTIONS(varname1, varname2, \ @@ -30,10 +33,18 @@ DECLARE_CHAR_CONVERSION_FUNCTIONS(utf16le, tstr, utf16lechar, tchar); DECLARE_CHAR_CONVERSION_FUNCTIONS(tstr, utf16le, tchar, utf16lechar); #endif +DECLARE_CHAR_CONVERSION_FUNCTIONS(utf8, tstr, char, tchar); +DECLARE_CHAR_CONVERSION_FUNCTIONS(tstr, utf8, tchar, char); + extern int utf8_to_tstr_simple(const char *utf8str, tchar **out); extern int tstr_to_utf8_simple(const tchar *tstr, char **out); +extern int +cmp_utf16le_strings(const utf16lechar *s1, size_t n1, + const utf16lechar *s2, size_t n2, + bool ignore_case); + #endif /* _WIMLIB_ENCODING_H */