Source
xxxxxxxxxx
74
74
75
75
#if defined(_WINDOWS) || defined(__MINGW32__)
76
76
char *zbx_unicode_to_utf8(const wchar_t *wide_string);
77
77
char *zbx_unicode_to_utf8_static(const wchar_t *wide_string, char *utf8_string, int utf8_size);
78
78
#endif
79
79
80
80
void zbx_strlower(char *str);
81
81
void zbx_strupper(char *str);
82
82
83
83
#if defined(_WINDOWS) || defined(__MINGW32__) || defined(HAVE_ICONV)
84
-
int zbx_convert_to_utf8(char *in, size_t in_size, const char *encoding, char **out, char **error);
84
+
char *zbx_convert_to_utf8(char *in, size_t in_size, const char *encoding, char **error);
85
85
#endif /* HAVE_ICONV */
86
86
87
87
#define ZBX_MAX_BYTES_IN_UTF8_CHAR 4
88
88
size_t zbx_utf8_char_len(const char *text);
89
89
size_t zbx_strlen_utf8(const char *text);
90
90
char *zbx_strshift_utf8(char *text, size_t num);
91
91
size_t zbx_strlen_utf8_nchars(const char *text, size_t utf8_maxlen);
92
92
size_t zbx_charcount_utf8_nbytes(const char *text, size_t maxlen);
93
93
94
94
int zbx_is_utf8(const char *text);