| /sqlite-3.40.0/src/ |
| H A D | utf.c | 256 zOut = sqlite3DbMallocRaw(pMem->db, len); in sqlite3VdbeMemTranslate() 257 if( !zOut ){ in sqlite3VdbeMemTranslate() 260 z = zOut; in sqlite3VdbeMemTranslate() 277 pMem->n = (int)(z - zOut); in sqlite3VdbeMemTranslate() 340 pMem->n = (int)(z - zOut); in sqlite3VdbeMemTranslate() 349 pMem->z = (char*)zOut; in sqlite3VdbeMemTranslate() 446 unsigned char *zOut = zIn; in sqlite3Utf8To8() local 450 while( zIn[0] && zOut<=zIn ){ in sqlite3Utf8To8() 453 WRITE_UTF8(zOut, c); in sqlite3Utf8To8() 456 *zOut = 0; in sqlite3Utf8To8() [all …]
|
| H A D | test_func.c | 361 char *zOut; in testHexToUtf16be() local 366 if( zOut==0 ){ in testHexToUtf16be() 369 testHexToBin(zIn, zOut); in testHexToUtf16be() 388 char *zOut; in testHexToUtf8() local 393 if( zOut==0 ){ in testHexToUtf8() 396 testHexToBin(zIn, zOut); in testHexToUtf8() 415 char *zOut; in testHexToUtf16le() local 420 if( zOut==0 ){ in testHexToUtf16le() 423 testHexToBin(zIn, zOut); in testHexToUtf16le() 446 char zOut[20]; in real2hex() local [all …]
|
| H A D | os_kv.c | 87 static int kvvfsRandomness(sqlite3_vfs*, int nByte, char *zOut); 687 char *zOut; in kvvfsSyncJrnl() local 692 zOut = sqlite3_malloc64( pFile->nJrnl*2 + 50 ); in kvvfsSyncJrnl() 693 if( zOut==0 ){ in kvvfsSyncJrnl() 699 zOut[i++] = 'a' + (n%26); in kvvfsSyncJrnl() 702 zOut[i++] = ' '; in kvvfsSyncJrnl() 703 kvvfsEncode(pFile->aJrnl, pFile->nJrnl, &zOut[i]); in kvvfsSyncJrnl() 705 sqlite3_free(zOut); in kvvfsSyncJrnl() 898 char *zOut in kvvfsFullPathname() argument 907 memcpy(zOut, zPath, nPath); in kvvfsFullPathname() [all …]
|
| H A D | func.c | 1165 unsigned char *z, *zOut; in charFunc() local 1179 *zOut++ = (u8)(c&0xFF); in charFunc() 1296 if( zOut==0 ){ in replaceFunc() 1303 zOut[j++] = zStr[i]; in replaceFunc() 1311 sqlite3_free(zOut); in replaceFunc() 1319 zOld = zOut; in replaceFunc() 1320 zOut = sqlite3Realloc(zOut, (int)nOut + (nOut - nStr - 1)); in replaceFunc() 1321 if( zOut==0 ){ in replaceFunc() 1328 memcpy(&zOut[j], zRep, nRep); in replaceFunc() 1334 memcpy(&zOut[j], &zStr[i], nStr-i); in replaceFunc() [all …]
|
| H A D | printf.c | 238 char *zOut; /* Rendering buffer */ in sqlite3_str_vappendf() local 465 zOut = buf; in sqlite3_str_vappendf() 470 zOut = zExtra = printfTempBuf(pAccum, n); in sqlite3_str_vappendf() 471 if( zOut==0 ) return; in sqlite3_str_vappendf() 474 bufpt = &zOut[nOut-1]; in sqlite3_str_vappendf() 492 length = (int)(&zOut[nOut-1]-bufpt); in sqlite3_str_vappendf() 518 length = (int)(&zOut[nOut-1]-bufpt); in sqlite3_str_vappendf() 613 zOut = bufpt; in sqlite3_str_vappendf() 645 assert( bufpt>zOut ); in sqlite3_str_vappendf() 674 length = (int)(bufpt-zOut); in sqlite3_str_vappendf() [all …]
|
| H A D | test_malloc.c | 306 char zOut[100]; in test_malloc() local 313 pointerToText(p, zOut); in test_malloc() 314 Tcl_AppendResult(interp, zOut, NULL); in test_malloc() 331 char zOut[100]; in test_realloc() local 342 pointerToText(p, zOut); in test_realloc() 343 Tcl_AppendResult(interp, zOut, NULL); in test_realloc() 392 char *zOut; in test_memset() local 417 zOut = p; in test_memset() 419 zOut[i] = zBin[i%n]; in test_memset()
|
| H A D | vacuum.c | 163 const char *zOut; /* Name of output file */ in sqlite3RunVacuum() local 180 zOut = (const char*)sqlite3_value_text(pOut); in sqlite3RunVacuum() 184 zOut = ""; in sqlite3RunVacuum() 220 rc = execSqlF(db, pzErrMsg, "ATTACH %Q AS vacuum_db", zOut); in sqlite3RunVacuum()
|
| H A D | json.c | 612 char *zOut; in jsonReturn() local 616 zOut = sqlite3_malloc( n+1 ); in jsonReturn() 617 if( zOut==0 ){ in jsonReturn() 624 zOut[j++] = c; in jsonReturn() 632 zOut[j++] = (char)v; in jsonReturn() 635 zOut[j++] = 0x80 | (v&0x3f); in jsonReturn() 647 zOut[j++] = 0xf0 | (v>>18); in jsonReturn() 650 zOut[j++] = 0x80 | (v&0x3f); in jsonReturn() 652 zOut[j++] = 0xe0 | (v>>12); in jsonReturn() 669 zOut[j++] = c; in jsonReturn() [all …]
|
| /sqlite-3.40.0/ext/fts3/ |
| H A D | fts3_unicode.c | 58 #define WRITE_UTF8(zOut, c) { \ argument 60 *zOut++ = (u8)(c&0xFF); \ 63 *zOut++ = 0xC0 + (u8)((c>>6)&0x1F); \ 64 *zOut++ = 0x80 + (u8)(c & 0x3F); \ 67 *zOut++ = 0xE0 + (u8)((c>>12)&0x0F); \ 326 char *zOut; in unicodeNext() local 342 zOut = pCsr->zToken; in unicodeNext() 347 if( (zOut-pCsr->zToken)>=(pCsr->nAlloc-4) ){ in unicodeNext() 350 zOut = &zNew[zOut - pCsr->zToken]; in unicodeNext() 359 WRITE_UTF8(zOut, iOut); in unicodeNext() [all …]
|
| H A D | fts3_porter.c | 294 static void copy_stemmer(const char *zIn, int nIn, char *zOut, int *pnOut){ in copy_stemmer() argument 300 zOut[i] = c - 'A' + 'a'; in copy_stemmer() 303 zOut[i] = c; in copy_stemmer() 309 zOut[j] = zOut[i]; in copy_stemmer() 313 zOut[i] = 0; in copy_stemmer() 341 static void porter_stemmer(const char *zIn, int nIn, char *zOut, int *pnOut){ in porter_stemmer() argument 348 copy_stemmer(zIn, nIn, zOut, pnOut); in porter_stemmer() 360 copy_stemmer(zIn, nIn, zOut, pnOut); in porter_stemmer() 568 zOut[i] = 0; in porter_stemmer() 570 zOut[--i] = *(z++); in porter_stemmer()
|
| /sqlite-3.40.0/ext/misc/ |
| H A D | fossildelta.c | 347 memcpy(zDelta, zOut, lenOut); in delta_create() 374 hash_init(&h, &zOut[base]); in delta_create() 410 if( zSrc[x]!=zOut[y] ) break; in delta_create() 477 hash_next(&h, zOut[base+i+NHASH]); in delta_create() 491 putInt(checksum(zOut, lenOut), &zDelta); in delta_create() 547 char *zOrigOut = zOut; in delta_apply() 577 memcpy(zOut, &zSrc[ofst], cnt); in delta_apply() 578 zOut += cnt; in delta_apply() 592 memcpy(zOut, zDelta, cnt); in delta_apply() 593 zOut += cnt; in delta_apply() [all …]
|
| H A D | rot13.c | 49 unsigned char *zOut; in rot13func() local 58 zOut = zTemp; in rot13func() 60 zOut = zToFree = (unsigned char*)sqlite3_malloc64( nIn+1 ); in rot13func() 61 if( zOut==0 ){ in rot13func() 66 for(i=0; i<nIn; i++) zOut[i] = rot13(zIn[i]); in rot13func() 67 zOut[i] = 0; in rot13func() 68 sqlite3_result_text(context, (char*)zOut, i, SQLITE_TRANSIENT); in rot13func()
|
| H A D | spellfix.c | 236 if( nOut==0 || c!=zOut[nOut-1] ) zOut[nOut++] = c; in phoneticHash() 238 zOut[nOut] = 0; in phoneticHash() 239 return zOut; in phoneticHash() 257 if( zOut==0 ){ in phoneticHashSqlFunc() 1762 return zOut; in transliterate() 1825 if( zOut==0 ){ in transliterateSqlFunc() 2006 char *zOut; in spellfix1Dequote() local 2016 zOut[i] = 0; in spellfix1Dequote() 2017 c = zOut[0]; in spellfix1Dequote() 2020 zOut[j++] = zOut[i]; in spellfix1Dequote() [all …]
|
| H A D | sha1.c | 199 char *zOut /* Store hexadecimal hash here */ in hash_finish() argument 219 zOut[i*2] = zEncode[(digest[i]>>4)&0xf]; in hash_finish() 220 zOut[i*2+1] = zEncode[digest[i] & 0xf]; in hash_finish() 222 zOut[i*2]= 0; in hash_finish() 244 char zOut[44]; in sha1Func() local 254 hash_finish(&cx, zOut); in sha1Func() 255 sqlite3_result_text(context, zOut, 40, SQLITE_TRANSIENT); in sha1Func() 284 char zOut[44]; in sha1QueryFunc() local 368 hash_finish(&cx, zOut); in sha1QueryFunc() 369 sqlite3_result_text(context, zOut, 40, SQLITE_TRANSIENT); in sha1QueryFunc()
|
| H A D | closure.c | 426 char *zOut; /* Output (dequoted) string */ in closureDequote() local 429 zOut = sqlite3_malloc64(nIn+1); in closureDequote() 430 if( zOut ){ in closureDequote() 434 memcpy(zOut, zIn, (size_t)(nIn+1)); in closureDequote() 442 zOut[iOut++] = zIn[iIn]; in closureDequote() 445 assert( (int)strlen(zOut)<=nIn ); in closureDequote() 447 return zOut; in closureDequote()
|
| /sqlite-3.40.0/ext/fts5/ |
| H A D | fts5_tokenize.c | 463 char *zOut = aFold; in fts5UnicodeTokenize() local 493 if( zOut>pEnd ){ in fts5UnicodeTokenize() 499 zOut = &aFold[zOut - p->aFold]; in fts5UnicodeTokenize() 514 if( iCode ) WRITE_UTF8(zOut, iCode); in fts5UnicodeTokenize() 524 *zOut++ = *zCsr + 32; in fts5UnicodeTokenize() 526 *zOut++ = *zCsr; in fts5UnicodeTokenize() 1333 char *zOut = aBuf; in fts5TriTokenize() local 1342 WRITE_UTF8(zOut, iCode); in fts5TriTokenize() 1350 WRITE_UTF8(zOut, iCode); in fts5TriTokenize() 1354 WRITE_UTF8(zOut, iCode); in fts5TriTokenize() [all …]
|
| H A D | fts5_aux.c | 122 char *zOut; /* Output value */ member 141 p->zOut = sqlite3_mprintf("%z%.*s", p->zOut, n, z); in fts5HighlightAppend() 142 if( p->zOut==0 ) *pRc = SQLITE_NOMEM; in fts5HighlightAppend() 237 sqlite3_result_text(pCtx, (const char*)ctx.zOut, -1, SQLITE_TRANSIENT); in fts5HighlightFunction() 239 sqlite3_free(ctx.zOut); in fts5HighlightFunction() 518 sqlite3_result_text(pCtx, (const char*)ctx.zOut, -1, SQLITE_TRANSIENT); in fts5SnippetFunction() 522 sqlite3_free(ctx.zOut); in fts5SnippetFunction()
|
| H A D | fts5_config.c | 427 char *zOut = sqlite3_malloc64(nIn+1); in fts5ConfigGobbleWord() local 433 if( zOut==0 ){ in fts5ConfigGobbleWord() 436 memcpy(zOut, zIn, (size_t)(nIn+1)); in fts5ConfigGobbleWord() 437 if( fts5_isopenquote(zOut[0]) ){ in fts5ConfigGobbleWord() 438 int ii = fts5Dequote(zOut); in fts5ConfigGobbleWord() 444 zOut[zRet-zIn] = '\0'; in fts5ConfigGobbleWord() 450 sqlite3_free(zOut); in fts5ConfigGobbleWord() 452 *pzOut = zOut; in fts5ConfigGobbleWord()
|
| /sqlite-3.40.0/ext/fts2/ |
| H A D | fts2_porter.c | 295 static void copy_stemmer(const char *zIn, int nIn, char *zOut, int *pnOut){ in copy_stemmer() argument 301 zOut[i] = c - 'A' + 'a'; in copy_stemmer() 304 zOut[i] = c; in copy_stemmer() 310 zOut[j] = zOut[i]; in copy_stemmer() 314 zOut[i] = 0; in copy_stemmer() 342 static void porter_stemmer(const char *zIn, int nIn, char *zOut, int *pnOut){ in porter_stemmer() argument 349 copy_stemmer(zIn, nIn, zOut, pnOut); in porter_stemmer() 361 copy_stemmer(zIn, nIn, zOut, pnOut); in porter_stemmer() 553 zOut[i] = 0; in porter_stemmer() 555 zOut[--i] = *(z++); in porter_stemmer()
|
| /sqlite-3.40.0/ext/fts1/ |
| H A D | fts1_porter.c | 293 static void copy_stemmer(const char *zIn, int nIn, char *zOut, int *pnOut){ in copy_stemmer() argument 299 zOut[i] = c - 'A' + 'a'; in copy_stemmer() 302 zOut[i] = c; in copy_stemmer() 308 zOut[j] = zOut[i]; in copy_stemmer() 312 zOut[i] = 0; in copy_stemmer() 340 static void porter_stemmer(const char *zIn, int nIn, char *zOut, int *pnOut){ in porter_stemmer() argument 347 copy_stemmer(zIn, nIn, zOut, pnOut); in porter_stemmer() 359 copy_stemmer(zIn, nIn, zOut, pnOut); in porter_stemmer() 551 zOut[i] = 0; in porter_stemmer() 553 zOut[--i] = *(z++); in porter_stemmer()
|
| /sqlite-3.40.0/ext/lsm1/lsm-test/ |
| H A D | lsmtest_io.c | 174 char *zOut = 0; in readStdin() local 181 zOut = realloc(zOut, nAlloc); in readStdin() 182 nRead = fread(&zOut[nOut], 1, nAlloc-nOut-1, stdin); in readStdin() 186 zOut[nOut] = '\0'; in readStdin() 189 *pzOut = zOut; in readStdin()
|
| /sqlite-3.40.0/ext/session/ |
| H A D | changeset.c | 228 const char *zOut = argv[4]; in main() local 230 out = fopen(zOut, "wb"); in main() 232 fprintf(stderr, "cannot open \"%s\" for writing\n", zOut); in main() 241 szOut, zOut); in main() 299 const char *zOut = argv[3]; in main() local 301 out = fopen(zOut, "wb"); in main() 303 fprintf(stderr, "cannot open \"%s\" for writing\n", zOut); in main() 311 szOut, zOut); in main()
|
| /sqlite-3.40.0/ext/userauth/ |
| H A D | userauth.c | 158 u8 *zOut; in sqlite3CryptFunc() local 169 zOut = sqlite3_malloc( nIn+sizeof(zSalt) ); in sqlite3CryptFunc() 170 if( zOut==0 ){ in sqlite3CryptFunc() 173 memcpy(zOut, zSalt, sizeof(zSalt)); in sqlite3CryptFunc() 175 zOut[ii+sizeof(zSalt)] = zIn[ii]^zSalt[ii&0x7]; in sqlite3CryptFunc() 177 sqlite3_result_blob(context, zOut, nIn+sizeof(zSalt), sqlite3_free); in sqlite3CryptFunc()
|
| /sqlite-3.40.0/ext/repair/ |
| H A D | checkfreelist.c | 233 char *zOut = 0; in checkfreelist_function() local 238 rc = checkFreelist(db, zDb, &zOut); in checkfreelist_function() 240 sqlite3_result_text(pCtx, zOut?zOut:"ok", -1, SQLITE_TRANSIENT); in checkfreelist_function() 245 sqlite3_free(zOut); in checkfreelist_function()
|
| /sqlite-3.40.0/test/ |
| H A D | speedtest1.c | 333 i += (int)strlen(zOut+i); in speedtest1_numbername() 337 if( i && i<nOut-1 ) zOut[i++] = ' '; in speedtest1_numbername() 340 i += (int)strlen(zOut+i); in speedtest1_numbername() 344 if( i && i<nOut-1 ) zOut[i++] = ' '; in speedtest1_numbername() 347 i += (int)strlen(zOut+i); in speedtest1_numbername() 351 if( i && i<nOut-1 ) zOut[i++] = ' '; in speedtest1_numbername() 353 i += (int)strlen(zOut+i); in speedtest1_numbername() 357 if( i && i<nOut-1 ) zOut[i++] = ' '; in speedtest1_numbername() 359 i += (int)strlen(zOut+i); in speedtest1_numbername() 365 i += (int)strlen(zOut+i); in speedtest1_numbername() [all …]
|