Searched refs:ucs4_t (Results 1 – 13 of 13) sorted by relevance
/picolibc-latest/newlib/libc/iconv/ces/ |
D | utf-8.c | 45 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 …]
|
D | ucs-4-internal.c | 46 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 …]
|
D | ucs-4.c | 80 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 …]
|
D | us-ascii.c | 42 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()
|
D | ucs-2-internal.c | 46 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()
|
D | utf-16.c | 88 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 …]
|
D | ucs-2.c | 78 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()
|
D | table-pcs.c | 42 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()
|
D | table.c | 126 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()
|
D | euc.c | 180 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/ |
D | ucsconv.h | 154 ucs4_t (*convert_to_ucs) (void *data, 215 ucs4_t in,
|
D | local.h | 56 typedef __uint32_t ucs4_t; typedef
|
D | ucsconv.c | 159 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()
|