Lines Matching refs:ucs4_t
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()
117 return (ucs4_t)ICONV_CES_BAD_SEQUENCE; in ucs_4_convert_to_ucs()
119 ucs4_t uc; in ucs_4_convert_to_ucs()
121 memcpy(&uc, *inbuf, sizeof (ucs4_t)); in ucs_4_convert_to_ucs()
130 return (ucs4_t)ICONV_CES_INVALID_CHARACTER; in ucs_4_convert_to_ucs()
132 *inbytesleft -= sizeof (ucs4_t); in ucs_4_convert_to_ucs()
133 *inbuf += sizeof(ucs4_t); in ucs_4_convert_to_ucs()