#include "xttversion.h"
#if 0
static char const * const releaseID =
_XTT_RELEASE_NAME;
#endif
#include "xttcommon.h"
#include "xttcap.h"
#include "xttcconv.h"
#include "xttcconvP.h"
typedef enum
{
ISO8859_6,
ISO8859_6_8,
ISO8859_6_16,
ASMO449_PLUS
} CharSetMagic;
static CharSetRelation const charSetRelations[] = {
{ "iso8859", NULL, "6", ISO8859_6,
{ 0x20, 0xff, 0, 0, 0x20 } },
{ "iso8859", NULL, "6.8x", ISO8859_6_8,
{ 0x20, 0xff, 0, 0, 0x20 } },
{ "iso8859", NULL, "6_8", ISO8859_6_8,
{ 0x20, 0xff, 0, 0, 0x20 } },
{ "iso8859", NULL, "6.16x", ISO8859_6_16,
{ 0x20, 0xff, 0, 0, 0x20 } },
{ "iso8859", NULL, "6_16", ISO8859_6_16,
{ 0x20, 0xff, 0, 0, 0x20 } },
{ "iso8859", NULL, "6_asmo", ASMO449_PLUS,
{ 0x20, 0xff, 0, 0, 0x20 } },
{ "asmo", NULL, "449", ASMO449_PLUS,
{ 0x20, 0xff, 0, 0, 0x20 } },
{ "asmo", NULL, "449+", ASMO449_PLUS,
{ 0x20, 0xff, 0, 0, 0x20 } },
{ NULL, NULL, NULL, 0, { 0, 0, 0, 0, 0 } }
};
CODECONV_TEMPLATE(cc_iso8859_6_to_ucs2);
CODECONV_TEMPLATE(cc_iso8859_6_8_to_ucs2);
CODECONV_TEMPLATE(cc_iso8859_6_16_to_ucs2);
CODECONV_TEMPLATE(cc_asmo449_plus_to_ucs2);
static MapIDRelation const mapIDRelations[] = {
{ ISO8859_6, EPlfmISO, EEncISO10646,
cc_iso8859_6_to_ucs2, NULL },
{ ISO8859_6, EPlfmUnicode, EEncAny,
cc_iso8859_6_to_ucs2, NULL },
{ ISO8859_6, EPlfmMS, EEncMSUnicode,
cc_iso8859_6_to_ucs2, NULL },
{ ISO8859_6_8, EPlfmISO, EEncISO10646,
cc_iso8859_6_8_to_ucs2, NULL },
{ ISO8859_6_8, EPlfmUnicode, EEncAny,
cc_iso8859_6_8_to_ucs2, NULL },
{ ISO8859_6_8, EPlfmMS, EEncMSUnicode,
cc_iso8859_6_8_to_ucs2, NULL },
{ ISO8859_6_16, EPlfmISO, EEncISO10646,
cc_iso8859_6_16_to_ucs2, NULL },
{ ISO8859_6_16, EPlfmUnicode, EEncAny,
cc_iso8859_6_16_to_ucs2, NULL },
{ ISO8859_6_16, EPlfmMS, EEncMSUnicode,
cc_iso8859_6_16_to_ucs2, NULL },
{ ASMO449_PLUS, EPlfmISO, EEncISO10646,
cc_asmo449_plus_to_ucs2, NULL },
{ ASMO449_PLUS, EPlfmUnicode, EEncAny,
cc_asmo449_plus_to_ucs2, NULL },
{ ASMO449_PLUS, EPlfmMS, EEncMSUnicode,
cc_asmo449_plus_to_ucs2, NULL },
{ -1, 0, 0, NULL, NULL }
};
STD_ENTRYFUNC_TEMPLATE(ISO8859_6_entrypoint)