Lines Matching refs:ucs2
645 uint16_t *ucs2;
649 ucs2 = malloc(sizeof(ucs2[0]) * ucs2len);
650 if (ucs2 == NULL)
653 ret = wind_ucs2read(s, len, &flags, ucs2, &ucs2len);
656 free(ucs2);
660 ret = wind_ucs2utf8_length(ucs2, ucs2len, &u8len);
662 free(ucs2);
669 free(ucs2);
672 ret = wind_ucs2utf8(ucs2, ucs2len, s, &u8len);
673 free(ucs2);
731 uint16_t *ucs2;
741 ucs2 = malloc(sizeof(ucs2[0]) * ucs2_len);
742 if (ucs2 == NULL) {
747 ret = wind_utf8ucs2(s, ucs2, &ucs2_len);
750 free(ucs2);
757 if (ucs2 == NULL) {
758 free(ucs2);
763 ret = wind_ucs2write(ucs2, ucs2_len,
765 free(ucs2);