Home
last modified time | relevance | path

Searched refs:DIGITS (Results 1 – 23 of 23) sorted by relevance

/systemd-251/src/basic/
Dstring-util.h18 #define DIGITS "0123456789" macro
22 #define ALPHANUMERICAL LETTERS DIGITS
23 #define HEXDIGITS DIGITS "abcdefABCDEF"
24 #define LOWERCASE_HEXDIGITS DIGITS "abcdef"
Dprocfs-util.c110 n = strspn(p, DIGITS); in procfs_tasks_get_current()
195 n = strspn(digits, DIGITS); in convert_meminfo_value_to_uint64_bytes()
Dlogin-util.c11 return id[strspn(id, LETTERS DIGITS)] == '\0'; in session_id_valid()
Ddevnum-util.c18 n = strspn(s, DIGITS); in parse_devnum()
Dtime-util.c1055 p += strspn(p, DIGITS); in parse_time()
1230 p += strspn(p, DIGITS); in parse_nsec()
Dparse-util.c621 s += strspn(s, DIGITS); in parse_fractional_part_u()
Dunit-name.c25 DIGITS \
Denv-util.c25 DIGITS LETTERS \
Dcgroup-util.c1586 DIGITS LETTERS \
/systemd-251/src/test/
Dtest-string-util.c949 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()
Dtest-ellipsize.c109 test_ellipsize_one(DIGITS LETTERS DIGITS LETTERS); in TEST()
/systemd-251/src/boot/
Dbless-boot.c165 k = strspn(e, DIGITS); in parse_counter()
181 k = strspn(e, DIGITS); in parse_counter()
/systemd-251/src/shared/
Dserialize.c155 pos += strspn(value + pos, DIGITS); in deserialize_dual_timestamp()
Ddissect-image.c219 need_p = strchr(DIGITS, whole_devname[strlen(whole_devname)-1]); /* Last char a digit? */ in make_partition_devname()
/systemd-251/src/backlight/
Dbacklight.c74 c += strspn(c, DIGITS); in find_pci_or_platform_parent()
/systemd-251/src/libsystemd/sd-device/
Dtest-sd-device.c173 assert_se(in_charset(val, DIGITS)); in test_sd_device_one()
Dsd-device.c1188 n = strspn_from_end(sysname, DIGITS); in device_set_sysname_and_sysnum()
/systemd-251/src/network/
Dnetworkd-route-util.c496 if (in_charset(name, DIGITS)) { in config_parse_route_table_names()
/systemd-251/src/udev/
Dudev-builtin-net_id.c573 validchars = UPPERCASE_LETTERS DIGITS; in names_platform()
/systemd-251/src/hostname/
Dhostnamed.c42 #define VALID_DEPLOYMENT_CHARS (DIGITS LETTERS "-.:")
/systemd-251/src/portable/
Dportablectl.c149 if (!in_charset(name, DIGITS LETTERS "-.")) in extract_prefix()
/systemd-251/src/resolve/
Dresolved-manager.c1172 if (!strchr(DIGITS, p[-1])) in manager_next_random_name()
/systemd-251/src/nspawn/
Dnspawn.c1223 else if (!in_charset(optarg, DIGITS)) in parse_argv()