PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "fmgr.h"
#include "mb/pg_wchar.h"
#include "../../Unicode/gb18030_to_utf8.map"
#include "../../Unicode/utf8_to_gb18030.map"
Go to the source code of this file.
Macros | |
#define | conv18030(minunicode, mincode, maxcode) |
#define | convutf8(minunicode, maxunicode, mincode) |
Functions | |
PG_FUNCTION_INFO_V1 (gb18030_to_utf8) | |
PG_FUNCTION_INFO_V1 (utf8_to_gb18030) | |
static uint32 | gb_linear (uint32 gb) |
static uint32 | gb_unlinear (uint32 lin) |
static uint32 | unicode_to_utf8word (uint32 c) |
static uint32 | utf8word_to_unicode (uint32 c) |
static uint32 | conv_18030_to_utf8 (uint32 code) |
static uint32 | conv_utf8_to_18030 (uint32 code) |
Datum | gb18030_to_utf8 (PG_FUNCTION_ARGS) |
Datum | utf8_to_gb18030 (PG_FUNCTION_ARGS) |
Variables | |
PG_MODULE_MAGIC | |
#define conv18030 | ( | minunicode, | |
mincode, | |||
maxcode | |||
) |
#define convutf8 | ( | minunicode, | |
maxunicode, | |||
mincode | |||
) |
Definition at line 128 of file utf8_and_gb18030.c.
References conv18030.
Referenced by gb18030_to_utf8().
Definition at line 155 of file utf8_and_gb18030.c.
References convutf8, and utf8word_to_unicode().
Referenced by utf8_to_gb18030().
Datum gb18030_to_utf8 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 194 of file utf8_and_gb18030.c.
References CHECK_ENCODING_CONVERSION_ARGS, conv_18030_to_utf8(), generate_unaccent_rules::dest, len, LocalToUtf(), PG_GB18030, PG_GETARG_BOOL, PG_GETARG_CSTRING, PG_GETARG_INT32, PG_RETURN_INT32, and PG_UTF8.
Definition at line 32 of file utf8_and_gb18030.c.
PG_FUNCTION_INFO_V1 | ( | gb18030_to_utf8 | ) |
PG_FUNCTION_INFO_V1 | ( | utf8_to_gb18030 | ) |
Definition at line 60 of file utf8_and_gb18030.c.
References word().
Datum utf8_to_gb18030 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 215 of file utf8_and_gb18030.c.
References CHECK_ENCODING_CONVERSION_ARGS, conv_utf8_to_18030(), generate_unaccent_rules::dest, len, PG_GB18030, PG_GETARG_BOOL, PG_GETARG_CSTRING, PG_GETARG_INT32, PG_RETURN_INT32, PG_UTF8, and UtfToLocal().
PG_MODULE_MAGIC |
Definition at line 20 of file utf8_and_gb18030.c.