PostgreSQL Source Code
git master
|
Go to the source code of this file.
Functions | |
bool | pg_str_endswith (const char *str, const char *end) |
int | strtoint (const char *pg_restrict str, char **pg_restrict endptr, int base) |
char * | pg_clean_ascii (const char *str, int alloc_flags) |
bool | pg_is_ascii (const char *str) |
int | pg_strip_crlf (char *str) |
char* pg_clean_ascii | ( | const char * | str, |
int | alloc_flags | ||
) |
Definition at line 86 of file string.c.
References Assert, i, malloc, palloc_extended(), snprintf, and str.
Referenced by check_application_name(), check_cluster_name(), prepare_cert_name(), and ProcessStartupPacket().
bool pg_is_ascii | ( | const char * | str | ) |
Definition at line 133 of file string.c.
References IS_HIGHBIT_SET, and str.
Referenced by check_locale(), check_locale_name(), parse_key_value_arrays(), pg_import_system_collations(), and pg_saslprep().
bool pg_str_endswith | ( | const char * | str, |
const char * | end | ||
) |
Definition at line 32 of file string.c.
References str.
Referenced by decide_file_action(), and StartupReplicationSlots().
int pg_strip_crlf | ( | char * | str | ) |
Definition at line 155 of file string.c.
Referenced by adjust_data_dir(), check_exec(), CheckDataVersion(), get_control_data(), get_prompt(), get_sock_dir(), get_su_pwd(), getRestoreCommand(), passwordFromFile(), run_ssl_passphrase_command(), simple_prompt_extended(), and tokenize_auth_file().
int strtoint | ( | const char *pg_restrict | str, |
char **pg_restrict | endptr, | ||
int | base | ||
) |
Definition at line 51 of file string.c.
Referenced by buildDefItem(), DecodeDateTime(), DecodeInterval(), DecodeNumber(), DecodeNumberField(), DecodeTime(), DecodeTimeCommon(), DecodeTimeOnly(), DecodeTimezone(), exec_command_watch(), get_path_all(), jsonb_get_element(), nodeTokenType(), option_parse_int(), push_path(), and setPathArray().