Home
last modified time | relevance | path

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

/systemd-251/src/test/
Dtest-string-util.c90 TEST(ascii_strcasecmp_n) { in TEST() argument
91 assert_se(ascii_strcasecmp_n("", "", 0) == 0); in TEST()
92 assert_se(ascii_strcasecmp_n("", "", 1) == 0); in TEST()
93 assert_se(ascii_strcasecmp_n("", "a", 1) < 0); in TEST()
94 assert_se(ascii_strcasecmp_n("", "a", 2) < 0); in TEST()
95 assert_se(ascii_strcasecmp_n("a", "", 1) > 0); in TEST()
96 assert_se(ascii_strcasecmp_n("a", "", 2) > 0); in TEST()
97 assert_se(ascii_strcasecmp_n("a", "a", 1) == 0); in TEST()
98 assert_se(ascii_strcasecmp_n("a", "a", 2) == 0); in TEST()
99 assert_se(ascii_strcasecmp_n("a", "b", 1) < 0); in TEST()
[all …]
/systemd-251/src/shared/
Ddns-domain.c558 if (ascii_strcasecmp_n(la, lb, r) != 0) in dns_name_equal()
592 if (r != q || ascii_strcasecmp_n(ln, ls, r) != 0) { in dns_name_endswith()
626 if (ascii_strcasecmp_n(ln, lp, r) != 0) in dns_name_startswith()
667 if (r != q || ascii_strcasecmp_n(ln, ls, r) != 0) { in dns_name_change_suffix()
1258 if (r != q || ascii_strcasecmp_n(la, lb, r) != 0) { in dns_name_common_suffix()
/systemd-251/src/basic/
Dstring-util.h126 int ascii_strcasecmp_n(const char *a, const char *b, size_t n);
Dstring-util.c223 int ascii_strcasecmp_n(const char *a, const char *b, size_t n) { in ascii_strcasecmp_n() function
241 r = ascii_strcasecmp_n(a, b, MIN(n, m)); in ascii_strcasecmp_nn()