17 #include "../../Unicode/utf8_to_win1250.map"
18 #include "../../Unicode/utf8_to_win1251.map"
19 #include "../../Unicode/utf8_to_win1252.map"
20 #include "../../Unicode/utf8_to_win1253.map"
21 #include "../../Unicode/utf8_to_win1254.map"
22 #include "../../Unicode/utf8_to_win1255.map"
23 #include "../../Unicode/utf8_to_win1256.map"
24 #include "../../Unicode/utf8_to_win1257.map"
25 #include "../../Unicode/utf8_to_win1258.map"
26 #include "../../Unicode/utf8_to_win866.map"
27 #include "../../Unicode/utf8_to_win874.map"
28 #include "../../Unicode/win1250_to_utf8.map"
29 #include "../../Unicode/win1251_to_utf8.map"
30 #include "../../Unicode/win1252_to_utf8.map"
31 #include "../../Unicode/win1253_to_utf8.map"
32 #include "../../Unicode/win1254_to_utf8.map"
33 #include "../../Unicode/win1255_to_utf8.map"
34 #include "../../Unicode/win1256_to_utf8.map"
35 #include "../../Unicode/win1257_to_utf8.map"
36 #include "../../Unicode/win866_to_utf8.map"
37 #include "../../Unicode/win874_to_utf8.map"
38 #include "../../Unicode/win1258_to_utf8.map"
67 {
PG_WIN866, &win866_to_unicode_tree, &win866_from_unicode_tree},
68 {
PG_WIN874, &win874_to_unicode_tree, &win874_from_unicode_tree},
69 {
PG_WIN1250, &win1250_to_unicode_tree, &win1250_from_unicode_tree},
70 {
PG_WIN1251, &win1251_to_unicode_tree, &win1251_from_unicode_tree},
71 {
PG_WIN1252, &win1252_to_unicode_tree, &win1252_from_unicode_tree},
72 {
PG_WIN1253, &win1253_to_unicode_tree, &win1253_from_unicode_tree},
73 {
PG_WIN1254, &win1254_to_unicode_tree, &win1254_from_unicode_tree},
74 {
PG_WIN1255, &win1255_to_unicode_tree, &win1255_from_unicode_tree},
75 {
PG_WIN1256, &win1256_to_unicode_tree, &win1256_from_unicode_tree},
76 {
PG_WIN1257, &win1257_to_unicode_tree, &win1257_from_unicode_tree},
77 {
PG_WIN1258, &win1258_to_unicode_tree, &win1258_from_unicode_tree},
109 (
errcode(ERRCODE_INTERNAL_ERROR),
110 errmsg(
"unexpected encoding ID %d for WIN character sets",
145 (
errcode(ERRCODE_INTERNAL_ERROR),
146 errmsg(
"unexpected encoding ID %d for WIN 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)
Datum utf8_to_win(PG_FUNCTION_ARGS)
static const pg_conv_map maps[]
PG_FUNCTION_INFO_V1(win_to_utf8)
Datum win_to_utf8(PG_FUNCTION_ARGS)