37 static int euc_kr2mic(
const unsigned char *euc,
unsigned char *p,
int len,
bool noError);
38 static int mic2euc_kr(
const unsigned char *mic,
unsigned char *p,
int len,
bool noError);
76 euc_kr2mic(
const unsigned char *euc,
unsigned char *p,
int len,
bool noError)
78 const unsigned char *
start = euc;
93 (
const char *) euc,
len);
108 (
const char *) euc,
len);
124 mic2euc_kr(
const unsigned char *mic,
unsigned char *p,
int len,
bool noError)
126 const unsigned char *
start = mic;
141 (
const char *) mic,
len);
154 (
const char *) mic,
len);
166 (
const char *) mic,
len);
#define IS_HIGHBIT_SET(ch)
static int mic2euc_kr(const unsigned char *mic, unsigned char *p, int len, bool noError)
static int euc_kr2mic(const unsigned char *euc, unsigned char *p, int len, bool noError)
PG_FUNCTION_INFO_V1(euc_kr_to_mic)
Datum mic_to_euc_kr(PG_FUNCTION_ARGS)
Datum euc_kr_to_mic(PG_FUNCTION_ARGS)
#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)
int pg_encoding_verifymbchar(int encoding, const char *mbstr, int len)