Lines Matching defs:from

84 	Map_t			from;
244 if ((cc->from.index = _win_codeset(f)) < 0)
249 error(DEBUG_TRACE, "AHA#%d _win_iconv_open f=0x%04x t=0x%04x\n", __LINE__, cc->from.index, cc->to.index);
272 error(DEBUG_TRACE, "AHA#%d _win_iconv from=0x%04x to=0x%04x\n", __LINE__, cc->from.index, cc->to.index);
274 if (cc->from.index == cc->to.index)
289 * from => ucs-2
294 if ((tz = MultiByteToWideChar(cc->from.index, 0, (LPCSTR)*fb, (int)*fn, (LPWSTR)*tb, *tn)) && tz <= *tn)
311 while (!(tz = MultiByteToWideChar(cc->from.index, 0, (LPCSTR)*fb, (int)fz, (LPWSTR)*tb, 0)))
335 if (cc->from.index == CP_UCS2)
340 else if (!(un = MultiByteToWideChar(cc->from.index, 0, (LPCSTR)*fb, (int)*fn, (LPWSTR)*tb, 0)))
344 else if (!(un = MultiByteToWideChar(cc->from.index, 0, (LPCSTR)*fb, (int)*fn, (LPWSTR)ub, un)))
365 while (!(fz = MultiByteToWideChar(cc->from.index, 0, (LPCSTR)*fb, (int)bz, (LPWSTR)ub, un)))
1043 * open a character code conversion map from f to t
1084 if ((cc = freelist[i]) && streq(to, cc->to.name) && streq(fr, cc->from.name))
1105 cc->from.name = strcopy(cc->to.name, to) + 1;
1106 strcpy(cc->from.name, fr);
1114 cc->from.map = ccmap(fc, tc);
1117 cc->from.fun = (_ast_iconv_f)iconv;
1121 cc->from.fun = (_ast_iconv_f)_win_iconv;
1128 cc->from.fun = utf2bin;
1131 cc->from.fun = ume2bin;
1134 cc->from.fun = ucs2bin;
1137 cc->from.fun = scu2bin;
1144 cc->from.map = ccmap(fc, CC_ASCII);
1259 if (cc->from.fun)
1272 if ((*cc->from.fun)(cc->cvt, &tfb, &tfn, &b, &i) == (size_t)(-1))
1282 if ((*cc->from.fun)(cc->cvt, fb, fn, tb, tn) == (size_t)(-1))
1295 if (!(m = cc->from.map))
1316 if (cc && (m = cc->from.map))
1391 * move n bytes from ip to op