Home
last modified time | relevance | path

Searched refs:char16_t (Results 1 – 13 of 13) sorted by relevance

/systemd-251/src/basic/
Dutf8.h36 size_t utf16_encode_unichar(char16_t *out, char32_t c);
38 char *utf16_to_utf8(const char16_t *s, size_t length /* bytes! */);
39 char16_t *utf8_to_utf16(const char *s, size_t length);
41 size_t char16_strlen(const char16_t *s); /* returns the number of 16bit words in the string (not by…
46 static inline bool utf16_is_surrogate(char16_t c) { in utf16_is_surrogate()
50 static inline bool utf16_is_trailing_surrogate(char16_t c) { in utf16_is_trailing_surrogate()
54 static inline char32_t utf16_surrogate_pair_to_unichar(char16_t lead, char16_t trail) { in utf16_surrogate_pair_to_unichar()
Dutf8.c390 char *utf16_to_utf8(const char16_t *s, size_t length /* bytes! */) { in utf16_to_utf8()
409 char16_t w1, w2; in utf16_to_utf8()
442 size_t utf16_encode_unichar(char16_t *out, char32_t c) { in utf16_encode_unichar()
464 char16_t *utf8_to_utf16(const char *s, size_t length) { in utf8_to_utf16()
465 char16_t *n, *p; in utf8_to_utf16()
470 n = new(char16_t, length + 1); in utf8_to_utf16()
503 size_t char16_strlen(const char16_t *s) { in char16_strlen()
Dmissing_type.h11 #define char16_t uint16_t macro
Defivars.c266 _cleanup_free_ char16_t *u16 = NULL; in efi_set_variable_string()
272 return efi_set_variable(variable, u16, (char16_strlen(u16) + 1) * sizeof(char16_t)); in efi_set_variable_string()
/systemd-251/src/boot/efi/
Dtest-bcd.c23 const char16_t *title_expect, in test_get_bcd_title_one()
33 char16_t *title = get_bcd_title(bcd, len); in test_get_bcd_title_one()
152 char16_t *title = get_bcd_title(bcd, len); in TEST()
Dfuzz-bcd.c23 char16_t *title = get_bcd_title(p, size); in LLVMFuzzerTestOneInput()
Dbcd.c16 # define CHAR16 char16_t
/systemd-251/src/shared/
Defi-loader.c87 _cleanup_free_ char16_t *entries = NULL; in efi_loader_get_entries()
108 end = i * sizeof(char16_t) >= size; in efi_loader_get_entries()
116 decoded = utf16_to_utf8(entries + start, (i - start) * sizeof(char16_t)); in efi_loader_get_entries()
Dgpt.c126 _cleanup_free_ char16_t *recoded = NULL; in gpt_partition_label_valid()
Djson.c2429 char16_t x; in json_parse_string()
2446 char16_t y; in json_parse_string()
/systemd-251/src/test/
Dtest-utf8.c172 …const char16_t utf16[] = { htole16('a'), htole16(0xd800), htole16('b'), htole16(0xdc00), htole16('… in TEST()
174 _cleanup_free_ char16_t *b = NULL; in TEST()
219 _cleanup_free_ char16_t *a = NULL; in TEST()
/systemd-251/src/boot/
Dbootctl.c2079 static int parse_timeout(const char *arg1, char16_t **ret_timeout, size_t *ret_timeout_size) { in parse_timeout()
2081 char16_t *encoded; in parse_timeout()
2112 static int parse_loader_entry_target_arg(const char *arg1, char16_t **ret_target, size_t *ret_targe… in parse_loader_entry_target_arg()
2113 char16_t *encoded = NULL; in parse_loader_entry_target_arg()
2176 int (* arg_parser)(const char *, char16_t **, size_t *); in verb_set_efivar()
2198 _cleanup_free_ char16_t *value = NULL; in verb_set_efivar()
/systemd-251/
Dmeson.build485 foreach decl : ['char16_t',