Lines Matching defs:tb

260 _win_iconv(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn)
281 memcpy(*tb, *fb, fz);
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)))
340 else if (!(un = MultiByteToWideChar(cc->from.index, 0, (LPCSTR)*fb, (int)*fn, (LPWSTR)*tb, 0)))
351 if (tz = WideCharToMultiByte(cc->to.index, 0, (LPCWSTR)ub, un, *tb, *tn, 0, 0))
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)))
401 *tb += tz;
531 utf2bin(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn)
546 t = (unsigned char*)(*tb);
595 *tn -= (n = (char*)t - (*tb));
596 *tb = (char*)t;
605 bin2utf(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn)
619 t = (unsigned char*)(*tb);
669 *tn -= (char*)t - (*tb);
670 *tb = (char*)t;
715 ume2bin(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn)
732 t = (unsigned char*)(*tb);
781 *tn -= (n = (char*)t - (*tb));
782 *tb = (char*)t;
791 bin2ume(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn)
807 t = (unsigned char*)(*tb);
855 *tn -= (char*)t - (*tb);
856 *tb = (char*)t;
865 ucs2bin(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn)
878 t = (unsigned char*)(*tb);
900 *tn -= (n = (char*)t - (*tb));
901 *tb = (char*)t;
910 bin2ucs(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn)
924 t = (unsigned char*)(*tb);
946 *tn -= (char*)t - (*tb);
947 *tb = (char*)t;
956 scu2bin(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn)
969 t = (unsigned char*)(*tb);
991 *tn -= (n = (char*)t - (*tb));
992 *tb = (char*)t;
1001 bin2scu(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn)
1015 t = (unsigned char*)(*tb);
1037 *tn -= (char*)t - (*tb);
1038 *tb = (char*)t;
1230 * copy *fb size *fn to *tb size *tn
1231 * fb,fn tb,tn updated on return
1235 _ast_iconv(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn)
1251 if (!tb || !*tb)
1276 n = (*cc->to.fun)(cc->cvt, &tfb, &tfn, tb, tn);
1282 if ((*cc->from.fun)(cc->cvt, fb, fn, tb, tn) == (size_t)(-1))
1287 e = (unsigned char*)(*tb);
1296 return (*cc->to.fun)(cc->cvt, fb, fn, tb, tn);
1309 n = (*cc->to.fun)(cc->cvt, &b, fn, tb, tn);
1320 t = (unsigned char*)(*tb);
1325 memcpy(*tb, *fb, n);
1328 *tb += n;
1345 char* tb;
1370 if (!(tb = (char*)sfreserve(op, -(tn + 1), SF_WRITE|SF_LOCKR)) || !(tn = sfvalue(op)))
1376 ts = tb;
1422 error(DEBUG_TRACE, "AHA#%d iconv_write %d", __LINE__, ts - tb);
1424 sfwrite(op, tb, ts - tb);
1425 r += ts - tb;
1441 char* tb;
1467 tb = 0;
1480 if (!(tb = (char*)sfreserve(op, SF_UNBOUND, SF_WRITE|SF_LOCKR)))
1486 ts = tb;
1525 sfwrite(op, tb, ts - tb);
1526 r += ts - tb;
1527 ts = tb;
1545 if (tb)
1547 sfwrite(op, tb, 0);
1548 if (ts > tb)
1550 sfwrite(op, tb, ts - tb);
1551 r += ts - tb;