Home
last modified time | relevance | path

Searched refs:parse_permille_unbounded (Results 1 – 3 of 3) sorted by relevance

/systemd-251/src/test/
Dtest-percent-util.c70 TEST(parse_permille_unbounded) { in TEST() argument
71 assert_se(parse_permille_unbounded("1001‰") == 1001); in TEST()
72 assert_se(parse_permille_unbounded("4000‰") == 4000); in TEST()
73 assert_se(parse_permille_unbounded("2147483647‰") == 2147483647); in TEST()
74 assert_se(parse_permille_unbounded("2147483648‰") == -ERANGE); in TEST()
75 assert_se(parse_permille_unbounded("4294967295‰") == -ERANGE); in TEST()
76 assert_se(parse_permille_unbounded("4294967296‰") == -ERANGE); in TEST()
78 assert_se(parse_permille_unbounded("101%") == 1010); in TEST()
79 assert_se(parse_permille_unbounded("400%") == 4000); in TEST()
80 assert_se(parse_permille_unbounded("214748364.7%") == 2147483647); in TEST()
[all …]
/systemd-251/src/basic/
Dpercent-util.c115 int parse_permille_unbounded(const char *p) { in parse_permille_unbounded() function
128 v = parse_permille_unbounded(p); in parse_permille()
Dpercent-util.h12 int parse_permille_unbounded(const char *p);