Searched refs:strspn_from_end (Results 1 – 4 of 4) sorted by relevance
/systemd-251/src/test/ |
D | test-string-util.c | 946 TEST(strspn_from_end) { in TEST() argument 947 assert_se(strspn_from_end(NULL, NULL) == 0); in TEST() 948 assert_se(strspn_from_end("hoge", NULL) == 0); in TEST() 949 assert_se(strspn_from_end(NULL, DIGITS) == 0); in TEST() 950 assert_se(strspn_from_end("", DIGITS) == 0); in TEST() 951 assert_se(strspn_from_end("hoge", DIGITS) == 0); in TEST() 952 assert_se(strspn_from_end("1234", DIGITS) == 4); in TEST() 953 assert_se(strspn_from_end("aaa1234", DIGITS) == 4); in TEST() 954 assert_se(strspn_from_end("aaa1234aaa", DIGITS) == 0); in TEST() 955 assert_se(strspn_from_end("aaa12aa34", DIGITS) == 2); in TEST()
|
/systemd-251/src/basic/ |
D | string-util.h | 239 size_t strspn_from_end(const char *str, const char *accept);
|
D | string-util.c | 1178 size_t strspn_from_end(const char *str, const char *accept) { in strspn_from_end() function
|
/systemd-251/src/libsystemd/sd-device/ |
D | sd-device.c | 1188 n = strspn_from_end(sysname, DIGITS); in device_set_sysname_and_sysnum()
|