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 pg_enc2gettext | pg_enc2gettext_tbl [] |
static const char *const | pg_enc2icu_tbl [] |
Definition at line 304 of file encnames.c.
typedef struct pg_encname pg_encname |
|
static |
Definition at line 525 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 473 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 462 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 550 of file encnames.c.
References clean_encoding_name(), sort-test::key, lengthof, name, NAMEDATALEN, and pg_encname_tbl.
Referenced by CreateConversionCommand(), length_in_encoding(), main(), PG_char_to_encoding(), pg_convert(), pg_get_utf8_id(), pg_valid_client_encoding(), pg_valid_server_encoding(), PQenv2encoding(), pqSaveParameterStatus(), ProcessCopyOptions(), processEncodingEntry(), test_enc_conversion(), and to_ascii_encname().
const char* pg_encoding_to_char | ( | int | encoding | ) |
Definition at line 588 of file encnames.c.
References Assert(), encoding, pg_enc2name::encoding, pg_enc2name::name, pg_enc2name_tbl, and PG_VALID_ENCODING.
Referenced by _doSetFixedOutputState(), check_client_encoding(), check_encoding_locale_matches(), check_icu_locale_encoding(), check_locale_encoding(), CollationCreate(), connectOptions2(), ConversionCreate(), createdb(), dumpEncoding(), exec_command_encoding(), main(), pg_do_encoding_conversion(), PG_encoding_to_char(), pg_to_ascii(), PQsetClientEncoding(), SendQuery(), setup_locale_encoding(), setupDumpWorker(), SyncVariables(), and test_enc_conversion().
int pg_valid_client_encoding | ( | const char * | name | ) |
Definition at line 486 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 500 of file encnames.c.
References enc, name, pg_char_to_encoding(), and PG_VALID_BE_ENCODING.
Referenced by createdb(), get_encoding_id(), and parse_extension_control_file().
int pg_valid_server_encoding_id | ( | int | encoding | ) |
Definition at line 514 of file encnames.c.
References encoding, and PG_VALID_BE_ENCODING.
Referenced by setup_locale_encoding().
StaticAssertDecl | ( | lengthof(pg_enc2icu_tbl) | = =PG_ENCODING_BE_LAST+1 , |
"pg_enc2icu_tbl incomplete" | |||
) |
const pg_enc2gettext pg_enc2gettext_tbl[] |
Definition at line 361 of file encnames.c.
|
static |
Definition at line 415 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 309 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().