17 #include "../../Unicode/iso8859_10_to_utf8.map"
18 #include "../../Unicode/iso8859_13_to_utf8.map"
19 #include "../../Unicode/iso8859_14_to_utf8.map"
20 #include "../../Unicode/iso8859_15_to_utf8.map"
21 #include "../../Unicode/iso8859_2_to_utf8.map"
22 #include "../../Unicode/iso8859_3_to_utf8.map"
23 #include "../../Unicode/iso8859_4_to_utf8.map"
24 #include "../../Unicode/iso8859_5_to_utf8.map"
25 #include "../../Unicode/iso8859_6_to_utf8.map"
26 #include "../../Unicode/iso8859_7_to_utf8.map"
27 #include "../../Unicode/iso8859_8_to_utf8.map"
28 #include "../../Unicode/iso8859_9_to_utf8.map"
29 #include "../../Unicode/utf8_to_iso8859_10.map"
30 #include "../../Unicode/utf8_to_iso8859_13.map"
31 #include "../../Unicode/utf8_to_iso8859_14.map"
32 #include "../../Unicode/utf8_to_iso8859_15.map"
33 #include "../../Unicode/utf8_to_iso8859_16.map"
34 #include "../../Unicode/utf8_to_iso8859_2.map"
35 #include "../../Unicode/utf8_to_iso8859_3.map"
36 #include "../../Unicode/utf8_to_iso8859_4.map"
37 #include "../../Unicode/utf8_to_iso8859_5.map"
38 #include "../../Unicode/utf8_to_iso8859_6.map"
39 #include "../../Unicode/utf8_to_iso8859_7.map"
40 #include "../../Unicode/utf8_to_iso8859_8.map"
41 #include "../../Unicode/utf8_to_iso8859_9.map"
42 #include "../../Unicode/iso8859_16_to_utf8.map"
72 &iso8859_2_from_unicode_tree},
74 &iso8859_3_from_unicode_tree},
76 &iso8859_4_from_unicode_tree},
78 &iso8859_9_from_unicode_tree},
80 &iso8859_10_from_unicode_tree},
82 &iso8859_13_from_unicode_tree},
84 &iso8859_14_from_unicode_tree},
86 &iso8859_15_from_unicode_tree},
88 &iso8859_16_from_unicode_tree},
90 &iso8859_5_from_unicode_tree},
92 &iso8859_6_from_unicode_tree},
94 &iso8859_7_from_unicode_tree},
96 &iso8859_8_from_unicode_tree},
128 (
errcode(ERRCODE_INTERNAL_ERROR),
129 errmsg(
"unexpected encoding ID %d for ISO 8859 character sets",
164 (
errcode(ERRCODE_INTERNAL_ERROR),
165 errmsg(
"unexpected encoding ID %d for ISO 8859 character sets",
int UtfToLocal(const unsigned char *utf, int len, unsigned char *iso, const pg_mb_radix_tree *map, const pg_utf_to_local_combined *cmap, int cmapsize, utf_local_conversion_func conv_func, int encoding, bool noError)
int LocalToUtf(const unsigned char *iso, int len, unsigned char *utf, const pg_mb_radix_tree *map, const pg_local_to_utf_combined *cmap, int cmapsize, utf_local_conversion_func conv_func, int encoding, bool noError)
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
#define PG_GETARG_CSTRING(n)
#define PG_RETURN_INT32(x)
#define PG_GETARG_INT32(n)
#define PG_GETARG_BOOL(n)
#define CHECK_ENCODING_CONVERSION_ARGS(srcencoding, destencoding)
const pg_mb_radix_tree * map2
const pg_mb_radix_tree * map1
static const pg_conv_map maps[]
Datum utf8_to_iso8859(PG_FUNCTION_ARGS)
Datum iso8859_to_utf8(PG_FUNCTION_ARGS)
PG_FUNCTION_INFO_V1(iso8859_to_utf8)