44 unsigned char *
start = src;
62 *
dest++ = (
c >> 6) | 0xc0;
80 unsigned char *
start = src;
117 (
const char *) src,
len);
120 c = ((
c & 0x1f) << 6) | c1;
121 if (
c >= 0x80 &&
c <= 0xff)
123 *
dest++ = (
unsigned char)
c;
132 (
const char *) src,
len);
#define IS_HIGHBIT_SET(ch)
#define PG_GETARG_CSTRING(n)
#define PG_RETURN_INT32(x)
#define PG_GETARG_INT32(n)
#define PG_GETARG_BOOL(n)
void report_untranslatable_char(int src_encoding, int dest_encoding, const char *mbstr, int len)
void report_invalid_encoding(int encoding, const char *mbstr, int len)
#define CHECK_ENCODING_CONVERSION_ARGS(srcencoding, destencoding)
Datum utf8_to_iso8859_1(PG_FUNCTION_ARGS)
PG_FUNCTION_INFO_V1(iso8859_1_to_utf8)
Datum iso8859_1_to_utf8(PG_FUNCTION_ARGS)
bool pg_utf8_islegal(const unsigned char *source, int length)