• Home
  • Raw
  • Download

Lines Matching refs:pStr

23097 SQLITE_PRIVATE   void sqlite3VdbeMemPrettyPrint(Mem *pMem, StrAccum *pStr);
32050 sqlite3_str *pStr = sqlite3_str_new(0);
32052 sqlite3_str_appendf(pStr, "IN flags=0x%x", pExpr->flags);
32053 if( pExpr->iTable ) sqlite3_str_appendf(pStr, " iTable=%d",pExpr->iTable);
32055 sqlite3_str_appendf(pStr, " subrtn(%d,%d)",
32058 z = sqlite3_str_finish(pStr);
82408 DblquoteStr *pStr = sqlite3DbMallocRawNN(db,
82409 sizeof(*pStr)+n+1-sizeof(pStr->z));
82410 if( pStr ){
82411 pStr->pNextStr = p->pDblStr;
82412 p->pDblStr = pStr;
82413 memcpy(pStr->z, z, n+1);
82428 DblquoteStr *pStr;
82431 for(pStr=pVdbe->pDblStr; pStr; pStr=pStr->pNextStr){
82432 if( strcmp(zId, pStr->z)==0 ) return 1;
90556 SQLITE_PRIVATE void sqlite3VdbeMemPrettyPrint(Mem *pMem, StrAccum *pStr){
90574 sqlite3_str_appendf(pStr, "%cx[", c);
90576 sqlite3_str_appendf(pStr, "%02X", ((int)pMem->z[i] & 0xFF));
90578 sqlite3_str_appendf(pStr, "|");
90581 sqlite3_str_appendchar(pStr, 1, (z<32||z>126)?'.':z);
90583 sqlite3_str_appendf(pStr,"]");
90585 sqlite3_str_appendf(pStr, "+%dz",pMem->u.nZero);
90602 sqlite3_str_appendf(pStr, " %c%d[", c, pMem->n);
90605 sqlite3_str_appendchar(pStr, 1, (c>=0x20&&c<=0x7f) ? c : '.');
90607 sqlite3_str_appendf(pStr, "]%s", encnames[pMem->enc]);
125560 SQLITE_PRIVATE void sqlite3QuoteValue(StrAccum *pStr, sqlite3_value *pValue){
125564 assert( pStr!=0 && pStr->nChar==0 );
125571 sqlite3_str_appendf(pStr, "%!.15g", r1);
125572 zVal = sqlite3_str_value(pStr);
125574 sqlite3AtoF(zVal, &r2, pStr->nChar, SQLITE_UTF8);
125576 sqlite3_str_reset(pStr);
125577 sqlite3_str_appendf(pStr, "%!.20e", r1);
125583 sqlite3_str_appendf(pStr, "%lld", sqlite3_value_int64(pValue));
125590 sqlite3StrAccumEnlarge(pStr, nBlob*2 + 4);
125591 if( pStr->accError==0 ){
125592 char *zText = pStr->zText;
125602 pStr->nChar = nBlob*2 + 3;
125608 sqlite3_str_appendf(pStr, "%Q", zArg);
125613 sqlite3_str_append(pStr, "NULL", 4);
151757 StrAccum *pStr, /* The text expression being built */
151767 if( bAnd ) sqlite3_str_append(pStr, " AND ", 5);
151769 if( nTerm>1 ) sqlite3_str_append(pStr, "(", 1);
151771 if( i ) sqlite3_str_append(pStr, ",", 1);
151772 sqlite3_str_appendall(pStr, explainIndexColumnName(pIdx, iTerm+i));
151774 if( nTerm>1 ) sqlite3_str_append(pStr, ")", 1);
151776 sqlite3_str_append(pStr, zOp, 1);
151778 if( nTerm>1 ) sqlite3_str_append(pStr, "(", 1);
151780 if( i ) sqlite3_str_append(pStr, ",", 1);
151781 sqlite3_str_append(pStr, "?", 1);
151783 if( nTerm>1 ) sqlite3_str_append(pStr, ")", 1);
151800 static void explainIndexRange(StrAccum *pStr, WhereLoop *pLoop){
151807 sqlite3_str_append(pStr, " (", 2);
151810 if( i ) sqlite3_str_append(pStr, " AND ", 5);
151811 sqlite3_str_appendf(pStr, i>=nSkip ? "%s=?" : "ANY(%s)", z);
151816 explainAppendTerm(pStr, pIndex, pLoop->u.btree.nBtm, j, i, ">");
151820 explainAppendTerm(pStr, pIndex, pLoop->u.btree.nTop, j, i, "<");
151822 sqlite3_str_append(pStr, ")", 1);
172677 static void addSpaceSeparator(sqlite3_str *pStr){
172678 if( pStr->nChar && sqlite3IsIdChar(pStr->zText[pStr->nChar-1]) ){
172679 sqlite3_str_append(pStr, " ", 1);
172701 sqlite3_str *pStr; /* The normalized SQL string under construction */
172706 pStr = sqlite3_str_new(db);
172707 assert( pStr!=0 ); /* sqlite3_str_new() never returns NULL */
172708 for(i=0; zSql[i] && pStr->accError==0; i+=n){
172720 sqlite3_str_append(pStr, " NULL", 5);
172730 sqlite3_str_append(pStr, "?", 1);
172736 iStartIN = pStr->nChar;
172739 sqlite3_str_append(pStr, "(", 1);
172744 assert( pStr->nChar>=(u32)iStartIN );
172745 pStr->nChar = iStartIN+1;
172746 sqlite3_str_append(pStr, "?,?,?", 5);
172750 sqlite3_str_append(pStr, ")", 1);
172755 j = pStr->nChar;
172763 sqlite3_str_append(pStr, "?", 1);
172769 addSpaceSeparator(pStr);
172770 sqlite3_str_append(pStr, zId, nId);
172772 sqlite3_str_appendf(pStr, "\"%w\"", zId);
172776 addSpaceSeparator(pStr);
172777 sqlite3_str_append(pStr, zSql+i, n);
172779 while( j<pStr->nChar ){
172780 pStr->zText[j] = sqlite3Tolower(pStr->zText[j]);
172790 if( sqlite3IsIdChar(zSql[i]) ) addSpaceSeparator(pStr);
172791 j = pStr->nChar;
172792 sqlite3_str_append(pStr, zSql+i, n);
172793 while( j<pStr->nChar ){
172794 pStr->zText[j] = sqlite3Toupper(pStr->zText[j]);
172801 if( tokenType!=TK_SEMI ) sqlite3_str_append(pStr, ";", 1);
172802 return sqlite3_str_finish(pStr);
196093 StrBuffer *pStr, /* Buffer to append to */
196105 if( pStr->n+nAppend+1>=pStr->nAlloc ){
196106 sqlite3_int64 nAlloc = pStr->nAlloc+(sqlite3_int64)nAppend+100;
196107 char *zNew = sqlite3_realloc64(pStr->z, nAlloc);
196111 pStr->z = zNew;
196112 pStr->nAlloc = nAlloc;
196114 assert( pStr->z!=0 && (pStr->nAlloc >= pStr->n+nAppend+1) );
196117 memcpy(&pStr->z[pStr->n], zAppend, nAppend);
196118 pStr->n += nAppend;
196119 pStr->z[pStr->n] = '\0';
199996 JsonString *pStr;
199998 pStr = (JsonString*)sqlite3_aggregate_context(ctx, sizeof(*pStr));
199999 if( pStr ){
200000 if( pStr->zBuf==0 ){
200001 jsonInit(pStr, ctx);
200002 jsonAppendChar(pStr, '[');
200003 }else if( pStr->nUsed>1 ){
200004 jsonAppendChar(pStr, ',');
200006 pStr->pCtx = ctx;
200007 jsonAppendValue(pStr, argv[0]);
200011 JsonString *pStr;
200012 pStr = (JsonString*)sqlite3_aggregate_context(ctx, 0);
200013 if( pStr ){
200014 pStr->pCtx = ctx;
200015 jsonAppendChar(pStr, ']');
200016 if( pStr->bErr ){
200017 if( pStr->bErr==1 ) sqlite3_result_error_nomem(ctx);
200018 assert( pStr->bStatic );
200020 sqlite3_result_text(ctx, pStr->zBuf, (int)pStr->nUsed,
200021 pStr->bStatic ? SQLITE_TRANSIENT : sqlite3_free);
200022 pStr->bStatic = 1;
200024 sqlite3_result_text(ctx, pStr->zBuf, (int)pStr->nUsed, SQLITE_TRANSIENT);
200025 pStr->nUsed--;
200056 JsonString *pStr;
200059 pStr = (JsonString*)sqlite3_aggregate_context(ctx, 0);
200063 if( NEVER(!pStr) ) return;
200065 z = pStr->zBuf;
200066 for(i=1; i<pStr->nUsed && ((c = z[i])!=',' || inStr || nNest); i++){
200076 if( i<pStr->nUsed ){
200077 pStr->nUsed -= i;
200078 memmove(&z[1], &z[i+1], (size_t)pStr->nUsed-1);
200079 z[pStr->nUsed] = 0;
200081 pStr->nUsed = 1;
200099 JsonString *pStr;
200103 pStr = (JsonString*)sqlite3_aggregate_context(ctx, sizeof(*pStr));
200104 if( pStr ){
200105 if( pStr->zBuf==0 ){
200106 jsonInit(pStr, ctx);
200107 jsonAppendChar(pStr, '{');
200108 }else if( pStr->nUsed>1 ){
200109 jsonAppendChar(pStr, ',');
200111 pStr->pCtx = ctx;
200114 jsonAppendString(pStr, z, n);
200115 jsonAppendChar(pStr, ':');
200116 jsonAppendValue(pStr, argv[1]);
200120 JsonString *pStr;
200121 pStr = (JsonString*)sqlite3_aggregate_context(ctx, 0);
200122 if( pStr ){
200123 jsonAppendChar(pStr, '}');
200124 if( pStr->bErr ){
200125 if( pStr->bErr==1 ) sqlite3_result_error_nomem(ctx);
200126 assert( pStr->bStatic );
200128 sqlite3_result_text(ctx, pStr->zBuf, (int)pStr->nUsed,
200129 pStr->bStatic ? SQLITE_TRANSIENT : sqlite3_free);
200130 pStr->bStatic = 1;
200132 sqlite3_result_text(ctx, pStr->zBuf, (int)pStr->nUsed, SQLITE_TRANSIENT);
200133 pStr->nUsed--;
200313 JsonString *pStr,
200333 jsonPrintf(nn+2, pStr, ".%.*s", nn, z);
200340 JsonString *pStr, /* Write the path here */
200346 jsonAppendChar(pStr, '$');
200350 jsonEachComputePath(p, pStr, iUp);
200356 jsonPrintf(30, pStr, "[%d]", pUp->u.iKey);
200360 jsonAppendObjectPathElement(pStr, pNode);