Lines Matching refs:bufpt
31834 char *bufpt; /* Pointer to the conversion buffer */ in sqlite3_str_vappendf() local
31868 bufpt = 0; in sqlite3_str_vappendf()
31877 bufpt = (char *)fmt; in sqlite3_str_vappendf()
31883 sqlite3_str_append(pAccum, bufpt, (int)(fmt - bufpt)); in sqlite3_str_vappendf()
32086 bufpt = &zOut[nOut-1]; in sqlite3_str_vappendf()
32093 *(--bufpt) = zOrd[x*2+1]; in sqlite3_str_vappendf()
32094 *(--bufpt) = zOrd[x*2]; in sqlite3_str_vappendf()
32100 *(--bufpt) = cset[longvalue%base]; in sqlite3_str_vappendf()
32104 length = (int)(&zOut[nOut-1]-bufpt); in sqlite3_str_vappendf()
32106 *(--bufpt) = '0'; /* Zero pad */ in sqlite3_str_vappendf()
32112 bufpt -= nn; in sqlite3_str_vappendf()
32114 bufpt[idx] = bufpt[idx+nn]; in sqlite3_str_vappendf()
32117 bufpt[++idx] = cThousand; in sqlite3_str_vappendf()
32123 if( prefix ) *(--bufpt) = prefix; /* Add sign */ in sqlite3_str_vappendf()
32128 for(; (x=(*pre))!=0; pre++) *(--bufpt) = x; in sqlite3_str_vappendf()
32130 length = (int)(&zOut[nOut-1]-bufpt); in sqlite3_str_vappendf()
32161 bufpt = flag_zeropad ? "null" : "NaN"; in sqlite3_str_vappendf()
32162 length = sqlite3Strlen30(bufpt); in sqlite3_str_vappendf()
32170 bufpt = buf; in sqlite3_str_vappendf()
32176 bufpt++; in sqlite3_str_vappendf()
32178 length = sqlite3Strlen30(bufpt); in sqlite3_str_vappendf()
32212 bufpt = buf; in sqlite3_str_vappendf()
32218 bufpt = zExtra = printfTempBuf(pAccum, szBufNeeded); in sqlite3_str_vappendf()
32219 if( bufpt==0 ) return; in sqlite3_str_vappendf()
32222 zOut = bufpt; in sqlite3_str_vappendf()
32226 *(bufpt++) = prefix; in sqlite3_str_vappendf()
32231 *(bufpt++) = '0'; in sqlite3_str_vappendf()
32234 *(bufpt++) = j<s.n ? s.z[j++] : '0'; in sqlite3_str_vappendf()
32235 if( cThousand && (e2%3)==0 && e2>1 ) *(bufpt++) = ','; in sqlite3_str_vappendf()
32240 *(bufpt++) = '.'; in sqlite3_str_vappendf()
32245 *(bufpt++) = '0'; in sqlite3_str_vappendf()
32249 *(bufpt++) = j<s.n ? s.z[j++] : '0'; in sqlite3_str_vappendf()
32253 while( bufpt[-1]=='0' ) *(--bufpt) = 0; in sqlite3_str_vappendf()
32254 assert( bufpt>zOut ); in sqlite3_str_vappendf()
32255 if( bufpt[-1]=='.' ){ in sqlite3_str_vappendf()
32257 *(bufpt++) = '0'; in sqlite3_str_vappendf()
32259 *(--bufpt) = 0; in sqlite3_str_vappendf()
32266 *(bufpt++) = aDigits[infop->charset]; in sqlite3_str_vappendf()
32268 *(bufpt++) = '-'; exp = -exp; in sqlite3_str_vappendf()
32270 *(bufpt++) = '+'; in sqlite3_str_vappendf()
32273 *(bufpt++) = (char)((exp/100)+'0'); /* 100's digit */ in sqlite3_str_vappendf()
32276 *(bufpt++) = (char)(exp/10+'0'); /* 10's digit */ in sqlite3_str_vappendf()
32277 *(bufpt++) = (char)(exp%10+'0'); /* 1's digit */ in sqlite3_str_vappendf()
32279 *bufpt = 0; in sqlite3_str_vappendf()
32284 length = (int)(bufpt-zOut); in sqlite3_str_vappendf()
32285 bufpt = zOut; in sqlite3_str_vappendf()
32293 bufpt[i] = bufpt[i-nPad]; in sqlite3_str_vappendf()
32296 while( nPad-- ) bufpt[i++] = '0'; in sqlite3_str_vappendf()
32309 bufpt = buf; in sqlite3_str_vappendf()
32314 bufpt = getTextArg(pArgList); in sqlite3_str_vappendf()
32316 if( bufpt ){ in sqlite3_str_vappendf()
32317 buf[0] = c = *(bufpt++); in sqlite3_str_vappendf()
32319 while( length<4 && (bufpt[0]&0xc0)==0x80 ){ in sqlite3_str_vappendf()
32320 buf[length++] = *(bufpt++); in sqlite3_str_vappendf()
32353 bufpt = buf; in sqlite3_str_vappendf()
32359 bufpt = getTextArg(pArgList); in sqlite3_str_vappendf()
32362 bufpt = va_arg(ap,char*); in sqlite3_str_vappendf()
32364 if( bufpt==0 ){ in sqlite3_str_vappendf()
32365 bufpt = ""; in sqlite3_str_vappendf()
32377 pAccum->zText = bufpt; in sqlite3_str_vappendf()
32378 pAccum->nAlloc = sqlite3DbMallocSize(pAccum->db, bufpt); in sqlite3_str_vappendf()
32379 pAccum->nChar = 0x7fffffff & (int)strlen(bufpt); in sqlite3_str_vappendf()
32384 zExtra = bufpt; in sqlite3_str_vappendf()
32390 unsigned char *z = (unsigned char*)bufpt; in sqlite3_str_vappendf()
32394 length = (int)(z - (unsigned char*)bufpt); in sqlite3_str_vappendf()
32396 for(length=0; length<precision && bufpt[length]; length++){} in sqlite3_str_vappendf()
32399 length = 0x7fffffff & (int)strlen(bufpt); in sqlite3_str_vappendf()
32405 while( ii>=0 ) if( (bufpt[ii--] & 0xc0)==0x80 ) width++; in sqlite3_str_vappendf()
32471 bufpt = zExtra = printfTempBuf(pAccum, n); in sqlite3_str_vappendf()
32472 if( bufpt==0 ) return; in sqlite3_str_vappendf()
32474 bufpt = buf; in sqlite3_str_vappendf()
32479 memcpy(&bufpt[j], "unistr('", 8); in sqlite3_str_vappendf()
32482 bufpt[j++] = '\''; in sqlite3_str_vappendf()
32488 bufpt[j++] = ch = escarg[i]; in sqlite3_str_vappendf()
32490 bufpt[j++] = ch; in sqlite3_str_vappendf()
32492 bufpt[j++] = '\\'; in sqlite3_str_vappendf()
32494 bufpt[j-1] = '\\'; in sqlite3_str_vappendf()
32495 bufpt[j++] = 'u'; in sqlite3_str_vappendf()
32496 bufpt[j++] = '0'; in sqlite3_str_vappendf()
32497 bufpt[j++] = '0'; in sqlite3_str_vappendf()
32498 bufpt[j++] = ch>=0x10 ? '1' : '0'; in sqlite3_str_vappendf()
32499 bufpt[j++] = "0123456789abcdef"[ch&0xf]; in sqlite3_str_vappendf()
32504 bufpt[j++] = ch = escarg[i]; in sqlite3_str_vappendf()
32505 if( ch==q ) bufpt[j++] = ch; in sqlite3_str_vappendf()
32509 bufpt[j++] = '\''; in sqlite3_str_vappendf()
32510 if( needQuote==2 ) bufpt[j++] = ')'; in sqlite3_str_vappendf()
32512 bufpt[j] = 0; in sqlite3_str_vappendf()
32587 sqlite3_str_append(pAccum, bufpt, length); in sqlite3_str_vappendf()
32590 sqlite3_str_append(pAccum, bufpt, length); in sqlite3_str_vappendf()