Add macros for XML_Char-based strncmp and strlen equivalents
#define XML_FMT_CHAR "lc"
#define XML_FMT_STR "ls"
#include <wchar.h>
+#define xcstrlen(s) wcslen(s)
#define xcstrcmp(s, t) wcscmp((s), (t))
+#define xcstrncmp(s, t, n) wcsncmp((s), (t), (n))
#else
#ifdef XML_UNICODE
#error "No support for UTF-16 character without wchar_t in tests"
#else
#define XML_FMT_CHAR "c"
#define XML_FMT_STR "s"
+#define xcstrlen(s) strlen(s)
#define xcstrcmp(s, t) strcmp((s), (t))
+#define xcstrncmp(s, t, n) strncmp((s), (t), (n))
#endif /* XML_UNICODE */
#endif /* XML_UNICODE_WCHAR_T */
