Lines Matching refs:bufpt

219   char *bufpt;               /* Pointer to the conversion buffer */  in sqlite3_str_vappendf()  local
256 bufpt = 0; in sqlite3_str_vappendf()
265 bufpt = (char *)fmt; in sqlite3_str_vappendf()
271 sqlite3_str_append(pAccum, bufpt, (int)(fmt - bufpt)); in sqlite3_str_vappendf()
474 bufpt = &zOut[nOut-1]; in sqlite3_str_vappendf()
481 *(--bufpt) = zOrd[x*2+1]; in sqlite3_str_vappendf()
482 *(--bufpt) = zOrd[x*2]; in sqlite3_str_vappendf()
488 *(--bufpt) = cset[longvalue%base]; in sqlite3_str_vappendf()
492 length = (int)(&zOut[nOut-1]-bufpt); in sqlite3_str_vappendf()
494 *(--bufpt) = '0'; /* Zero pad */ in sqlite3_str_vappendf()
500 bufpt -= nn; in sqlite3_str_vappendf()
502 bufpt[idx] = bufpt[idx+nn]; in sqlite3_str_vappendf()
505 bufpt[++idx] = cThousand; in sqlite3_str_vappendf()
511 if( prefix ) *(--bufpt) = prefix; /* Add sign */ in sqlite3_str_vappendf()
516 for(; (x=(*pre))!=0; pre++) *(--bufpt) = x; in sqlite3_str_vappendf()
518 length = (int)(&zOut[nOut-1]-bufpt); in sqlite3_str_vappendf()
560 bufpt = "NaN"; in sqlite3_str_vappendf()
573 bufpt = buf; in sqlite3_str_vappendf()
580 bufpt = buf; in sqlite3_str_vappendf()
609 bufpt = zExtra = printfTempBuf(pAccum, szBufNeeded); in sqlite3_str_vappendf()
610 if( bufpt==0 ) return; in sqlite3_str_vappendf()
613 zOut = bufpt; in sqlite3_str_vappendf()
618 *(bufpt++) = prefix; in sqlite3_str_vappendf()
622 *(bufpt++) = '0'; in sqlite3_str_vappendf()
625 *(bufpt++) = et_getdigit(&realvalue,&nsd); in sqlite3_str_vappendf()
630 *(bufpt++) = '.'; in sqlite3_str_vappendf()
636 *(bufpt++) = '0'; in sqlite3_str_vappendf()
640 *(bufpt++) = et_getdigit(&realvalue,&nsd); in sqlite3_str_vappendf()
644 while( bufpt[-1]=='0' ) *(--bufpt) = 0; in sqlite3_str_vappendf()
645 assert( bufpt>zOut ); in sqlite3_str_vappendf()
646 if( bufpt[-1]=='.' ){ in sqlite3_str_vappendf()
648 *(bufpt++) = '0'; in sqlite3_str_vappendf()
650 *(--bufpt) = 0; in sqlite3_str_vappendf()
656 *(bufpt++) = aDigits[infop->charset]; in sqlite3_str_vappendf()
658 *(bufpt++) = '-'; exp = -exp; in sqlite3_str_vappendf()
660 *(bufpt++) = '+'; in sqlite3_str_vappendf()
663 *(bufpt++) = (char)((exp/100)+'0'); /* 100's digit */ in sqlite3_str_vappendf()
666 *(bufpt++) = (char)(exp/10+'0'); /* 10's digit */ in sqlite3_str_vappendf()
667 *(bufpt++) = (char)(exp%10+'0'); /* 1's digit */ in sqlite3_str_vappendf()
669 *bufpt = 0; in sqlite3_str_vappendf()
674 length = (int)(bufpt-zOut); in sqlite3_str_vappendf()
675 bufpt = zOut; in sqlite3_str_vappendf()
683 bufpt[i] = bufpt[i-nPad]; in sqlite3_str_vappendf()
686 while( nPad-- ) bufpt[i++] = '0'; in sqlite3_str_vappendf()
699 bufpt = buf; in sqlite3_str_vappendf()
704 bufpt = getTextArg(pArgList); in sqlite3_str_vappendf()
706 if( bufpt ){ in sqlite3_str_vappendf()
707 buf[0] = c = *(bufpt++); in sqlite3_str_vappendf()
709 while( length<4 && (bufpt[0]&0xc0)==0x80 ){ in sqlite3_str_vappendf()
710 buf[length++] = *(bufpt++); in sqlite3_str_vappendf()
748 bufpt = buf; in sqlite3_str_vappendf()
754 bufpt = getTextArg(pArgList); in sqlite3_str_vappendf()
757 bufpt = va_arg(ap,char*); in sqlite3_str_vappendf()
759 if( bufpt==0 ){ in sqlite3_str_vappendf()
760 bufpt = ""; in sqlite3_str_vappendf()
772 pAccum->zText = bufpt; in sqlite3_str_vappendf()
773 pAccum->nAlloc = sqlite3DbMallocSize(pAccum->db, bufpt); in sqlite3_str_vappendf()
774 pAccum->nChar = 0x7fffffff & (int)strlen(bufpt); in sqlite3_str_vappendf()
779 zExtra = bufpt; in sqlite3_str_vappendf()
785 unsigned char *z = (unsigned char*)bufpt; in sqlite3_str_vappendf()
789 length = (int)(z - (unsigned char*)bufpt); in sqlite3_str_vappendf()
791 for(length=0; length<precision && bufpt[length]; length++){} in sqlite3_str_vappendf()
794 length = 0x7fffffff & (int)strlen(bufpt); in sqlite3_str_vappendf()
800 while( ii>=0 ) if( (bufpt[ii--] & 0xc0)==0x80 ) width++; in sqlite3_str_vappendf()
834 bufpt = zExtra = printfTempBuf(pAccum, n); in sqlite3_str_vappendf()
835 if( bufpt==0 ) return; in sqlite3_str_vappendf()
837 bufpt = buf; in sqlite3_str_vappendf()
840 if( needQuote ) bufpt[j++] = q; in sqlite3_str_vappendf()
843 bufpt[j++] = ch = escarg[i]; in sqlite3_str_vappendf()
844 if( ch==q ) bufpt[j++] = ch; in sqlite3_str_vappendf()
846 if( needQuote ) bufpt[j++] = q; in sqlite3_str_vappendf()
847 bufpt[j] = 0; in sqlite3_str_vappendf()
915 sqlite3_str_append(pAccum, bufpt, length); in sqlite3_str_vappendf()
918 sqlite3_str_append(pAccum, bufpt, length); in sqlite3_str_vappendf()