Lines Matching defs:to

85 	Map_t			to;
246 if ((cc->to.index = _win_codeset(t)) < 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 || cc->from.index != CP_UCS2 && cc->to.index == 0)
292 if (cc->to.index == CP_UCS2)
303 * binary search on input size to make it fit
348 * ucs-2 => to
351 if (tz = WideCharToMultiByte(cc->to.index, 0, (LPCWSTR)ub, un, *tb, *tn, 0, 0))
357 * binary search on input size to make it fit
368 if (!(tz = WideCharToMultiByte(cc->to.index, 0, (LPCWSTR)ub, fz, *tb, 0, 0, 0)))
386 if (!(tz = WideCharToMultiByte(cc->to.index, 0, (LPCWSTR)ub, fz, *tb, tz, 0, 0)))
527 * convert utf-8 to bin
601 * convert bin to utf-8
711 * convert utf-7 to bin
787 * convert bin to utf-7
861 * convert ucs-2 to bin with no byte swap
906 * convert bin to ucs-2 with no byte swap
952 * convert ucs-2 to bin with byte swap
997 * convert bin to ucs-2 with byte swap
1043 * open a character code conversion map from f to t
1055 char to[64];
1072 tc = _ast_iconv_name(t, to, sizeof(to));
1074 error(DEBUG_TRACE, "AHA#%d _ast_iconv_open f=%s:%s:%d t=%s:%s:%d\n", __LINE__, f, fr, fc, t, to, tc);
1076 if (fc != CC_ICONV && fc == tc || streq(fr, to))
1084 if ((cc = freelist[i]) && streq(to, cc->to.name) && streq(fr, cc->from.name))
1102 if (!(cc = newof(0, Conv_t, 1, strlen(to) + strlen(fr) + 2)))
1104 cc->to.name = (char*)(cc + 1);
1105 cc->from.name = strcopy(cc->to.name, to) + 1;
1116 else if ((cc->cvt = iconv_open(t, f)) != (iconv_t)(-1) || (cc->cvt = iconv_open(to, fr)) != (iconv_t)(-1))
1120 else if ((cc->cvt = _win_iconv_open(cc, t, f)) != (_ast_iconv_t)(-1) || (cc->cvt = _win_iconv_open(cc, to, fr)) != (_ast_iconv_t)(-1))
1150 cc->to.fun = bin2utf;
1153 cc->to.fun = bin2ume;
1156 cc->to.fun = bin2ucs;
1159 cc->to.fun = bin2scu;
1166 cc->to.map = ccmap(CC_ASCII, tc);
1193 * add to the free list
1230 * copy *fb size *fn to *tb size *tn
1250 /* TODO: reset to the initial state */
1261 if (cc->to.fun)
1276 n = (*cc->to.fun)(cc->cvt, &tfb, &tfn, tb, tn);
1285 if (m = cc->to.map)
1293 else if (cc->to.fun)
1296 return (*cc->to.fun)(cc->cvt, fb, fn, tb, tn);
1309 n = (*cc->to.fun)(cc->cvt, &b, fn, tb, tn);
1336 * write *fb size *fn to op
1338 * total bytes written to op returned
1433 * move n bytes from ip to op
1561 * call with arg 0 to start