Home | History | Annotate | Download | only in amalgamation

Lines Matching defs:zText

2479 ** For example, assume the string variable zText contains text as follows:
2482 ** char *zText = "It's a happy day!";
2488 ** char *zSQL = sqlite3_mprintf("INSERT INTO table VALUES('%q')", zText);
2493 ** Because the %q format string is used, the '\'' character in zText
2516 ** char *zSQL = sqlite3_mprintf("INSERT INTO table VALUES(%Q)", zText);
2522 ** variable even if the zText variable is a NULL pointer.
10754 char *zText; /* The string collected so far */
10756 int nAlloc; /* Amount of space allocated in zText */
19268 char *zOld = (p->zText==p->zBase ? 0 : p->zText);
19284 if( zOld==0 ) memcpy(zNew, p->zText, p->nChar);
19285 p->zText = zNew;
19293 memcpy(&p->zText[p->nChar], z, N);
19303 if( p->zText ){
19304 p->zText[p->nChar] = 0;
19305 if( p->useMalloc && p->zText==p->zBase ){
19307 p->zText = sqlite3DbMallocRaw(p->db, p->nChar+1 );
19309 zText = sqlite3_malloc(p->nChar+1);
19311 if( p->zText ){
19312 memcpy(p->zText, p->zBase, p->nChar+1);
19318 return p->zText;
19325 if( p->zText!=p->zBase ){
19327 sqlite3DbFree(p->db, p->zText);
19329 sqlite3_free(p->zText);
19332 p->zText = 0;
19339 p->zText = p->zBase = zBase;
82757 char *zText = 0;
82761 zText = (char *)contextMalloc(context, (2*(i64)nBlob)+4);
82762 if( zText ){
82765 zText[(i*2)+2] = hexdigits[(zBlob[i]>>4)&0x0F];
82766 zText[(i*2)+3] = hexdigits[(zBlob[i])&0x0F];
82768 zText[(nBlob*2)+2] = '\'';
82769 zText[(nBlob*2)+3] = '\0';
82770 zText[0] = 'X';
82771 zText[1] = '\'';
82772 sqlite3_result_text(context, zText, -1, SQLITE_TRANSIENT);
82773 sqlite3_free(zText);
87775 static const char zText[] = "onoffalseyestruefull";
87785 if( iLength[i]==n && sqlite3StrNICmp(&zText[iOffset[i]],z,n)==0 ){
106358 /* zText[] encodes 811 bytes of keywords in 541 bytes */
106369 static const char zText[540] = {
106482 if( aLen[i]==n && sqlite3StrNICmp(&zText[aOffset[i]],z,n)==0 ){
112305 /* Find the next word in zText and place the endpoints in pzWord*.
112309 static int findWord(const char *zText,
112312 while( ascii_isspace(*zText) ){
112313 zText++;
112315 *pzWordStart = zText;
112316 while( ascii_isalnum(*zText) || *zText=='_' ){
112317 zText++;
112319 r = zText>*pzWordStart; /* In case pzWordStart==pzWordEnd */
112320 *pzWordEnd = zText;
112324 /* Return true if the next word in zText is zWord, also setting
112327 static int expectWord(const char *zText, const char *zWord,
112330 if( findWord(zText, &zWordStart, &zWordEnd) &&
120612 ** Tokenize the nul-terminated string zText and add all tokens to the
120620 const char *zText, /* Text of document to be inserted */
120641 rc = pModule->xOpen(pTokenizer, zText, -1, &pCsr);
120730 const char *zText = (const char *)sqlite3_value_text(apVal[i]);
120731 if( zText ){
120732 int rc = fts3PendingTermsAdd(p, zText, i-2, &aSz[i-2]);
120852 const char *zText = (const char *)sqlite3_column_text(pSelect, i);
120853 rc = fts3PendingTermsAdd(p, zText, -1, &aSz[i-1]);
122659 const char *zText = (const char *)sqlite3_column_text(pCsr->pStmt, i+1);
122662 rc = pModule->xOpen(pT, zText, -1, &pTC);
122667 int iPos; /* Position of token in zText */
127535 char *zText = 0;
127561 if( zText ){
127562 char *zTextNew = sqlite3_mprintf("%s {%s}", zText, zCell);
127563 sqlite3_free(zText);
127564 zText = zTextNew;
127566 zText = sqlite3_mprintf("{%s}", zCell);
127570 sqlite3_result_text(ctx, zText, -1, sqlite3_free);