Lines Matching refs:zText
18941 char *zText; /* The string collected so far */ member
28864 pAccum->zText = bufpt;
29020 char *zOld = isMalloced(p) ? p->zText : 0;
29041 assert( p->zText!=0 || p->nChar==0 );
29042 if( !isMalloced(p) && p->nChar>0 ) memcpy(zNew, p->zText, p->nChar);
29043 p->zText = zNew;
29063 while( (N--)>0 ) p->zText[p->nChar++] = c;
29077 memcpy(&p->zText[p->nChar], z, N);
29088 assert( p->zText!=0 || p->nChar==0 || p->accError );
29094 assert( p->zText );
29096 memcpy(&p->zText[p->nChar-N], z, N);
29114 char *zText;
29116 zText = sqlite3DbMallocRaw(p->db, p->nChar+1 );
29117 if( zText ){
29118 memcpy(zText, p->zText, p->nChar+1);
29123 p->zText = zText;
29124 return zText;
29127 if( p->zText ){
29128 p->zText[p->nChar] = 0;
29133 return p->zText;
29172 p->zText[p->nChar] = 0;
29173 return p->zText;
29181 sqlite3DbFree(p->db, p->zText);
29186 p->zText = 0;
29204 p->zText = zBase;
43273 static LPWSTR winUtf8ToUnicode(const char *zText){
43277 nChar = osMultiByteToWideChar(CP_UTF8, 0, zText, -1, NULL, 0);
43285 nChar = osMultiByteToWideChar(CP_UTF8, 0, zText, -1, zWideText,
43301 char *zText;
43307 zText = sqlite3MallocZero( nByte );
43308 if( zText==0 ){
43311 nByte = osWideCharToMultiByte(CP_UTF8, 0, zWideText, -1, zText, nByte,
43314 sqlite3_free(zText);
43315 zText = 0;
43317 return zText;
43326 static LPWSTR winMbcsToUnicode(const char *zText, int useAnsi){
43331 nByte = osMultiByteToWideChar(codepage, 0, zText, -1, NULL,
43340 nByte = osMultiByteToWideChar(codepage, 0, zText, -1, zMbcsText,
43357 char *zText;
43364 zText = sqlite3MallocZero( nByte );
43365 if( zText==0 ){
43368 nByte = osWideCharToMultiByte(codepage, 0, zWideText, -1, zText,
43371 sqlite3_free(zText);
43372 zText = 0;
43374 return zText;
43382 static char *winMbcsToUtf8(const char *zText, int useAnsi){
43386 zTmpWide = winMbcsToUnicode(zText, useAnsi);
43400 static char *winUtf8ToMbcs(const char *zText, int useAnsi){
43404 zTmpWide = winUtf8ToUnicode(zText);
43416 SQLITE_API LPWSTR sqlite3_win32_utf8_to_unicode(const char *zText){
43418 if( !zText ){
43426 return winUtf8ToUnicode(zText);
43448 SQLITE_API char *sqlite3_win32_mbcs_to_utf8(const char *zText){
43450 if( !zText ){
43458 return winMbcsToUtf8(zText, osAreFileApisANSI());
43464 SQLITE_API char *sqlite3_win32_mbcs_to_utf8_v2(const char *zText, int useAnsi){
43466 if( !zText ){
43474 return winMbcsToUtf8(zText, useAnsi);
43480 SQLITE_API char *sqlite3_win32_utf8_to_mbcs(const char *zText){
43482 if( !zText ){
43490 return winUtf8ToMbcs(zText, osAreFileApisANSI());
43496 SQLITE_API char *sqlite3_win32_utf8_to_mbcs_v2(const char *zText, int useAnsi){
43498 if( !zText ){
43506 return winUtf8ToMbcs(zText, useAnsi);
75763 assert( acc.zText==zBuf && acc.mxAlloc<=0 );
117787 char *zText = 0;
117791 zText = (char *)contextMalloc(context, (2*(i64)nBlob)+4);
117792 if( zText ){
117795 zText[(i*2)+2] = hexdigits[(zBlob[i]>>4)&0x0F];
117796 zText[(i*2)+3] = hexdigits[(zBlob[i])&0x0F];
117798 zText[(nBlob*2)+2] = '\'';
117799 zText[(nBlob*2)+3] = '\0';
117800 zText[0] = 'X';
117801 zText[1] = '\'';
117802 sqlite3_result_text(context, zText, -1, SQLITE_TRANSIENT);
117803 sqlite3_free(zText);
118504 memmove(pAccum->zText, &pAccum->zText[n], pAccum->nChar);
118536 const char *zText = sqlite3_str_value(pAccum);
118537 sqlite3_result_text(context, zText, -1, SQLITE_TRANSIENT);
125471 static const char zText[] = "onoffalseyestruextrafull";
125482 if( iLength[i]==n && sqlite3StrNICmp(&zText[iOffset[i]],z,n)==0
127876 const char *zText = (const char*)sqlite3_value_text(argv[i]);
127879 if( zText ){
127880 pCsr->azArg[j] = sqlite3_mprintf("%s", zText);
159780 if( pStr->nChar && sqlite3IsIdChar(pStr->zText[pStr->nChar-1]) ){
159882 pStr->zText[j] = sqlite3Tolower(pStr->zText[j]);
159896 pStr->zText[j] = sqlite3Toupper(pStr->zText[j]);
177157 const char *zText, /* Text of document to be inserted */
177181 if( zText==0 ){
177186 rc = sqlite3Fts3OpenTokenizer(pTokenizer, iLangid, zText, -1, &pCsr);
177296 const char *zText = (const char *)sqlite3_value_text(apVal[i]);
177297 int rc = fts3PendingTermsAdd(p, iLangid, zText, iCol, &aSz[iCol]);
177452 const char *zText = (const char *)sqlite3_column_text(pSelect, i);
177453 rc = fts3PendingTermsAdd(p, iLangid, zText, -1, &aSz[iCol]);
179436 const unsigned char *zText = sqlite3_column_text(pStmt, iCol);
179437 if( zText ){
179441 for(i=0; zText[i]>='0' && zText[i]<='9'; i++){
179442 iVal = iVal*10 + (zText[i] - '0');
179445 while( zText[i]==' ' ) i++;
179447 if( zText[i]=='-' ){
179451 for(/* no-op */; zText[i]>='0' && zText[i]<='9'; i++){
179452 iVal = iVal*10 + (zText[i] - '0');
181665 const char *zText = (const char *)sqlite3_column_text(pStmt, iCol+1);
181668 rc = sqlite3Fts3OpenTokenizer(p->pTokenizer, iLang, zText, -1, &pT);
181845 const char *zText = (const char *)sqlite3_column_text(pCsr->pStmt, i+1);
181848 rc = sqlite3Fts3OpenTokenizer(pT, pCsr->iLangid, zText, -1, &pTC);
214661 char *zText;
214663 zText = sqlite3_mprintf("");
214665 zText = fts5ExprPrintTcl(pConfig, zNearsetCmd, pExpr->pRoot);
214667 zText = fts5ExprPrint(pConfig, pExpr->pRoot);
214669 if( zText==0 ){
214672 sqlite3_result_text(pCtx, zText, -1, SQLITE_TRANSIENT);
214673 sqlite3_free(zText);
223446 const char *zText = (const char*)sqlite3_value_text(apVal[i]);
223447 if( zText==0 ) zText = "";
223459 if( zText[0]=='*' ){
223463 rc = fts5SpecialMatch(pTab, pCsr, &zText[1]);
223467 rc = sqlite3Fts5ExprNew(pConfig, iCol, zText, &pExpr, pzErr);
225507 const char *zText;
225510 zText = (const char*)sqlite3_column_text(pSeek, iCol);
225513 zText = (const char*)sqlite3_value_text(apVal[iCol-1]);
225518 zText, nText, (void*)&ctx, fts5StorageInsertCallback
225705 const char *zText = (const char*)sqlite3_column_text(pScan, ctx.iCol+1);
225709 zText, nText,
225831 const char *zText = (const char*)sqlite3_value_text(apVal[ctx.iCol+2]);
225835 zText, nText,
226004 const char *zText = (const char*)sqlite3_column_text(pScan, i+1);
226008 zText, nText,