Lines Matching refs:vcp

4753     vimconv_T	*vcp,  in iconv_string()  argument
4791 if (iconv(vcp->vc_fd, (void *)&from, &fromlen, &to, &tolen) in iconv_string()
4801 if (!vcp->vc_fail && unconvlenp != NULL in iconv_string()
4812 else if (!vcp->vc_fail in iconv_string()
5014 convert_setup(vimconv_T *vcp, char_u *from, char_u *to) in convert_setup() argument
5016 return convert_setup_ext(vcp, from, TRUE, to, TRUE); in convert_setup()
5025 vimconv_T *vcp, in convert_setup_ext() argument
5038 if (vcp->vc_type == CONV_ICONV && vcp->vc_fd != (iconv_t)-1) in convert_setup_ext()
5039 iconv_close(vcp->vc_fd); in convert_setup_ext()
5041 vcp->vc_type = CONV_NONE; in convert_setup_ext()
5042 vcp->vc_factor = 1; in convert_setup_ext()
5043 vcp->vc_fail = FALSE; in convert_setup_ext()
5064 vcp->vc_type = CONV_TO_UTF8; in convert_setup_ext()
5065 vcp->vc_factor = 2; // up to twice as long in convert_setup_ext()
5070 vcp->vc_type = CONV_9_TO_UTF8; in convert_setup_ext()
5071 vcp->vc_factor = 3; // up to three as long (euro sign) in convert_setup_ext()
5076 vcp->vc_type = CONV_TO_LATIN1; in convert_setup_ext()
5081 vcp->vc_type = CONV_TO_LATIN9; in convert_setup_ext()
5088 vcp->vc_type = CONV_CODEPAGE; in convert_setup_ext()
5089 vcp->vc_factor = 2; // up to twice as long in convert_setup_ext()
5090 vcp->vc_cpfrom = from_is_utf8 ? 0 : encname2codepage(from); in convert_setup_ext()
5091 vcp->vc_cpto = to_is_utf8 ? 0 : encname2codepage(to); in convert_setup_ext()
5097 vcp->vc_type = CONV_MAC_LATIN1; in convert_setup_ext()
5101 vcp->vc_type = CONV_MAC_UTF8; in convert_setup_ext()
5102 vcp->vc_factor = 2; // up to twice as long in convert_setup_ext()
5106 vcp->vc_type = CONV_LATIN1_MAC; in convert_setup_ext()
5110 vcp->vc_type = CONV_UTF8_MAC; in convert_setup_ext()
5117 vcp->vc_fd = (iconv_t)my_iconv_open( in convert_setup_ext()
5120 if (vcp->vc_fd != (iconv_t)-1) in convert_setup_ext()
5122 vcp->vc_type = CONV_ICONV; in convert_setup_ext()
5123 vcp->vc_factor = 4; // could be longer too... in convert_setup_ext()
5127 if (vcp->vc_type == CONV_NONE) in convert_setup_ext()
5198 vimconv_T *vcp, in string_convert() argument
5202 return string_convert_ext(vcp, ptr, lenp, NULL); in string_convert()
5212 vimconv_T *vcp, in string_convert_ext() argument
5231 switch (vcp->vc_type) in string_convert_ext()
5312 if (vcp->vc_type == CONV_TO_LATIN9) in string_convert_ext()
5336 else if (vcp->vc_fail) in string_convert_ext()
5358 retval = mac_string_convert(ptr, len, lenp, vcp->vc_fail, in string_convert_ext()
5363 retval = mac_string_convert(ptr, len, lenp, vcp->vc_fail, in string_convert_ext()
5368 retval = mac_string_convert(ptr, len, lenp, vcp->vc_fail, in string_convert_ext()
5373 retval = mac_string_convert(ptr, len, lenp, vcp->vc_fail, in string_convert_ext()
5380 retval = iconv_string(vcp, ptr, len, unconvlenp, lenp); in string_convert_ext()
5391 if (vcp->vc_cpfrom == 0) in string_convert_ext()
5395 tmp_len = MultiByteToWideChar(vcp->vc_cpfrom, in string_convert_ext()
5414 if (vcp->vc_cpfrom == 0) in string_convert_ext()
5417 MultiByteToWideChar(vcp->vc_cpfrom, 0, in string_convert_ext()
5421 if (vcp->vc_cpto == 0) in string_convert_ext()
5424 retlen = WideCharToMultiByte(vcp->vc_cpto, 0, in string_convert_ext()
5429 if (vcp->vc_cpto == 0) in string_convert_ext()
5432 WideCharToMultiByte(vcp->vc_cpto, 0, in string_convert_ext()