#include "postgres.h"#include "fmgr.h"#include "mb/pg_wchar.h"
Go to the source code of this file.
Functions | |
| PG_FUNCTION_INFO_V1 (ascii_to_mic) | |
| PG_FUNCTION_INFO_V1 (mic_to_ascii) | |
| Datum | ascii_to_mic (PG_FUNCTION_ARGS) |
| Datum | mic_to_ascii (PG_FUNCTION_ARGS) |
Variables | |
| PG_MODULE_MAGIC | |
| Datum ascii_to_mic | ( | PG_FUNCTION_ARGS | ) |
Definition at line 38 of file ascii_and_mic.c.
References CHECK_ENCODING_CONVERSION_ARGS, pg_ascii2mic(), PG_GETARG_CSTRING, PG_GETARG_INT32, PG_MULE_INTERNAL, PG_RETURN_VOID, and PG_SQL_ASCII.
{
unsigned char *src = (unsigned char *) PG_GETARG_CSTRING(2);
unsigned char *dest = (unsigned char *) PG_GETARG_CSTRING(3);
int len = PG_GETARG_INT32(4);
CHECK_ENCODING_CONVERSION_ARGS(PG_SQL_ASCII, PG_MULE_INTERNAL);
pg_ascii2mic(src, dest, len);
PG_RETURN_VOID();
}
| Datum mic_to_ascii | ( | PG_FUNCTION_ARGS | ) |
Definition at line 52 of file ascii_and_mic.c.
References CHECK_ENCODING_CONVERSION_ARGS, PG_GETARG_CSTRING, PG_GETARG_INT32, pg_mic2ascii(), PG_MULE_INTERNAL, PG_RETURN_VOID, and PG_SQL_ASCII.
{
unsigned char *src = (unsigned char *) PG_GETARG_CSTRING(2);
unsigned char *dest = (unsigned char *) PG_GETARG_CSTRING(3);
int len = PG_GETARG_INT32(4);
CHECK_ENCODING_CONVERSION_ARGS(PG_MULE_INTERNAL, PG_SQL_ASCII);
pg_mic2ascii(src, dest, len);
PG_RETURN_VOID();
}
| PG_FUNCTION_INFO_V1 | ( | ascii_to_mic | ) |
| PG_FUNCTION_INFO_V1 | ( | mic_to_ascii | ) |
Definition at line 18 of file ascii_and_mic.c.
1.7.1