|
ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
|
🔤 String manipulation utilities: ASCII escaping, trimming, case conversion, and formatting More...
Go to the source code of this file.
Macros | |
| #define | COLORED_BUFFERS 4 |
| #define | COLORED_BUFFER_SIZE 256 |
Functions | |
| void | escape_ascii (const char *str, const char *escape_char, char *out_buffer, size_t out_buffer_size) |
| bool | validate_shell_safe (const char *str, const char *allowed_chars) |
| bool | escape_shell_single_quotes (const char *str, char *out_buffer, size_t out_buffer_size) |
| bool | escape_shell_double_quotes (const char *str, char *out_buffer, size_t out_buffer_size) |
| bool | string_needs_shell_quoting (const char *str) |
| bool | escape_path_for_shell (const char *path, char *out_buffer, size_t out_buffer_size) |
| const char * | colored_string (log_color_t color, const char *text) |
🔤 String manipulation utilities: ASCII escaping, trimming, case conversion, and formatting
Definition in file util/string.c.
| #define COLORED_BUFFER_SIZE 256 |
| #define COLORED_BUFFERS 4 |
| const char * colored_string | ( | log_color_t | color, |
| const char * | text | ||
| ) |
Definition at line 271 of file util/string.c.
References COLORED_BUFFER_SIZE, COLORED_BUFFERS, g_color_flag_passed, g_color_flag_value, log_level_color(), safe_snprintf(), and terminal_should_color_output().
Referenced by action_show_capabilities_immediate(), action_show_version(), asciichat_print_error_context(), colorize_log_message(), log_labeled(), log_template_apply(), options_config_calculate_max_col_width(), options_config_print_options_sections_with_width(), options_config_print_usage(), options_print_help_for_mode(), platform_is_binary_in_path(), platform_print_backtrace_symbols(), print_project_links(), session_display_render_help(), and splash_display_status().
| void escape_ascii | ( | const char * | str, |
| const char * | escape_char, | ||
| char * | out_buffer, | ||
| size_t | out_buffer_size | ||
| ) |
Definition at line 17 of file util/string.c.
Referenced by display_mitm_warning().
| bool escape_path_for_shell | ( | const char * | path, |
| char * | out_buffer, | ||
| size_t | out_buffer_size | ||
| ) |
Definition at line 241 of file util/string.c.
References escape_shell_double_quotes(), escape_shell_single_quotes(), and string_needs_shell_quoting().
Referenced by gpg_sign_with_key().
| bool escape_shell_double_quotes | ( | const char * | str, |
| char * | out_buffer, | ||
| size_t | out_buffer_size | ||
| ) |
Definition at line 171 of file util/string.c.
Referenced by escape_path_for_shell().
| bool escape_shell_single_quotes | ( | const char * | str, |
| char * | out_buffer, | ||
| size_t | out_buffer_size | ||
| ) |
Definition at line 129 of file util/string.c.
Referenced by escape_path_for_shell(), and gpg_get_public_key().
| bool string_needs_shell_quoting | ( | const char * | str | ) |
Definition at line 216 of file util/string.c.
Referenced by escape_path_for_shell().
| bool validate_shell_safe | ( | const char * | str, |
| const char * | allowed_chars | ||
| ) |
Definition at line 59 of file util/string.c.
References utf8_decode(), and utf8_is_valid().
Referenced by gpg_get_public_key().