Home | History | Annotate | Download | only in dist

Lines Matching refs:zText

3567 ** For example, assume the string variable zText contains text as follows:
3570 ** char *zText = "It's a happy day!";
3576 ** char *zSQL = sqlite3_mprintf("INSERT INTO table VALUES('%q')", zText);
3581 ** Because the %q format string is used, the '\'' character in zText
3604 ** char *zSQL = sqlite3_mprintf("INSERT INTO table VALUES(%Q)", zText);
3610 ** variable even if the zText variable is a NULL pointer.
17117 char *zText; /* The string collected so far */
17118 u32 nAlloc; /* Amount of space allocated in zText */
26641 char *zOld = isMalloced(p) ? p->zText : 0;
26662 assert( p->zText!=0 || p->nChar==0 );
26663 if( !isMalloced(p) && p->nChar>0 ) memcpy(zNew, p->zText, p->nChar);
26664 p->zText = zNew;
26684 while( (N--)>0 ) p->zText[p->nChar++] = c;
26698 memcpy(&p->zText[p->nChar], z, N);
26709 assert( p->zText!=0 || p->nChar==0 || p->accError );
26715 assert( p->zText );
26717 memcpy(&p->zText[p->nChar-N], z, N);
26735 char *zText;
26737 zText = sqlite3DbMallocRaw(p->db, p->nChar+1 );
26738 if( zText ){
26739 memcpy(zText, p->zText, p->nChar+1);
26744 p->zText = zText;
26745 return zText;
26748 if( p->zText ){
26749 p->zText[p->nChar] = 0;
26754 return p->zText;
26762 sqlite3DbFree(p->db, p->zText);
26765 p->zText = 0;
26783 p->zText = zBase;
40376 static LPWSTR winUtf8ToUnicode(const char *zText){
40380 nChar = osMultiByteToWideChar(CP_UTF8, 0, zText, -1, NULL, 0);
40388 nChar = osMultiByteToWideChar(CP_UTF8, 0, zText, -1, zWideText,
40404 char *zText;
40410 zText = sqlite3MallocZero( nByte );
40411 if( zText==0 ){
40414 nByte = osWideCharToMultiByte(CP_UTF8, 0, zWideText, -1, zText, nByte,
40417 sqlite3_free(zText);
40418 zText = 0;
40420 return zText;
40429 static LPWSTR winMbcsToUnicode(const char *zText, int useAnsi){
40434 nByte = osMultiByteToWideChar(codepage, 0, zText, -1, NULL,
40443 nByte = osMultiByteToWideChar(codepage, 0, zText, -1, zMbcsText,
40460 char *zText;
40467 zText = sqlite3MallocZero( nByte );
40468 if( zText==0 ){
40471 nByte = osWideCharToMultiByte(codepage, 0, zWideText, -1, zText,
40474 sqlite3_free(zText);
40475 zText = 0;
40477 return zText;
40485 static char *winMbcsToUtf8(const char *zText, int useAnsi){
40489 zTmpWide = winMbcsToUnicode(zText, useAnsi);
40503 static char *winUtf8ToMbcs(const char *zText, int useAnsi){
40507 zTmpWide = winUtf8ToUnicode(zText);
40519 SQLITE_API LPWSTR sqlite3_win32_utf8_to_unicode(const char *zText){
40521 if( !zText ){
40529 return winUtf8ToUnicode(zText);
40551 SQLITE_API char *sqlite3_win32_mbcs_to_utf8(const char *zText){
40553 if( !zText ){
40561 return winMbcsToUtf8(zText, osAreFileApisANSI());
40567 SQLITE_API char *sqlite3_win32_mbcs_to_utf8_v2(const char *zText, int useAnsi){
40569 if( !zText ){
40577 return winMbcsToUtf8(zText, useAnsi);
40583 SQLITE_API char *sqlite3_win32_utf8_to_mbcs(const char *zText){
40585 if( !zText ){
40593 return winUtf8ToMbcs(zText, osAreFileApisANSI());
40599 SQLITE_API char *sqlite3_win32_utf8_to_mbcs_v2(const char *zText, int useAnsi){
40601 if( !zText ){
40609 return winUtf8ToMbcs(zText, useAnsi);
108534 char *zText = 0;
108538 zText = (char *)contextMalloc(context, (2*(i64)nBlob)+4);
108539 if( zText ){
108542 zText[(i*2)+2] = hexdigits[(zBlob[i]>>4)&0x0F];
108543 zText[(i*2)+3] = hexdigits[(zBlob[i])&0x0F];
108545 zText[(nBlob*2)+2] = '\'';
108546 zText[(nBlob*2)+3] = '\0';
108547 zText[0] = 'X';
108548 zText[1] = '\'';
108549 sqlite3_result_text(context, zText, -1, SQLITE_TRANSIENT);
108550 sqlite3_free(zText);
115339 static const char zText[] = "onoffalseyestruextrafull";
115350 if( iLength[i]==n && sqlite3StrNICmp(&zText[iOffset[i]],z,n)==0
117672 const char *zText = (const char*)sqlite3_value_text(argv[i]);
117675 if( zText ){
117676 pCsr->azArg[j] = sqlite3_mprintf("%s", zText);
159679 ** Tokenize the nul-terminated string zText and add all tokens to the
159688 const char *zText, /* Text of document to be inserted */
159710 ** zText==0. In this case, add zero token entries to the hash table and
159712 if( zText==0 ){
159717 rc = sqlite3Fts3OpenTokenizer(pTokenizer, iLangid, zText, -1, &pCsr);
159827 const char *zText = (const char *)sqlite3_value_text(apVal[i]);
159828 int rc = fts3PendingTermsAdd(p, iLangid, zText, iCol, &aSz[iCol]);
159983 const char *zText = (const char *)sqlite3_column_text(pSelect, i);
159984 rc = fts3PendingTermsAdd(p, iLangid, zText, -1, &aSz[iCol]);
161935 const unsigned char *zText = sqlite3_column_text(pStmt, iCol);
161936 if( zText ){
161940 for(i=0; zText[i]>='0' && zText[i]<='9'; i++){
161941 iVal = iVal*10 + (zText[i] - '0');
161944 while( zText[i]==' ' ) i++;
161946 if( zText[i]=='-' ){
161950 for(/* no-op */; zText[i]>='0' && zText[i]<='9'; i++){
161951 iVal = iVal*10 + (zText[i] - '0');
164100 const char *zText = (const char *)sqlite3_column_text(pStmt, iCol+1);
164104 rc = sqlite3Fts3OpenTokenizer(p->pTokenizer, iLang, zText, nText,&pT);
164109 int iPos = 0; /* Position of token in zText */
164275 const char *zText = (const char *)sqlite3_column_text(pCsr->pStmt, i+1);
164278 rc = sqlite3Fts3OpenTokenizer(pT, pCsr->iLangid, zText, -1, &pTC);
164283 int iPos = 0; /* Position of token in zText */
170603 char *zText = 0;
170636 if( zText ){
170637 char *zTextNew = sqlite3_mprintf("%s {%s}", zText, zCell);
170638 sqlite3_free(zText);
170639 zText = zTextNew;
170641 zText = sqlite3_mprintf("{%s}", zCell);
170645 sqlite3_result_text(ctx, zText, -1, sqlite3_free);
193321 char *zText;
193323 zText = sqlite3_mprintf("");
193325 zText = fts5ExprPrintTcl(pConfig, zNearsetCmd, pExpr->pRoot);
193327 zText = fts5ExprPrint(pConfig, pExpr->pRoot);
193329 if( zText==0 ){
193332 sqlite3_result_text(pCtx, zText, -1, SQLITE_TRANSIENT);
193333 sqlite3_free(zText);
203878 const char *zText;
203881 zText = (const char*)sqlite3_column_text(pSeek, iCol);
203884 zText = (const char*)sqlite3_value_text(apVal[iCol-1]);
203889 zText, nText, (void*)&ctx, fts5StorageInsertCallback