27 #include <unicode/ustring.h>
28 #include <unicode/uchar.h>
39 buf16->
utf16 = (UChar *)
xmalloc(
sizeof(UChar) * capacity);
40 buf16->
utf16[0] = (UChar) 0;
51 buf16->
utf16[0] = (UChar) 0;
62 if (0 == buf16->
utf16)
63 buf16->
utf16 = (UChar *)
xmalloc(
sizeof(UChar) * capacity);
76 if (!dest16 || !src16 || dest16 == src16)
121 UErrorCode status = U_ZERO_ERROR;
Internal header for ICU utilities.
struct icu_buf_utf16 * icu_buf_utf16_copy(struct icu_buf_utf16 *dest16, const struct icu_buf_utf16 *src16)
void icu_buf_utf8_destroy(struct icu_buf_utf8 *buf8)
struct icu_buf_utf16 * icu_buf_utf16_clear(struct icu_buf_utf16 *buf16)
struct icu_buf_utf16 * icu_buf_utf16_append(struct icu_buf_utf16 *dest16, const struct icu_buf_utf16 *src16)
void icu_buf_utf16_destroy(struct icu_buf_utf16 *buf16)
void icu_buf_utf16_log(const char *lead, struct icu_buf_utf16 *src16)
struct icu_buf_utf8 * icu_buf_utf8_create(size_t capacity)
struct icu_buf_utf16 * icu_buf_utf16_create(size_t capacity)
struct icu_buf_utf16 * icu_buf_utf16_resize(struct icu_buf_utf16 *buf16, size_t capacity)
UErrorCode icu_utf16_to_utf8(struct icu_buf_utf8 *dest8, const struct icu_buf_utf16 *src16, UErrorCode *status)
void yaz_log(int level, const char *fmt,...)
Writes log message.
#define YLOG_LOG
log level: log (regular)
Header for memory handling functions.
#define xfree(x)
utility macro which calls xfree_f
#define xrealloc(o, x)
utility macro which calls xrealloc_f
#define xmalloc(x)
utility macro which calls malloc_f