Searched refs:utf8_encoded_valid_unichar (Results 1 – 9 of 9) sorted by relevance
/systemd-251/src/test/ |
D | test-utf8.c | 84 TEST(utf8_encoded_valid_unichar) { in TEST() argument 85 assert_se(utf8_encoded_valid_unichar("\342\204\242", 1) == -EINVAL); /* truncated */ in TEST() 86 assert_se(utf8_encoded_valid_unichar("\342\204\242", 2) == -EINVAL); /* truncated */ in TEST() 87 assert_se(utf8_encoded_valid_unichar("\342\204\242", 3) == 3); in TEST() 88 assert_se(utf8_encoded_valid_unichar("\342\204\242", 4) == 3); in TEST() 89 assert_se(utf8_encoded_valid_unichar("\302\256", 1) == -EINVAL); /* truncated */ in TEST() 90 assert_se(utf8_encoded_valid_unichar("\302\256", 2) == 2); in TEST() 91 assert_se(utf8_encoded_valid_unichar("\302\256", 3) == 2); in TEST() 92 assert_se(utf8_encoded_valid_unichar("\302\256", SIZE_MAX) == 2); in TEST() 93 assert_se(utf8_encoded_valid_unichar("a", 1) == 1); in TEST() [all …]
|
/systemd-251/src/basic/ |
D | utf8.c | 133 encoded_len = utf8_encoded_valid_unichar(p, length); in utf8_is_printable_newline() 163 len = utf8_encoded_valid_unichar(p, in utf8_is_valid_n() 186 len = utf8_encoded_valid_unichar(str, SIZE_MAX); in utf8_escape_invalid() 237 len = utf8_encoded_valid_unichar(str, SIZE_MAX); in utf8_escape_non_printable_full() 328 l = utf8_encoded_valid_unichar(p, SIZE_MAX); in utf8_to_ascii() 532 int utf8_encoded_valid_unichar(const char *str, size_t length /* bytes */) { in utf8_encoded_valid_unichar() function 582 k = utf8_encoded_valid_unichar(str, SIZE_MAX); in utf8_n_codepoints()
|
D | utf8.h | 43 int utf8_encoded_valid_unichar(const char *str, size_t length);
|
D | user-util.c | 882 len = utf8_encoded_valid_unichar(i, SIZE_MAX); in mangle_gecos()
|
/systemd-251/src/shared/ |
D | device-nodes.c | 28 seqlen = utf8_encoded_valid_unichar(str + i, SIZE_MAX); in encode_devnode_name()
|
D | mkfs-util.c | 48 l = utf8_encoded_valid_unichar(q, SIZE_MAX); in mangle_linux_fs_label()
|
D | ask-password-api.c | 573 z = utf8_encoded_valid_unichar(passphrase + q, SIZE_MAX); in ask_password_tty() 622 n = utf8_encoded_valid_unichar(passphrase + codepoint, SIZE_MAX); in ask_password_tty()
|
D | udev-util.c | 485 len = utf8_encoded_valid_unichar(str + i, SIZE_MAX); in udev_replace_chars()
|
D | json.c | 2310 w = utf8_encoded_valid_unichar(s, n); in inc_lines_columns() 2475 len = utf8_encoded_valid_unichar(c, SIZE_MAX); in json_parse_string()
|