PostgreSQL Source Code
git master
|
Go to the source code of this file.
Data Structures | |
struct | pg_encname |
Macros | |
#define | DEF_ENC2NAME(name, codepage) { #name, PG_##name } |
Typedefs | |
typedef struct pg_encname | pg_encname |
Functions | |
StaticAssertDecl (lengthof(pg_enc2icu_tbl)==PG_ENCODING_BE_LAST+1, "pg_enc2icu_tbl incomplete") | |
bool | is_encoding_supported_by_icu (int encoding) |
const char * | get_encoding_name_for_icu (int encoding) |
int | pg_valid_client_encoding (const char *name) |
int | pg_valid_server_encoding (const char *name) |
int | pg_valid_server_encoding_id (int encoding) |
static char * | clean_encoding_name (const char *key, char *newkey) |
int | pg_char_to_encoding (const char *name) |
const char * | pg_encoding_to_char (int encoding) |
Variables | |
static const pg_encname | pg_encname_tbl [] |
const pg_enc2name | pg_enc2name_tbl [] |
const char * | pg_enc2gettext_tbl [] |
static const char *const | pg_enc2icu_tbl [] |
Definition at line 303 of file encnames.c.
typedef struct pg_encname pg_encname |
|
static |
Definition at line 524 of file encnames.c.
References sort-test::key.
Referenced by pg_char_to_encoding().
const char* get_encoding_name_for_icu | ( | int | encoding | ) |
Definition at line 472 of file encnames.c.
References encoding, pg_enc2icu_tbl, and PG_VALID_BE_ENCODING.
bool is_encoding_supported_by_icu | ( | int | encoding | ) |
Definition at line 461 of file encnames.c.
References encoding, pg_enc2icu_tbl, and PG_VALID_BE_ENCODING.
Referenced by check_icu_locale_encoding(), createdb(), DefineCollation(), and lookup_collation().
int pg_char_to_encoding | ( | const char * | name | ) |
Definition at line 549 of file encnames.c.
References clean_encoding_name(), sort-test::key, lengthof, name, NAMEDATALEN, and pg_encname_tbl.
Referenced by pg_valid_client_encoding(), and pg_valid_server_encoding().
const char* pg_encoding_to_char | ( | int | encoding | ) |
Definition at line 587 of file encnames.c.
References Assert, encoding, pg_enc2name::encoding, pg_enc2name::name, pg_enc2name_tbl, and PG_VALID_ENCODING.
int pg_valid_client_encoding | ( | const char * | name | ) |
Definition at line 485 of file encnames.c.
References enc, name, pg_char_to_encoding(), and PG_VALID_FE_ENCODING.
Referenced by check_client_encoding().
int pg_valid_server_encoding | ( | const char * | name | ) |
Definition at line 499 of file encnames.c.
References enc, name, pg_char_to_encoding(), and PG_VALID_BE_ENCODING.
int pg_valid_server_encoding_id | ( | int | encoding | ) |
Definition at line 513 of file encnames.c.
References encoding, and PG_VALID_BE_ENCODING.
StaticAssertDecl | ( | lengthof(pg_enc2icu_tbl) | = =PG_ENCODING_BE_LAST+1 , |
"pg_enc2icu_tbl incomplete" | |||
) |
const char* pg_enc2gettext_tbl[] |
Definition at line 360 of file encnames.c.
|
static |
Definition at line 414 of file encnames.c.
Referenced by get_encoding_name_for_icu(), and is_encoding_supported_by_icu().
const pg_enc2name pg_enc2name_tbl[] |
Definition at line 308 of file encnames.c.
Referenced by check_encoding_conversion_args(), InitializeClientEncoding(), pg_any_to_server(), pg_encoding_to_char(), pg_unicode_to_server(), report_invalid_encoding(), report_untranslatable_char(), SetClientEncoding(), SetDatabaseEncoding(), and SetMessageEncoding().
|
static |
Definition at line 39 of file encnames.c.
Referenced by pg_char_to_encoding().