/* A pointer to 'mbchar' indicates a string of "multibyte characters" provided
* in the default encoding of the user's locale, which may be "UTF-8",
* "ISO-8859-1", "C", or any other ASCII-compatible encoding.
- * "ASCII-compatible" here means any encoding where all ASCII characters have
- * the same representation, and any non-ASCII character is represented as a
- * sequence of one or more bytes not already used by any ASCII character. */
+ * "ASCII-compatible" here means any encoding where all ASCII-representable
+ * characters have the same representation as in ASCII itself, and any non-ASCII
+ * character is represented as a sequence of one or more bytes not already used
+ * by any ASCII character. */
typedef char mbchar;
/* A pointer to 'utf8char' indicates a UTF-8 encoded string */
/* A pointer to 'utf16lechar' indicates a UTF-16LE encoded string */
typedef u16 utf16lechar;
+extern size_t
+utf16le_strlen(const utf16lechar *s);
+
/* encoding.c */
extern void
iconv_global_cleanup();
}
extern int
-wimlib_fprintf(FILE *fp, const char *format, ...) FORMAT(printf, 2, 3);
+wimlib_fprintf(FILE *fp, const char *format, ...)
+ //FORMAT(printf, 2, 3)
+ ;
extern int
-wimlib_printf(const char *format, ...) FORMAT(printf, 1, 2);
+wimlib_printf(const char *format, ...)
+ //FORMAT(printf, 1, 2)
+ ;
#endif /* _WIMLIB_UTIL_H */