|
PostgreSQL Source Code git master
|

Go to the source code of this file.
Macros | |
| #define | PGSJISALTCODE 0x81ac |
| #define | PGEUCALTCODE 0xa2ae |
Functions | |
| PG_MODULE_MAGIC_EXT (.name="euc_jp_and_sjis",.version=PG_VERSION) | |
| PG_FUNCTION_INFO_V1 (euc_jp_to_sjis) | |
| PG_FUNCTION_INFO_V1 (sjis_to_euc_jp) | |
| 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) |
| #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 91 of file euc_jp_and_sjis.c.
References fb(), 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_sjis | ( | PG_FUNCTION_ARGS | ) |
Definition at line 56 of file euc_jp_and_sjis.c.
References CHECK_ENCODING_CONVERSION_ARGS, euc_jp2sjis(), fb(), len, PG_EUC_JP, PG_GETARG_BOOL, PG_GETARG_CSTRING, PG_GETARG_INT32, PG_RETURN_INT32, and PG_SJIS.
| PG_FUNCTION_INFO_V1 | ( | euc_jp_to_sjis | ) |
| PG_FUNCTION_INFO_V1 | ( | sjis_to_euc_jp | ) |
| PG_MODULE_MAGIC_EXT | ( | . | name = "euc_jp_and_sjis", |
| . | version = PG_VERSION |
||
| ) |
|
static |
Definition at line 195 of file euc_jp_and_sjis.c.
References fb(), i, IS_HIGHBIT_SET, len, pg_encoding_verifymbchar(), PG_SJIS, PGEUCALTCODE, report_invalid_encoding(), SS2, SS3, and start.
Referenced by sjis_to_euc_jp().
| Datum sjis_to_euc_jp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 72 of file euc_jp_and_sjis.c.
References CHECK_ENCODING_CONVERSION_ARGS, fb(), len, PG_EUC_JP, PG_GETARG_BOOL, PG_GETARG_CSTRING, PG_GETARG_INT32, PG_RETURN_INT32, PG_SJIS, and sjis2euc_jp().