PostgreSQL Source Code
git master
|
Go to the source code of this file.
Macros | |
#define | PGSJISALTCODE 0x81ac |
#define | PGEUCALTCODE 0xa2ae |
Functions | |
PG_FUNCTION_INFO_V1 (euc_jp_to_sjis) | |
PG_FUNCTION_INFO_V1 (sjis_to_euc_jp) | |
PG_FUNCTION_INFO_V1 (euc_jp_to_mic) | |
PG_FUNCTION_INFO_V1 (mic_to_euc_jp) | |
PG_FUNCTION_INFO_V1 (sjis_to_mic) | |
PG_FUNCTION_INFO_V1 (mic_to_sjis) | |
static int | sjis2mic (const unsigned char *sjis, unsigned char *p, int len, bool noError) |
static int | mic2sjis (const unsigned char *mic, unsigned char *p, int len, bool noError) |
static int | euc_jp2mic (const unsigned char *euc, unsigned char *p, int len, bool noError) |
static int | mic2euc_jp (const unsigned char *mic, unsigned char *p, int len, bool noError) |
static int | euc_jp2sjis (const unsigned char *euc, unsigned char *p, int len, bool noError) |
static int | sjis2euc_jp (const unsigned char *sjis, unsigned char *p, int len, bool noError) |
Datum | euc_jp_to_sjis (PG_FUNCTION_ARGS) |
Datum | sjis_to_euc_jp (PG_FUNCTION_ARGS) |
Datum | euc_jp_to_mic (PG_FUNCTION_ARGS) |
Datum | mic_to_euc_jp (PG_FUNCTION_ARGS) |
Datum | sjis_to_mic (PG_FUNCTION_ARGS) |
Datum | mic_to_sjis (PG_FUNCTION_ARGS) |
Variables | |
PG_MODULE_MAGIC | |
#define PGEUCALTCODE 0xa2ae |
Definition at line 23 of file euc_jp_and_sjis.c.
#define PGSJISALTCODE 0x81ac |
Definition at line 22 of file euc_jp_and_sjis.c.
|
static |
Definition at line 406 of file euc_jp_and_sjis.c.
References IS_HIGHBIT_SET, LC_JISX0201K, LC_JISX0208, LC_JISX0212, len, pg_encoding_verifymbchar(), PG_EUC_JP, report_invalid_encoding(), SS2, SS3, and start.
Referenced by euc_jp_to_mic().
|
static |
Definition at line 534 of file euc_jp_and_sjis.c.
References i, IS_HIGHBIT_SET, len, pg_encoding_verifymbchar(), PG_EUC_JP, PGSJISALTCODE, report_invalid_encoding(), SS2, SS3, and start.
Referenced by euc_jp_to_sjis().
Datum euc_jp_to_mic | ( | PG_FUNCTION_ARGS | ) |
Definition at line 93 of file euc_jp_and_sjis.c.
References CHECK_ENCODING_CONVERSION_ARGS, generate_unaccent_rules::dest, euc_jp2mic(), len, PG_EUC_JP, PG_GETARG_BOOL, PG_GETARG_CSTRING, PG_GETARG_INT32, PG_MULE_INTERNAL, and PG_RETURN_INT32.
Datum euc_jp_to_sjis | ( | PG_FUNCTION_ARGS | ) |
Definition at line 61 of file euc_jp_and_sjis.c.
References CHECK_ENCODING_CONVERSION_ARGS, generate_unaccent_rules::dest, euc_jp2sjis(), len, PG_EUC_JP, PG_GETARG_BOOL, PG_GETARG_CSTRING, PG_GETARG_INT32, PG_RETURN_INT32, and PG_SJIS.
|
static |
Definition at line 467 of file euc_jp_and_sjis.c.
References IS_HIGHBIT_SET, LC_JISX0201K, LC_JISX0208, LC_JISX0212, len, pg_encoding_verifymbchar(), PG_EUC_JP, PG_MULE_INTERNAL, report_invalid_encoding(), report_untranslatable_char(), SS2, SS3, and start.
Referenced by mic_to_euc_jp().
|
static |
Definition at line 299 of file euc_jp_and_sjis.c.
References i, IS_HIGHBIT_SET, LC_JISX0201K, LC_JISX0208, LC_JISX0212, len, pg_encoding_verifymbchar(), PG_MULE_INTERNAL, PG_SJIS, PGSJISALTCODE, report_invalid_encoding(), report_untranslatable_char(), and start.
Referenced by mic_to_sjis().
Datum mic_to_euc_jp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 109 of file euc_jp_and_sjis.c.
References CHECK_ENCODING_CONVERSION_ARGS, generate_unaccent_rules::dest, len, mic2euc_jp(), PG_EUC_JP, PG_GETARG_BOOL, PG_GETARG_CSTRING, PG_GETARG_INT32, PG_MULE_INTERNAL, and PG_RETURN_INT32.
Datum mic_to_sjis | ( | PG_FUNCTION_ARGS | ) |
Definition at line 141 of file euc_jp_and_sjis.c.
References CHECK_ENCODING_CONVERSION_ARGS, generate_unaccent_rules::dest, len, mic2sjis(), PG_GETARG_BOOL, PG_GETARG_CSTRING, PG_GETARG_INT32, PG_MULE_INTERNAL, PG_RETURN_INT32, and PG_SJIS.
PG_FUNCTION_INFO_V1 | ( | euc_jp_to_mic | ) |
PG_FUNCTION_INFO_V1 | ( | euc_jp_to_sjis | ) |
PG_FUNCTION_INFO_V1 | ( | mic_to_euc_jp | ) |
PG_FUNCTION_INFO_V1 | ( | mic_to_sjis | ) |
PG_FUNCTION_INFO_V1 | ( | sjis_to_euc_jp | ) |
PG_FUNCTION_INFO_V1 | ( | sjis_to_mic | ) |
|
static |
Definition at line 638 of file euc_jp_and_sjis.c.
References i, IS_HIGHBIT_SET, len, pg_encoding_verifymbchar(), PG_SJIS, PGEUCALTCODE, report_invalid_encoding(), SS2, SS3, and start.
Referenced by sjis_to_euc_jp().
|
static |
Definition at line 160 of file euc_jp_and_sjis.c.
References i, IS_HIGHBIT_SET, ISSJISHEAD, ISSJISTAIL, LC_JISX0201K, LC_JISX0208, LC_JISX0212, len, PG_SJIS, PGEUCALTCODE, report_invalid_encoding(), and start.
Referenced by sjis_to_mic().
Datum sjis_to_euc_jp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 77 of file euc_jp_and_sjis.c.
References CHECK_ENCODING_CONVERSION_ARGS, generate_unaccent_rules::dest, len, PG_EUC_JP, PG_GETARG_BOOL, PG_GETARG_CSTRING, PG_GETARG_INT32, PG_RETURN_INT32, PG_SJIS, and sjis2euc_jp().
Datum sjis_to_mic | ( | PG_FUNCTION_ARGS | ) |
Definition at line 125 of file euc_jp_and_sjis.c.
References CHECK_ENCODING_CONVERSION_ARGS, generate_unaccent_rules::dest, len, PG_GETARG_BOOL, PG_GETARG_CSTRING, PG_GETARG_INT32, PG_MULE_INTERNAL, PG_RETURN_INT32, PG_SJIS, and sjis2mic().
PG_MODULE_MAGIC |
Definition at line 30 of file euc_jp_and_sjis.c.