Searched refs:utf8_is_valid (Results 1 – 23 of 23) sorted by relevance
37 TEST(utf8_is_valid) { in TEST() argument38 assert_se(utf8_is_valid("ascii is valid unicode")); in TEST()39 assert_se(utf8_is_valid("\342\204\242")); in TEST()40 assert_se(!utf8_is_valid("\341\204")); in TEST()107 assert_se(utf8_is_valid(p1)); in TEST()111 assert_se(utf8_is_valid(p2)); in TEST()115 assert_se(utf8_is_valid(p3)); in TEST()123 assert_se(utf8_is_valid(p1)); in TEST()127 assert_se(utf8_is_valid(p2)); in TEST()131 assert_se(utf8_is_valid(p3)); in TEST()[all …]
23 if (!utf8_is_valid(n)) in test_ellipsize_mem_one()
51 assert(utf8_is_valid(utf8)); in resolve_system_hostname()62 if (!utf8_is_valid(label)) in resolve_system_hostname()
1396 if (!utf8_is_valid(t)) { in dns_packet_read_string()
140 if (!utf8_is_valid((char*) p + e[i].name_offset)) in add_locales_from_archive()244 if (!utf8_is_valid(name)) in locale_is_valid()
763 … if (!utf8_is_valid(u)) /* We want to synthesize JSON from this, hence insist on UTF-8 */ in valid_user_group_name()850 if (!utf8_is_valid(d)) in valid_gecos()901 if (!utf8_is_valid(p)) in valid_home()
18 static inline char *utf8_is_valid(const char *s) { in utf8_is_valid() function
277 if (!utf8_is_valid(key)) { in check_utf8ness_and_warn()286 if (value && !utf8_is_valid(value)) { in check_utf8ness_and_warn()
28 if (!utf8_is_valid(s)) in image_name_is_valid()
61 if (!utf8_is_valid(e)) in env_value_is_valid()
11 return utf8_is_valid(s); in sd_utf8_is_valid()
120 if (!utf8_is_valid(name)) in keymap_is_valid()
24 if (!utf8_is_valid(path)) in path_simplify_and_warn()
15 return s && utf8_is_valid(s) ? s : NULL; in utf8_only()29 if (utf8_is_valid(src[i])) in strv_extend_strv_utf8_only()
973 if (!utf8_is_valid(name)) in dns_service_name_is_valid()
192 if (!utf8_is_valid(l)) in parse_line()
295 return !!utf8_is_valid(token); in verify_anonymous_token()
3324 if (!utf8_is_valid(s)) in validate_string()
1087 if (!utf8_is_valid(c)) in component_name_valid()
1608 if (!utf8_is_valid(str)) in print_property()
2362 if (!utf8_is_valid(copy)) in bus_exec_context_set_transient_property()
4186 else if (!utf8_is_valid(e)) in service_notify_message()
999 if (!utf8_is_valid(resolved)) { in config_parse_label()