Home
last modified time | relevance | path

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

/picolibc-latest/newlib/libc/iconv/ces/
Dutf-8.c45 register ucs4_t in, in convert_from_ucs()
125 static ucs4_t
132 ucs4_t res; in convert_to_ucs()
140 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in convert_to_ucs()
144 res = ((ucs4_t)(in[0] & 0x1F) << 6) in convert_to_ucs()
145 | ((ucs4_t)(in[1] & 0x3F)); in convert_to_ucs()
147 return (ucs4_t)ICONV_CES_INVALID_CHARACTER; in convert_to_ucs()
150 return (ucs4_t)ICONV_CES_INVALID_CHARACTER; in convert_to_ucs()
156 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in convert_to_ucs()
161 res = ((ucs4_t)(in[0] & 0x0F) << 12) in convert_to_ucs()
[all …]
Ducs-4-internal.c46 register ucs4_t in, in ucs_4_internal_convert_from_ucs()
54 if (*outbytesleft < sizeof (ucs4_t)) in ucs_4_internal_convert_from_ucs()
57 *((ucs4_t *)(*outbuf)) = in; in ucs_4_internal_convert_from_ucs()
58 *outbytesleft -= sizeof (ucs4_t); in ucs_4_internal_convert_from_ucs()
59 *outbuf += sizeof (ucs4_t); in ucs_4_internal_convert_from_ucs()
61 return sizeof (ucs4_t); in ucs_4_internal_convert_from_ucs()
66 static ucs4_t
72 register ucs4_t res; in ucs_4_internal_convert_to_ucs()
74 if (*inbytesleft < sizeof (ucs4_t)) in ucs_4_internal_convert_to_ucs()
75 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in ucs_4_internal_convert_to_ucs()
[all …]
Ducs-4.c80 ucs4_t in, in ucs_4_convert_from_ucs()
88 if (*outbytesleft < sizeof (ucs4_t)) in ucs_4_convert_from_ucs()
91 ucs4_t uc; in ucs_4_convert_from_ucs()
98 memcpy(*outbuf, &uc, sizeof (ucs4_t)); in ucs_4_convert_from_ucs()
100 *outbuf += sizeof (ucs4_t); in ucs_4_convert_from_ucs()
101 *outbytesleft -= sizeof (ucs4_t); in ucs_4_convert_from_ucs()
103 return sizeof (ucs4_t); in ucs_4_convert_from_ucs()
108 static ucs4_t
113 ucs4_t res; in ucs_4_convert_to_ucs()
115 if (*inbytesleft < sizeof (ucs4_t)) in ucs_4_convert_to_ucs()
[all …]
Dus-ascii.c42 ucs4_t in, in us_ascii_convert_from_ucs()
60 static ucs4_t
66 ucs4_t res; in us_ascii_convert_to_ucs()
69 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in us_ascii_convert_to_ucs()
71 res = (ucs4_t)**inbuf; in us_ascii_convert_to_ucs()
74 return (ucs4_t)ICONV_CES_INVALID_CHARACTER; in us_ascii_convert_to_ucs()
Ducs-2-internal.c46 register ucs4_t in, in ucs_2_internal_convert_from_ucs()
66 static ucs4_t
71 register ucs4_t res; in ucs_2_internal_convert_to_ucs()
75 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in ucs_2_internal_convert_to_ucs()
77 res = (ucs4_t)*((ucs2_t *)(*inbuf)); in ucs_2_internal_convert_to_ucs()
80 return (ucs4_t)ICONV_CES_INVALID_CHARACTER; in ucs_2_internal_convert_to_ucs()
Dutf-16.c88 register ucs4_t in, in utf_16_convert_from_ucs()
186 static ucs4_t
195 ucs4_t res; in utf_16_convert_to_ucs()
200 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in utf_16_convert_to_ucs()
216 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in utf_16_convert_to_ucs()
229 return (ucs4_t)ICONV_CES_INVALID_CHARACTER; in utf_16_convert_to_ucs()
230 res = (ucs4_t)w1; in utf_16_convert_to_ucs()
236 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in utf_16_convert_to_ucs()
240 return (ucs4_t)ICONV_CES_INVALID_CHARACTER; in utf_16_convert_to_ucs()
251 return (ucs4_t)ICONV_CES_INVALID_CHARACTER; in utf_16_convert_to_ucs()
[all …]
Ducs-2.c78 ucs4_t in, in ucs_2_convert_from_ucs()
106 static ucs4_t
111 ucs4_t res; in ucs_2_convert_to_ucs()
114 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in ucs_2_convert_to_ucs()
121 res = (ucs4_t)ICONV_BETOHS (uc); in ucs_2_convert_to_ucs()
123 res = (ucs4_t)ICONV_LETOHS (uc); in ucs_2_convert_to_ucs()
127 return (ucs4_t)ICONV_CES_INVALID_CHARACTER; in ucs_2_convert_to_ucs()
Dtable-pcs.c42 ucs4_t in, in table_pcs_convert_from_ucs()
87 static ucs4_t
93 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in table_pcs_convert_to_ucs()
99 return (ucs4_t)(*(*inbuf - 1)); in table_pcs_convert_to_ucs()
Dtable.c126 ucs4_t in, in table_convert_from_ucs()
205 static ucs4_t
216 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in table_convert_to_ucs()
221 return (ucs4_t)ICONV_CES_INVALID_CHARACTER; in table_convert_to_ucs()
225 return (ucs4_t)ucs; in table_convert_to_ucs()
229 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in table_convert_to_ucs()
239 return (ucs4_t)ICONV_CES_INVALID_CHARACTER; in table_convert_to_ucs()
243 return (ucs4_t)ucs; in table_convert_to_ucs()
Deuc.c180 register ucs4_t in, in euc_convert_from_ucs()
333 static ucs4_t
340 ucs4_t res; in euc_convert_to_ucs()
359 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in euc_convert_to_ucs()
365 return (ucs4_t)ICONV_CES_INVALID_CHARACTER; in euc_convert_to_ucs()
390 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in euc_convert_to_ucs()
396 return (ucs4_t)ICONV_CES_INVALID_CHARACTER; in euc_convert_to_ucs()
/picolibc-latest/newlib/libc/iconv/lib/
Ducsconv.h154 ucs4_t (*convert_to_ucs) (void *data,
215 ucs4_t in,
Dlocal.h56 typedef __uint32_t ucs4_t; typedef
Ducsconv.c159 register ucs4_t ch; in ucs_based_conversion_convert()
172 if (ch == (ucs4_t)ICONV_CES_BAD_SEQUENCE) in ucs_based_conversion_convert()
178 if (ch == (ucs4_t)ICONV_CES_INVALID_CHARACTER) in ucs_based_conversion_convert()
217 (ucs4_t)DEFAULT_CHARACTER, in ucs_based_conversion_convert()