Home
last modified time | relevance | path

Searched refs:utf8_encoded_valid_unichar (Results 1 – 9 of 9) sorted by relevance

/systemd-251/src/test/
Dtest-utf8.c84 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/
Dutf8.c133 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()
Dutf8.h43 int utf8_encoded_valid_unichar(const char *str, size_t length);
Duser-util.c882 len = utf8_encoded_valid_unichar(i, SIZE_MAX); in mangle_gecos()
/systemd-251/src/shared/
Ddevice-nodes.c28 seqlen = utf8_encoded_valid_unichar(str + i, SIZE_MAX); in encode_devnode_name()
Dmkfs-util.c48 l = utf8_encoded_valid_unichar(q, SIZE_MAX); in mangle_linux_fs_label()
Dask-password-api.c573 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()
Dudev-util.c485 len = utf8_encoded_valid_unichar(str + i, SIZE_MAX); in udev_replace_chars()
Djson.c2310 w = utf8_encoded_valid_unichar(s, n); in inc_lines_columns()
2475 len = utf8_encoded_valid_unichar(c, SIZE_MAX); in json_parse_string()