Searched refs:string_replace_char (Results 1 – 5 of 5) sorted by relevance
/systemd-251/src/test/ |
D | test-string-util.c | 938 TEST(string_replace_char) { in TEST() argument 939 assert_se(streq(string_replace_char(strdupa(""), 'a', 'b'), "")); in TEST() 940 assert_se(streq(string_replace_char(strdupa("abc"), 'a', 'b'), "bbc")); in TEST() 941 assert_se(streq(string_replace_char(strdupa("hoge"), 'a', 'b'), "hoge")); in TEST() 942 assert_se(streq(string_replace_char(strdupa("aaaa"), 'a', 'b'), "bbbb")); in TEST() 943 assert_se(streq(string_replace_char(strdupa("aaaa"), 'a', '\t'), "\t\t\t\t")); in TEST()
|
/systemd-251/src/shared/ |
D | efi-api.h | 70 return string_replace_char(s, '\\', '/'); in efi_tilt_backslashes()
|
/systemd-251/src/basic/ |
D | string-util.h | 237 char *string_replace_char(char *str, char old_char, char new_char);
|
D | string-util.c | 1166 char *string_replace_char(char *str, char old_char, char new_char) { in string_replace_char() function
|
/systemd-251/src/libsystemd/sd-device/ |
D | sd-device.c | 419 string_replace_char(name, '/', '!'); in sd_device_new_from_subsystem_sysname() 1186 string_replace_char(sysname, '!', '/'); in device_set_sysname_and_sysnum()
|