Lines Matching refs:lenp
616 enc_to_utf16(char_u *str, int *lenp) in enc_to_utf16() argument
624 if (lenp == NULL) in enc_to_utf16()
627 lenp = &len_loc; in enc_to_utf16()
634 MultiByteToWideChar_alloc(enc_codepage, 0, (LPCSTR)str, *lenp, in enc_to_utf16()
648 str = allocbuf = string_convert(&conv, str, lenp); in enc_to_utf16()
654 length = utf8_to_utf16(str, *lenp, NULL, NULL); in enc_to_utf16()
658 utf8_to_utf16(str, *lenp, (short_u *)ret, NULL); in enc_to_utf16()
665 *lenp = length; in enc_to_utf16()
678 utf16_to_enc(short_u *str, int *lenp) in utf16_to_enc() argument
684 if (lenp == NULL) in utf16_to_enc()
687 lenp = &len_loc; in utf16_to_enc()
695 WideCharToMultiByte_alloc(enc_codepage, 0, str, *lenp, in utf16_to_enc()
697 *lenp = length; in utf16_to_enc()
702 utf8_str = alloc(utf16_to_utf8(str, *lenp == 0 ? 1 : *lenp, NULL)); in utf16_to_enc()
705 *lenp = utf16_to_utf8(str, *lenp, utf8_str); in utf16_to_enc()
718 enc_str = string_convert(&conv, utf8_str, lenp); in utf16_to_enc()