PostgreSQL Source Code git master
|
Go to the source code of this file.
Functions | |
PG_MODULE_MAGIC_EXT (.name="euc_cn_and_mic",.version=PG_VERSION) | |
PG_FUNCTION_INFO_V1 (euc_cn_to_mic) | |
PG_FUNCTION_INFO_V1 (mic_to_euc_cn) | |
static int | euc_cn2mic (const unsigned char *euc, unsigned char *p, int len, bool noError) |
static int | mic2euc_cn (const unsigned char *mic, unsigned char *p, int len, bool noError) |
Datum | euc_cn_to_mic (PG_FUNCTION_ARGS) |
Datum | mic_to_euc_cn (PG_FUNCTION_ARGS) |
|
static |
Definition at line 79 of file euc_cn_and_mic.c.
References IS_HIGHBIT_SET, LC_GB2312_80, len, PG_EUC_CN, report_invalid_encoding(), and start.
Referenced by euc_cn_to_mic().
Datum euc_cn_to_mic | ( | PG_FUNCTION_ARGS | ) |
Definition at line 44 of file euc_cn_and_mic.c.
References CHECK_ENCODING_CONVERSION_ARGS, generate_unaccent_rules::dest, euc_cn2mic(), len, PG_EUC_CN, PG_GETARG_BOOL, PG_GETARG_CSTRING, PG_GETARG_INT32, PG_MULE_INTERNAL, and PG_RETURN_INT32.
|
static |
Definition at line 123 of file euc_cn_and_mic.c.
References IS_HIGHBIT_SET, LC_GB2312_80, len, PG_EUC_CN, PG_MULE_INTERNAL, report_invalid_encoding(), report_untranslatable_char(), and start.
Referenced by mic_to_euc_cn().
Datum mic_to_euc_cn | ( | PG_FUNCTION_ARGS | ) |
Definition at line 60 of file euc_cn_and_mic.c.
References CHECK_ENCODING_CONVERSION_ARGS, generate_unaccent_rules::dest, len, mic2euc_cn(), PG_EUC_CN, PG_GETARG_BOOL, PG_GETARG_CSTRING, PG_GETARG_INT32, PG_MULE_INTERNAL, and PG_RETURN_INT32.
PG_FUNCTION_INFO_V1 | ( | euc_cn_to_mic | ) |
PG_FUNCTION_INFO_V1 | ( | mic_to_euc_cn | ) |
PG_MODULE_MAGIC_EXT | ( | . | name = "euc_cn_and_mic" , |
. | version = PG_VERSION |
||
) |