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) |
void | pg_clean_ascii (char *str) |
int | pg_strip_crlf (char *str) |
bool | pg_is_ascii (const char *str) |
char * | pg_get_line (FILE *stream) |
bool | pg_get_line_buf (FILE *stream, struct StringInfoData *buf) |
bool | pg_get_line_append (FILE *stream, struct StringInfoData *buf) |
char * | simple_prompt (const char *prompt, bool echo) |
void pg_clean_ascii | ( | char * | str | ) |
Definition at line 82 of file string.c.
Referenced by check_application_name(), check_cluster_name(), and ProcessStartupPacket().
char* pg_get_line | ( | FILE * | stream | ) |
Definition at line 52 of file pg_get_line.c.
References buf, StringInfoData::data, initStringInfo(), pfree(), and pg_get_line_append().
Referenced by get_su_pwd(), and simple_prompt().
bool pg_get_line_append | ( | FILE * | stream, |
struct StringInfoData * | buf | ||
) |
bool pg_get_line_buf | ( | FILE * | stream, |
struct StringInfoData * | buf | ||
) |
bool pg_is_ascii | ( | const char * | str | ) |
Definition at line 99 of file string.c.
References IS_HIGHBIT_SET.
Referenced by parse_key_value_arrays(), pg_import_system_collations(), and pg_saslprep().
bool pg_str_endswith | ( | const char * | str, |
const char * | end | ||
) |
Definition at line 31 of file string.c.
Referenced by decide_file_action(), ReceiveTarAndUnpackCopyChunk(), and StartupReplicationSlots().
int pg_strip_crlf | ( | char * | str | ) |
Definition at line 121 of file string.c.
Referenced by adjust_data_dir(), CheckDataVersion(), get_prompt(), get_sock_dir(), get_su_pwd(), getRestoreCommand(), passwordFromFile(), run_ssl_passphrase_command(), simple_prompt(), and tokenize_file().
char* simple_prompt | ( | const char * | prompt, |
bool | echo | ||
) |
Definition at line 38 of file sprompt.c.
References _, pg_get_line(), pg_strdup(), and pg_strip_crlf().
Referenced by connectDatabase(), ConnectDatabase(), doConnect(), exec_command_password(), exec_command_prompt(), get_su_pwd(), GetConnection(), main(), prompt_for_password(), sql_conn(), vacuumlo(), and yesno_prompt().
int strtoint | ( | const char *pg_restrict | str, |
char **pg_restrict | endptr, | ||
int | base | ||
) |
Definition at line 50 of file string.c.
References val.
Referenced by buildDefItem(), DecodeDateTime(), DecodeInterval(), DecodeNumber(), DecodeNumberField(), DecodeTime(), DecodeTimeOnly(), DecodeTimezone(), and nodeTokenType().