![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <assert.h>#include <ctype.h>#include <stdint.h>#include <signal.h>#include <string.h>#include <unistd.h>#include "debug.h"
Go to the source code of this file.
Functions | |
| bool | ends_with (const char *haystick, const char *needle) |
| bool | is_prefix_of (const char *haystack, const char *needle) |
| void | replace_all (char *in, const char *from, const char *to) |
| Replaces all occurencies of 'from' to 'to' in string 'in'. | |
| char * | strrpbrk (char *s, const char *accept) |
| same as strpbrk but finds in a reverse order (last occurence returned) | |
Definition in file string.c.
| 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().
| 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().
| 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().