![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <cstddef>
Go to the source code of this file.
Macros | |
| #define | DELDEL "\177\177" |
| #define | ESCAPED_COLON "\\:" |
Functions | |
| void | append_sig_desc (char **ptr, const char *ptr_end, int signum) |
| bool | ends_with (const char *haystick, const char *needle) |
| bool | is_prefix_of (const char *haystack, const char *needle) |
| const char * | pretty_print_fourcc (const void *fcc) |
| void | replace_all (char *in, const char *from, const char *to) |
| Replaces all occurencies of 'from' to 'to' in string 'in'. | |
| void | strappend (char **ptr, const char *ptr_end, const char *src) |
| char * | strrpbrk (char *s, const char *accept) |
| same as strpbrk but finds in a reverse order (last occurence returned) | |
| void | write_all (int fd, size_t len, const char *msg) |
Definition in file string.h.
| #define DELDEL "\177\177" |
Definition at line 50 of file string.h.
Referenced by misc_test_replace_all(), and text_init().
| #define ESCAPED_COLON "\\:" |
Definition at line 51 of file string.h.
Referenced by misc_test_replace_all(), and text_init().
| void append_sig_desc | ( | char ** | ptr, |
| const char * | ptr_end, | ||
| int | signum ) |
Referenced by crash_signal_handler(), and signal_handler().
| bool ends_with | ( | const char * | haystick, |
| const char * | needle ) |
Definition at line 109 of file string.c.
Referenced by testcard_load_from_file().
| bool is_prefix_of | ( | const char * | haystack, |
| const char * | needle ) |
Checks if needle is prefix in haystack, case insensitive.
Definition at line 91 of file string.c.
Referenced by settings_init().
| const char * pretty_print_fourcc | ( | const void * | fcc | ) |
Referenced by GetSubtypeName().
| void replace_all | ( | char * | in, |
| const char * | from, | ||
| const char * | to ) |
Replaces all occurencies of 'from' to 'to' in string 'in'.
Typical use case is to process escaped colon in arguments:
Definition at line 71 of file string.c.
References len.
Referenced by misc_test_replace_all(), and text_init().
| void strappend | ( | char ** | ptr, |
| const char * | ptr_end, | ||
| const char * | src ) |
| char * strrpbrk | ( | char * | s, |
| const char * | accept ) |
same as strpbrk but finds in a reverse order (last occurence returned)
Definition at line 95 of file string.c.
Referenced by get_install_root().
| void write_all | ( | int | fd, |
| size_t | len, | ||
| const char * | msg ) |