Lines Matching refs:u16s
279 check_bom16(const uint16_t *u16s, size_t u16l, int *in) in check_bom16() argument
282 if (*u16s == UCONV_BOM_NORMAL) { in check_bom16()
286 if (*u16s == UCONV_BOM_SWAPPED) { in check_bom16()
313 uconv_u16tou32(const uint16_t *u16s, size_t *utf16len, in uconv_u16tou32() argument
328 if (u16s == NULL || utf16len == NULL) in uconv_u16tou32()
350 check_bom16(u16s, *utf16len, &inendian)) in uconv_u16tou32()
375 if (u16s[u16l] == 0 && do_not_ignore_null) in uconv_u16tou32()
378 lo = (uint32_t)((inendian) ? u16s[u16l] : BSWAP_16(u16s[u16l])); in uconv_u16tou32()
423 uconv_u16tou8(const uint16_t *u16s, size_t *utf16len, in uconv_u16tou8() argument
434 if (u16s == NULL || utf16len == NULL) in uconv_u16tou8()
448 check_bom16(u16s, *utf16len, &inendian)) in uconv_u16tou8()
454 if (u16s[u16l] == 0 && do_not_ignore_null) in uconv_u16tou8()
457 lo = (uint32_t)((inendian) ? u16s[u16l] : BSWAP_16(u16s[u16l])); in uconv_u16tou8()
518 uint16_t *u16s, size_t *utf16len, int flag) in uconv_u32tou16() argument
531 if (u16s == NULL || utf16len == NULL) in uconv_u32tou16()
548 u16s[u16l++] = (outendian) ? UCONV_BOM_NORMAL : in uconv_u32tou16()
579 u16s[u16l++] = (uint16_t)hi; in uconv_u32tou16()
580 u16s[u16l++] = (uint16_t)lo; in uconv_u32tou16()
582 u16s[u16l++] = BSWAP_16(((uint16_t)hi)); in uconv_u32tou16()
583 u16s[u16l++] = BSWAP_16(((uint16_t)lo)); in uconv_u32tou16()
588 u16s[u16l++] = (outendian) ? (uint16_t)hi : in uconv_u32tou16()
669 uint16_t *u16s, size_t *utf16len, int flag) in uconv_u8tou16() argument
684 if (u16s == NULL || utf16len == NULL) in uconv_u8tou16()
696 u16s[u16l++] = (outendian) ? UCONV_BOM_NORMAL : in uconv_u8tou16()
757 u16s[u16l++] = (uint16_t)hi; in uconv_u8tou16()
758 u16s[u16l++] = (uint16_t)lo; in uconv_u8tou16()
760 u16s[u16l++] = BSWAP_16(((uint16_t)hi)); in uconv_u8tou16()
761 u16s[u16l++] = BSWAP_16(((uint16_t)lo)); in uconv_u8tou16()
767 u16s[u16l++] = (outendian) ? (uint16_t)hi : in uconv_u8tou16()