|
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_MODULE_MAGIC_EXT (.name="utf8_and_gb18030",.version=PG_VERSION) | |
| 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) |
| #define conv18030 | ( | minunicode, | |
| mincode, | |||
| maxcode | |||
| ) |
| #define convutf8 | ( | minunicode, | |
| maxunicode, | |||
| mincode | |||
| ) |
Definition at line 136 of file utf8_and_gb18030.c.
References conv18030.
Referenced by gb18030_to_utf8().
Definition at line 163 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 202 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 35 of file utf8_and_gb18030.c.
| PG_FUNCTION_INFO_V1 | ( | gb18030_to_utf8 | ) |
| PG_FUNCTION_INFO_V1 | ( | utf8_to_gb18030 | ) |
| PG_MODULE_MAGIC_EXT | ( | . | name = "utf8_and_gb18030", |
| . | version = PG_VERSION |
||
| ) |
Definition at line 63 of file utf8_and_gb18030.c.
References word().
| Datum utf8_to_gb18030 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 223 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().
Definition at line 94 of file utf8_and_gb18030.c.
Referenced by conv_utf8_to_18030().