Lines Matching refs:ret
242 char_u *ret; in crnl_to_nl() local
246 ret = alloc(str_len == 0 ? 1 : str_len); in crnl_to_nl()
247 if (ret != NULL) in crnl_to_nl()
249 retp = ret; in crnl_to_nl()
261 return ret; in crnl_to_nl()
619 WCHAR *ret; in enc_to_utf16() local
635 &ret, &length); in enc_to_utf16()
655 ret = ALLOC_MULT(WCHAR, length + 1); in enc_to_utf16()
656 if (ret != NULL) in enc_to_utf16()
658 utf8_to_utf16(str, *lenp, (short_u *)ret, NULL); in enc_to_utf16()
659 ret[length] = 0; in enc_to_utf16()
666 return (short_u *)ret; in enc_to_utf16()