Home
last modified time | relevance | path

Searched refs:char32_t (Results 1 – 10 of 10) sorted by relevance

/systemd-251/src/basic/
Dutf8.c37 bool unichar_is_valid(char32_t ch) { in unichar_is_valid()
51 static bool unichar_is_control(char32_t ch) { in unichar_is_control()
82 int utf8_encoded_to_unichar(const char *str, char32_t *ret_unichar) { in utf8_encoded_to_unichar()
83 char32_t unichar; in utf8_encoded_to_unichar()
92 *ret_unichar = (char32_t)str[0]; in utf8_encoded_to_unichar()
98 unichar = (char32_t)str[0] & 0x0f; in utf8_encoded_to_unichar()
101 unichar = (char32_t)str[0] & 0x07; in utf8_encoded_to_unichar()
104 unichar = (char32_t)str[0] & 0x03; in utf8_encoded_to_unichar()
107 unichar = (char32_t)str[0] & 0x01; in utf8_encoded_to_unichar()
114 if (((char32_t)str[i] & 0xc0) != 0x80) in utf8_encoded_to_unichar()
[all …]
Dutf8.h15 bool unichar_is_valid(char32_t c);
35 size_t utf8_encode_unichar(char *out_utf8, char32_t g);
36 size_t utf16_encode_unichar(char16_t *out, char32_t c);
44 int utf8_encoded_to_unichar(const char *str, char32_t *ret_unichar);
54 static inline char32_t utf16_surrogate_pair_to_unichar(char16_t lead, char16_t trail) { in utf16_surrogate_pair_to_unichar()
55 return ((((char32_t) lead - 0xd800U) << 10) + ((char32_t) trail - 0xdc00U) + 0x10000U); in utf16_surrogate_pair_to_unichar()
Descape.c106 int cunescape_one(const char *p, size_t length, char32_t *ret, bool *eight_bit, bool accept_nul) { in cunescape_one()
216 char32_t c; in cunescape_one()
253 char32_t m; in cunescape_one()
316 char32_t u; in cunescape_length_with_prefix()
Dmissing_type.h7 #define char32_t uint32_t macro
Descape.h48 int cunescape_one(const char *p, size_t length, char32_t *ret, bool *eight_bit, bool accept_nul);
Dextract-word.c93 char32_t u; in extract_first_word()
Dstring-util.c383 char32_t c; in ellipsize_mem()
398 char32_t c; in ellipsize_mem()
/systemd-251/src/shared/
Dformat-table.c1913 char32_t c; in align_string_mem()
Djson.c2442 n += utf8_encode_unichar(s + n, (char32_t) x); in json_parse_string()
/systemd-251/
Dmeson.build486 'char32_t',