Home
last modified time | relevance | path

Searched refs:streq_skip_trailing_chars (Results 1 – 4 of 4) sorted by relevance

/systemd-251/src/test/
Dtest-string-util.c958 TEST(streq_skip_trailing_chars) { in TEST() argument
960 assert_se(streq_skip_trailing_chars("foo bar", "foo bar", NULL)); in TEST()
961 assert_se(streq_skip_trailing_chars("foo", "foo", NULL)); in TEST()
962 assert_se(streq_skip_trailing_chars("foo bar ", "foo bar", NULL)); in TEST()
963 assert_se(streq_skip_trailing_chars("foo bar", "foo bar\t\t", NULL)); in TEST()
964 assert_se(streq_skip_trailing_chars("foo bar ", "foo bar\t\t", NULL)); in TEST()
965 assert_se(streq_skip_trailing_chars("foo\nbar", "foo\nbar", NULL)); in TEST()
966 assert_se(streq_skip_trailing_chars("\t\tfoo bar", "\t\tfoo bar", NULL)); in TEST()
967 assert_se(streq_skip_trailing_chars(" foo bar\t", " foo bar\n", NULL)); in TEST()
969 assert_se(!streq_skip_trailing_chars("foobar", "foo bar", NULL)); in TEST()
[all …]
/systemd-251/src/basic/
Dstring-util.h235 bool streq_skip_trailing_chars(const char *s1, const char *s2, const char *ok);
Dstring-util.c1150 bool streq_skip_trailing_chars(const char *s1, const char *s2, const char *ok) { in streq_skip_trailing_chars() function
Dfileio.c168 streq_skip_trailing_chars(line, t, NEWLINE)) { in write_string_stream_ts()