Home
last modified time | relevance | path

Searched refs:string_replace_char (Results 1 – 5 of 5) sorted by relevance

/systemd-251/src/test/
Dtest-string-util.c938 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/
Defi-api.h70 return string_replace_char(s, '\\', '/'); in efi_tilt_backslashes()
/systemd-251/src/basic/
Dstring-util.h237 char *string_replace_char(char *str, char old_char, char new_char);
Dstring-util.c1166 char *string_replace_char(char *str, char old_char, char new_char) { in string_replace_char() function
/systemd-251/src/libsystemd/sd-device/
Dsd-device.c419 string_replace_char(name, '/', '!'); in sd_device_new_from_subsystem_sysname()
1186 string_replace_char(sysname, '!', '/'); in device_set_sysname_and_sysnum()