+void icu_buf_utf16_log(const char *lead, struct icu_buf_utf16 *src16)
+{
+ if (src16)
+ {
+ struct icu_buf_utf8 *dst8 = icu_buf_utf8_create(0);
+ UErrorCode status = U_ZERO_ERROR;
+ icu_utf16_to_utf8(dst8, src16, &status);
+ yaz_log(YLOG_LOG, "%s=%s", lead, dst8->utf8);
+ icu_buf_utf8_destroy(dst8);
+ }
+ else
+ {
+ yaz_log(YLOG_LOG, "%s=NULL", lead);
+ }
+}