+yaz_iconv_encoder_t yaz_ucs4_encoder(const char *tocode,
+ yaz_iconv_encoder_t e)
+
+{
+ if (!yaz_matchstr(tocode, "UCS4"))
+ e->write_handle = write_UCS4;
+ else if (!yaz_matchstr(tocode, "UCS4LE"))
+ e->write_handle = write_UCS4LE;
+ else
+ return 0;
+ return e;
+}
+
+yaz_iconv_decoder_t yaz_ucs4_decoder(const char *tocode,
+ yaz_iconv_decoder_t d)
+
+{
+ if (!yaz_matchstr(tocode, "UCS4"))
+ d->read_handle = read_UCS4;
+ else if (!yaz_matchstr(tocode, "UCS4LE"))
+ d->read_handle = read_UCS4LE;
+ else
+ return 0;
+ return d;
+}
+
+