Home
last modified time | relevance | path

Searched refs:ucs2_t (Results 1 – 5 of 5) sorted by relevance

/picolibc-latest/newlib/libc/iconv/ces/
Ducs-2.c86 if (*outbytesleft < sizeof (ucs2_t)) in ucs_2_convert_from_ucs()
89 ucs2_t uc; in ucs_2_convert_from_ucs()
92 uc = ICONV_HTOBES ((ucs2_t)in); in ucs_2_convert_from_ucs()
94 uc = ICONV_HTOLES ((ucs2_t)in); in ucs_2_convert_from_ucs()
96 memcpy(*outbuf, &uc, sizeof(ucs2_t)); in ucs_2_convert_from_ucs()
98 *outbuf += sizeof (ucs2_t); in ucs_2_convert_from_ucs()
99 *outbytesleft -= sizeof (ucs2_t); in ucs_2_convert_from_ucs()
101 return sizeof (ucs2_t); in ucs_2_convert_from_ucs()
113 if (*inbytesleft < sizeof (ucs2_t)) in ucs_2_convert_to_ucs()
116 ucs2_t uc; in ucs_2_convert_to_ucs()
[all …]
Ducs-2-internal.c54 if (*outbytesleft < sizeof (ucs2_t)) in ucs_2_internal_convert_from_ucs()
57 *((ucs2_t *)(*outbuf)) = (ucs2_t)in; in ucs_2_internal_convert_from_ucs()
58 *outbuf += sizeof (ucs2_t); in ucs_2_internal_convert_from_ucs()
59 *outbytesleft -= sizeof (ucs2_t); in ucs_2_internal_convert_from_ucs()
61 return sizeof (ucs2_t); in ucs_2_internal_convert_from_ucs()
74 if (*inbytesleft < sizeof (ucs2_t)) in ucs_2_internal_convert_to_ucs()
77 res = (ucs4_t)*((ucs2_t *)(*inbuf)); in ucs_2_internal_convert_to_ucs()
82 *inbuf += sizeof (ucs2_t); in ucs_2_internal_convert_to_ucs()
83 *inbytesleft -= sizeof (ucs2_t); in ucs_2_internal_convert_to_ucs()
Dtable.c56 static ucs2_t
57 find_code_size (ucs2_t code, const __uint16_t *tblp);
59 static __inline ucs2_t
60 find_code_speed (ucs2_t code, const __uint16_t *tblp);
62 static __inline ucs2_t
63 find_code_speed_8bit (ucs2_t code, const unsigned char *tblp);
131 ucs2_t code; in table_convert_from_ucs()
138 code = find_code_speed_8bit ((ucs2_t)in, in table_convert_from_ucs()
148 code = find_code_speed ((ucs2_t)in, ccsp->tbl); in table_convert_from_ucs()
150 code = find_code_size ((ucs2_t)in, ccsp->tbl); in table_convert_from_ucs()
[all …]
Dutf-16.c92 register ucs2_t *cp; in utf_16_convert_from_ucs()
101 bytes = (*state == UTF16_SYSTEM_ENDIAN) ? sizeof (ucs2_t) * 2 in utf_16_convert_from_ucs()
102 : sizeof (ucs2_t); in utf_16_convert_from_ucs()
105 bytes += sizeof (ucs2_t); in utf_16_convert_from_ucs()
110 cp = (ucs2_t *)*outbuf; in utf_16_convert_from_ucs()
123 *cp = ICONV_HTOLES ((ucs2_t)in); in utf_16_convert_from_ucs()
126 *cp = ICONV_HTOBES ((ucs2_t)in); in utf_16_convert_from_ucs()
129 *cp = (ucs2_t)in; in utf_16_convert_from_ucs()
135 ucs2_t w1, w2; in utf_16_convert_from_ucs()
139 w1 = ((ucs2_t)((in >> 10)) & 0x03FF) | 0xD800; in utf_16_convert_from_ucs()
[all …]
/picolibc-latest/newlib/libc/iconv/lib/
Dlocal.h53 typedef __uint16_t ucs2_t; typedef