Searched refs:ucs4_t (Results 1 – 13 of 13) sorted by relevance
/picolibc-3.7.0-3.6.0/newlib/libc/iconv/ces/ |
D | utf-8.c | 46 register ucs4_t in, in convert_from_ucs() 126 static ucs4_t 133 ucs4_t res; in convert_to_ucs() 141 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in convert_to_ucs() 145 res = ((ucs4_t)(in[0] & 0x1F) << 6) in convert_to_ucs() 146 | ((ucs4_t)(in[1] & 0x3F)); in convert_to_ucs() 148 return (ucs4_t)ICONV_CES_INVALID_CHARACTER; in convert_to_ucs() 151 return (ucs4_t)ICONV_CES_INVALID_CHARACTER; in convert_to_ucs() 157 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in convert_to_ucs() 162 res = ((ucs4_t)(in[0] & 0x0F) << 12) in convert_to_ucs() [all …]
|
D | ucs-4-internal.c | 47 register ucs4_t in, in ucs_4_internal_convert_from_ucs() 55 if (*outbytesleft < sizeof (ucs4_t)) in ucs_4_internal_convert_from_ucs() 58 *((ucs4_t *)(*outbuf)) = in; in ucs_4_internal_convert_from_ucs() 59 *outbytesleft -= sizeof (ucs4_t); in ucs_4_internal_convert_from_ucs() 60 *outbuf += sizeof (ucs4_t); in ucs_4_internal_convert_from_ucs() 62 return sizeof (ucs4_t); in ucs_4_internal_convert_from_ucs() 67 static ucs4_t 73 register ucs4_t res; in ucs_4_internal_convert_to_ucs() 75 if (*inbytesleft < sizeof (ucs4_t)) in ucs_4_internal_convert_to_ucs() 76 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in ucs_4_internal_convert_to_ucs() [all …]
|
D | ucs-4.c | 81 ucs4_t in, in ucs_4_convert_from_ucs() 89 if (*outbytesleft < sizeof (ucs4_t)) in ucs_4_convert_from_ucs() 92 ucs4_t uc; in ucs_4_convert_from_ucs() 99 memcpy(*outbuf, &uc, sizeof (ucs4_t)); in ucs_4_convert_from_ucs() 101 *outbuf += sizeof (ucs4_t); in ucs_4_convert_from_ucs() 102 *outbytesleft -= sizeof (ucs4_t); in ucs_4_convert_from_ucs() 104 return sizeof (ucs4_t); in ucs_4_convert_from_ucs() 109 static ucs4_t 114 ucs4_t res; in ucs_4_convert_to_ucs() 116 if (*inbytesleft < sizeof (ucs4_t)) in ucs_4_convert_to_ucs() [all …]
|
D | us-ascii.c | 43 ucs4_t in, in us_ascii_convert_from_ucs() 61 static ucs4_t 67 ucs4_t res; in us_ascii_convert_to_ucs() 70 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in us_ascii_convert_to_ucs() 72 res = (ucs4_t)**inbuf; in us_ascii_convert_to_ucs() 75 return (ucs4_t)ICONV_CES_INVALID_CHARACTER; in us_ascii_convert_to_ucs()
|
D | ucs-2-internal.c | 47 register ucs4_t in, in ucs_2_internal_convert_from_ucs() 67 static ucs4_t 72 register ucs4_t res; in ucs_2_internal_convert_to_ucs() 76 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in ucs_2_internal_convert_to_ucs() 78 res = (ucs4_t)*((ucs2_t *)(*inbuf)); in ucs_2_internal_convert_to_ucs() 81 return (ucs4_t)ICONV_CES_INVALID_CHARACTER; in ucs_2_internal_convert_to_ucs()
|
D | utf-16.c | 89 register ucs4_t in, in utf_16_convert_from_ucs() 187 static ucs4_t 196 ucs4_t res; in utf_16_convert_to_ucs() 201 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in utf_16_convert_to_ucs() 217 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in utf_16_convert_to_ucs() 230 return (ucs4_t)ICONV_CES_INVALID_CHARACTER; in utf_16_convert_to_ucs() 231 res = (ucs4_t)w1; in utf_16_convert_to_ucs() 237 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in utf_16_convert_to_ucs() 241 return (ucs4_t)ICONV_CES_INVALID_CHARACTER; in utf_16_convert_to_ucs() 252 return (ucs4_t)ICONV_CES_INVALID_CHARACTER; in utf_16_convert_to_ucs() [all …]
|
D | ucs-2.c | 79 ucs4_t in, in ucs_2_convert_from_ucs() 107 static ucs4_t 112 ucs4_t res; in ucs_2_convert_to_ucs() 115 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in ucs_2_convert_to_ucs() 122 res = (ucs4_t)ICONV_BETOHS (uc); in ucs_2_convert_to_ucs() 124 res = (ucs4_t)ICONV_LETOHS (uc); in ucs_2_convert_to_ucs() 128 return (ucs4_t)ICONV_CES_INVALID_CHARACTER; in ucs_2_convert_to_ucs()
|
D | table-pcs.c | 43 ucs4_t in, in table_pcs_convert_from_ucs() 88 static ucs4_t 94 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in table_pcs_convert_to_ucs() 100 return (ucs4_t)(*(*inbuf - 1)); in table_pcs_convert_to_ucs()
|
D | table.c | 128 ucs4_t in, in table_convert_from_ucs() 207 static ucs4_t 218 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in table_convert_to_ucs() 223 return (ucs4_t)ICONV_CES_INVALID_CHARACTER; in table_convert_to_ucs() 227 return (ucs4_t)ucs; in table_convert_to_ucs() 231 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in table_convert_to_ucs() 241 return (ucs4_t)ICONV_CES_INVALID_CHARACTER; in table_convert_to_ucs() 245 return (ucs4_t)ucs; in table_convert_to_ucs()
|
D | euc.c | 184 register ucs4_t in, in euc_convert_from_ucs() 337 static ucs4_t 344 ucs4_t res; in euc_convert_to_ucs() 363 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in euc_convert_to_ucs() 369 return (ucs4_t)ICONV_CES_INVALID_CHARACTER; in euc_convert_to_ucs() 394 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in euc_convert_to_ucs() 400 return (ucs4_t)ICONV_CES_INVALID_CHARACTER; in euc_convert_to_ucs()
|
/picolibc-3.7.0-3.6.0/newlib/libc/iconv/lib/ |
D | ucsconv.h | 155 ucs4_t (*convert_to_ucs) (void *data, 216 ucs4_t in,
|
D | local.h | 57 typedef __uint32_t ucs4_t; typedef
|
D | ucsconv.c | 160 register ucs4_t ch; in ucs_based_conversion_convert() 173 if (ch == (ucs4_t)ICONV_CES_BAD_SEQUENCE) in ucs_based_conversion_convert() 179 if (ch == (ucs4_t)ICONV_CES_INVALID_CHARACTER) in ucs_based_conversion_convert() 218 (ucs4_t)DEFAULT_CHARACTER, in ucs_based_conversion_convert()
|