/*
* Copyright (C) 1995-2008, Index Data ApS
* See the file LICENSE for details.
- *
- * $Id: siconv.c,v 1.50 2008-03-12 08:53:28 adam Exp $
*/
/**
* \file
- * \brief ISO-5428 character mapping (iconv)
+ * \brief Advance Greek encoding and decoding
*/
#if HAVE_CONFIG_H
return x;
}
-size_t yaz_write_advancegreek(yaz_iconv_t cd, unsigned long x,
- char **outbuf, size_t *outbytesleft)
+static size_t write_advancegreek(yaz_iconv_t cd, yaz_iconv_encoder_t w,
+ unsigned long x,
+ char **outbuf, size_t *outbytesleft)
{
size_t k = 0;
unsigned char *out = (unsigned char*) *outbuf;
return 0;
}
+yaz_iconv_encoder_t yaz_advancegreek_encoder(const char *name,
+ yaz_iconv_encoder_t e)
+{
+ if (!yaz_matchstr(name, "advancegreek"))
+ {
+ e->write_handle = write_advancegreek;
+ return e;
+ }
+ return 0;
+}
+
/*
* Local variables:
* c-basic-offset: 4