Lines Matching refs:pAccum
180 static char *printfTempBuf(sqlite3_str *pAccum, sqlite3_int64 n){ in printfTempBuf() argument
182 if( pAccum->accError ) return 0; in printfTempBuf()
183 if( n>pAccum->nAlloc && n>pAccum->mxAlloc ){ in printfTempBuf()
184 sqlite3StrAccumSetError(pAccum, SQLITE_TOOBIG); in printfTempBuf()
187 z = sqlite3DbMallocRaw(pAccum->db, n); in printfTempBuf()
189 sqlite3StrAccumSetError(pAccum, SQLITE_NOMEM); in printfTempBuf()
214 sqlite3_str *pAccum, /* Accumulate results here */ in sqlite3_str_vappendf() argument
254 assert( pAccum->nChar>0 || (pAccum->printfFlags&SQLITE_PRINTF_MALLOCED)==0 ); in sqlite3_str_vappendf()
257 if( (pAccum->printfFlags & SQLITE_PRINTF_SQLFUNC)!=0 ){ in sqlite3_str_vappendf()
271 sqlite3_str_append(pAccum, bufpt, (int)(fmt - bufpt)); in sqlite3_str_vappendf()
275 sqlite3_str_append(pAccum, "%", 1); in sqlite3_str_vappendf()
470 zOut = zExtra = printfTempBuf(pAccum, n); in sqlite3_str_vappendf()
609 bufpt = zExtra = printfTempBuf(pAccum, szBufNeeded); in sqlite3_str_vappendf()
693 *(va_arg(ap,int*)) = pAccum->nChar; in sqlite3_str_vappendf()
741 sqlite3_str_appendchar(pAccum, width-1, ' '); in sqlite3_str_vappendf()
745 sqlite3_str_append(pAccum, buf, length); in sqlite3_str_vappendf()
762 if( pAccum->nChar==0 in sqlite3_str_vappendf()
763 && pAccum->mxAlloc in sqlite3_str_vappendf()
766 && pAccum->accError==0 in sqlite3_str_vappendf()
771 assert( (pAccum->printfFlags&SQLITE_PRINTF_MALLOCED)==0 ); 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()
775 pAccum->printfFlags |= SQLITE_PRINTF_MALLOCED; in sqlite3_str_vappendf()
834 bufpt = zExtra = printfTempBuf(pAccum, n); in sqlite3_str_vappendf()
852 if( (pAccum->printfFlags & SQLITE_PRINTF_INTERNAL)==0 ) return; in sqlite3_str_vappendf()
857 sqlite3_str_appendall(pAccum, (const char*)pExpr->u.zToken); in sqlite3_str_vappendf()
858 sqlite3RecordErrorOffsetOfExpr(pAccum->db, pExpr); in sqlite3_str_vappendf()
865 sqlite3_str_append(pAccum, (const char*)pToken->z, pToken->n); in sqlite3_str_vappendf()
866 sqlite3RecordErrorByteOffset(pAccum->db, pToken->z); in sqlite3_str_vappendf()
874 if( (pAccum->printfFlags & SQLITE_PRINTF_INTERNAL)==0 ) return; in sqlite3_str_vappendf()
878 sqlite3_str_appendall(pAccum, pItem->zAlias); in sqlite3_str_vappendf()
881 sqlite3_str_appendall(pAccum, pItem->zDatabase); in sqlite3_str_vappendf()
882 sqlite3_str_append(pAccum, ".", 1); in sqlite3_str_vappendf()
884 sqlite3_str_appendall(pAccum, pItem->zName); in sqlite3_str_vappendf()
886 sqlite3_str_appendall(pAccum, pItem->zAlias); in sqlite3_str_vappendf()
891 sqlite3_str_appendf(pAccum, "(join-%u)", pSel->selId); in sqlite3_str_vappendf()
893 sqlite3_str_appendf(pAccum, "(subquery-%u)", pSel->selId); in sqlite3_str_vappendf()
914 if( !flag_leftjustify ) sqlite3_str_appendchar(pAccum, width, ' '); in sqlite3_str_vappendf()
915 sqlite3_str_append(pAccum, bufpt, length); in sqlite3_str_vappendf()
916 if( flag_leftjustify ) sqlite3_str_appendchar(pAccum, width, ' '); in sqlite3_str_vappendf()
918 sqlite3_str_append(pAccum, bufpt, length); in sqlite3_str_vappendf()
922 sqlite3DbFree(pAccum->db, zExtra); in sqlite3_str_vappendf()