Idź do dokumentacji tego pliku.
3 #ifndef __EKG_STRINGS_H
4 #define __EKG_STRINGS_H
24 #include "ekg2-config.h"
33 #define CHAR_T wchar_t
34 #define TEXT(x) (wchar_t *) L##x
35 #define CHAR(x) (wchar_t) L##x
36 #define STRING_FORMAT "%ls"
37 #define CHAR_FORMAT "%lc"
40 extern size_t xmbslen(
const char *str);
47 extern CHAR_T *normal_to_wcs(
const char *str);
52 #define free_utf(x) xfree(x)
58 #define CHAR_T unsigned char
61 #define STRING_FORMAT "%s"
62 #define CHAR_FORMAT "%c"
64 #define xwcslen(str) xstrlen((char *) str)
65 #define xmbslen(str) xstrlen(str)
66 #define xwcscpy(dst, str) xstrcpy((char *) dst, (char *) str)
67 #define xwcsdup(str) (CHAR_T *) xstrdup((char *) str)
68 #define xwcscat(dst, src) xstrcat((char *) dst, (char *) src)
69 #define xwcscmp(s1, s2) xstrcmp((char *) s1, (char *) s2)
70 #define xwcschr(s, c) xstrchr((char *) s, c)
71 #define wcs_to_normal(x) (char *) x
72 #define wcs_array_make(str, sep, max, trim, quotes) (CHAR_T **) array_make((char *) str, sep, max, trim, quotes)
73 #define wcs_array_join(arr, sep) (CHAR_T *) array_join((char **) arr, sep)
74 #define xwcslcpy(dst, src, size) strlcpy((char *) dst, (char *) src, size)