Idź do dokumentacji tego pliku.
3 #ifndef __EKG_STRINGS_H
4 #define __EKG_STRINGS_H
24 #include "ekg2-config.h"
37 #define CHAR_T wchar_t
38 #define TEXT(x) (wchar_t *) L##x
39 #define CHAR(x) (wchar_t) L##x
40 #define STRING_FORMAT "%ls"
41 #define CHAR_FORMAT "%lc"
44 extern size_t xmbslen(
const char *str);
51 extern CHAR_T *normal_to_wcs(
const char *str);
56 #define free_utf(x) xfree(x)
66 #define CHAR_T unsigned char
69 #define STRING_FORMAT "%s"
70 #define CHAR_FORMAT "%c"
72 #define xwcslen(str) xstrlen((char *) str)
73 #define xmbslen(str) xstrlen(str)
74 #define xwcscpy(dst, str) xstrcpy((char *) dst, (char *) str)
75 #define xwcsdup(str) (CHAR_T *) xstrdup((char *) str)
76 #define xwcscat(dst, src) xstrcat((char *) dst, (char *) src)
77 #define xwcscmp(s1, s2) xstrcmp((char *) s1, (char *) s2)
78 #define xwcschr(s, c) xstrchr((char *) s, c)
79 #define wcs_to_normal(x) (char *) x
80 #define wcs_array_make(str, sep, max, trim, quotes) (CHAR_T **) array_make((char *) str, sep, max, trim, quotes)
81 #define wcs_array_join(arr, sep) (CHAR_T *) array_join((char **) arr, sep)
82 #define xwcslcpy(dst, src, size) strlcpy((char *) dst, (char *) src, size)