#include "postgres.h"
#include "fmgr.h"
#include "mb/pg_wchar.h"
Go to the source code of this file.
◆ iso8859_1_to_utf8()
Definition at line 38 of file utf8_and_iso8859_1.c.
44 unsigned char *
start = src;
62 *
dest++ = (
c >> 6) | 0xc0;
#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_invalid_encoding(int encoding, const char *mbstr, int len)
#define CHECK_ENCODING_CONVERSION_ARGS(srcencoding, destencoding)
References CHECK_ENCODING_CONVERSION_ARGS, generate_unaccent_rules::dest, HIGHBIT, IS_HIGHBIT_SET, len, PG_GETARG_BOOL, PG_GETARG_CSTRING, PG_GETARG_INT32, PG_LATIN1, PG_RETURN_INT32, PG_UTF8, report_invalid_encoding(), and start.
◆ PG_FUNCTION_INFO_V1() [1/2]
◆ PG_FUNCTION_INFO_V1() [2/2]
◆ utf8_to_iso8859_1()
Definition at line 74 of file utf8_and_iso8859_1.c.
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);
void report_untranslatable_char(int src_encoding, int dest_encoding, const char *mbstr, int len)
bool pg_utf8_islegal(const unsigned char *source, int length)
References CHECK_ENCODING_CONVERSION_ARGS, generate_unaccent_rules::dest, IS_HIGHBIT_SET, len, PG_GETARG_BOOL, PG_GETARG_CSTRING, PG_GETARG_INT32, PG_LATIN1, PG_RETURN_INT32, PG_UTF8, pg_utf8_islegal(), pg_utf_mblen, report_invalid_encoding(), report_untranslatable_char(), and start.
◆ PG_MODULE_MAGIC