Lines Matching refs:zIn
8581 SQLITE_API void sqlite3_str_append(sqlite3_str*, const char *zIn, int N);
8582 SQLITE_API void sqlite3_str_appendall(sqlite3_str*, const char *zIn);
19772 ** Assuming zIn points to the first byte of a UTF-8 character,
19773 ** advance zIn to point to the first byte of the next UTF-8 character.
19775 #define SQLITE_SKIP_UTF8(zIn) { \
19776 if( (*(zIn++))>=0xc0 ){ \
19777 while( (*zIn & 0xc0)==0x80 ){ zIn++; } \
33196 #define READ_UTF8(zIn, zTerm, c) \
33197 c = *(zIn++); \
33200 while( zIn!=zTerm && (*zIn & 0xc0)==0x80 ){ \
33201 c = (c<<6) + (0x3f & *(zIn++)); \
33246 unsigned char *zIn; /* Input iterator */
33279 zIn = (u8*)pMem->z;
33280 zTerm = &zIn[pMem->n&~1];
33281 while( zIn<zTerm ){
33282 temp = *zIn;
33283 *zIn = *(zIn+1);
33284 zIn++;
33285 *zIn++ = temp;
33309 /* Set zIn to point at the start of the input buffer and zTerm to point 1
33315 zIn = (u8*)pMem->z;
33316 zTerm = &zIn[pMem->n];
33326 while( zIn<zTerm ){
33327 READ_UTF8(zIn, zTerm, c);
33333 while( zIn<zTerm ){
33334 READ_UTF8(zIn, zTerm, c);
33344 while( zIn<zTerm ){
33345 c = *(zIn++);
33346 c += (*(zIn++))<<8;
33349 if( c>=0xdc00 || zIn>=zTerm ){
33352 int c2 = *(zIn++);
33353 c2 += (*(zIn++))<<8;
33355 zIn -= 2;
33362 if( zIn<zTerm ){
33363 int c2 = (*zIn++);
33364 c2 += ((*zIn++)<<8);
33373 while( zIn<zTerm ){
33374 c = (*(zIn++))<<8;
33375 c += *(zIn++);
33378 if( c>=0xdc00 || zIn>=zTerm ){
33381 int c2 = (*(zIn++))<<8;
33382 c2 += *(zIn++);
33384 zIn -= 2;
33391 if( zIn<zTerm ){
33392 int c2 = ((*zIn++)<<8);
33393 c2 += (*zIn++);
33476 SQLITE_PRIVATE int sqlite3Utf8CharLen(const char *zIn, int nByte){
33478 const u8 *z = (const u8*)zIn;
33506 SQLITE_PRIVATE int sqlite3Utf8To8(unsigned char *zIn){
33507 unsigned char *zOut = zIn;
33508 unsigned char *zStart = zIn;
33511 while( zIn[0] && zOut<=zIn ){
33512 c = sqlite3Utf8Read((const u8**)&zIn);
33547 ** zIn is a UTF-16 encoded unicode string at least nChar characters long.
33551 SQLITE_PRIVATE int sqlite3Utf16ByteLen(const void *zIn, int nChar){
33553 unsigned char const *z = zIn;
33563 return (int)(z-(unsigned char const *)zIn)
43441 const char *zIn = zPath; /* Input path for each iteration of loop */
43456 /* Call stat() on path zIn. Set bLink to true if the path is a symbolic
43460 if( osLstat(zIn, &buf)!=0 ){
43462 rc = unixLogError(SQLITE_CANTOPEN_BKPT, "lstat", zIn);
43478 nByte = osReadlink(zIn, zDel, nOut-1);
43480 rc = unixLogError(SQLITE_CANTOPEN_BKPT, "readlink", zIn);
43484 for(n = sqlite3Strlen30(zIn); n>0 && zIn[n-1]!='/'; n--);
43489 memcpy(zDel, zIn, n);
43497 zIn = zDel;
43500 assert( rc!=SQLITE_OK || zIn!=zOut || zIn[0]=='/' );
43501 if( rc==SQLITE_OK && zIn!=zOut ){
43502 rc = mkFullPathname(zIn, zOut, nOut);
43505 zIn = zOut;
80035 const u8 *zIn = &zSrcData[iOff%nSrcPgsz];
80046 memcpy(zOut, zIn, nCopy);
104489 const char *zIn = "partial index WHERE clauses";
104490 if( pNC->ncFlags & NC_IdxExpr ) zIn = "index expressions";
104492 else if( pNC->ncFlags & NC_IsCheck ) zIn = "CHECK constraints";
104495 else if( pNC->ncFlags & NC_GenCol ) zIn = "generated columns";
104497 sqlite3ErrorMsg(pParse, "%s prohibited in %s", zMsg, zIn);
107900 SQLITE_PRIVATE u32 sqlite3IsTrueOrFalse(const char *zIn){
107901 if( sqlite3StrICmp(zIn, "true")==0 ) return EP_IsTrue;
107902 if( sqlite3StrICmp(zIn, "false")==0 ) return EP_IsFalse;
119127 SQLITE_PRIVATE char sqlite3AffinityType(const char *zIn, Column *pCol){
119132 assert( zIn!=0 );
119133 while( zIn[0] ){
119134 h = (h<<8) + sqlite3UpperToLower[(*zIn)&0xff];
119135 zIn++;
119138 zChar = zIn;
119146 if( zIn[0]=='(' ) zChar = zIn;
126066 const unsigned char *zIn; /* Input string */
126078 zIn = sqlite3_value_text(argv[0]);
126079 if( zIn==0 ) return;
126081 assert( zIn==sqlite3_value_text(argv[0]) );
126117 if( len<=nIn && memcmp(zIn, azChar[i], len)==0 ) break;
126120 zIn += len;
126129 if( len<=nIn && memcmp(&zIn[nIn-len],azChar[i],len)==0 ) break;
126139 sqlite3_result_text(context, (char*)zIn, nIn, SQLITE_TRANSIENT);
126180 const u8 *zIn;
126193 zIn = (u8*)sqlite3_value_text(argv[0]);
126194 if( zIn==0 ) zIn = (u8*)"";
126195 for(i=0; zIn[i] && !sqlite3Isalpha(zIn[i]); i++){}
126196 if( zIn[i] ){
126197 u8 prevcode = iCode[zIn[i]&0x7f];
126198 zResult[0] = sqlite3Toupper(zIn[i]);
126199 for(j=1; j<4 && zIn[i]; i++){
126200 int code = iCode[zIn[i]&0x7f];
132233 void (*str_append)(sqlite3_str*, const char *zIn, int N);
132234 void (*str_appendall)(sqlite3_str*, const char *zIn);
186941 const char *zIn = z;
186949 rc = getNextNode(pParse, zIn, nIn, &p, &nByte);
187041 zIn += nByte;
188295 static void copy_stemmer(const char *zIn, int nIn, char *zOut, int *pnOut){
188299 char c = zIn[i];
188320 ** Stem the input word zIn[0..nIn-1]. Store the output in zOut.
188342 static void porter_stemmer(const char *zIn, int nIn, char *zOut, int *pnOut){
188349 copy_stemmer(zIn, nIn, zOut, pnOut);
188353 char c = zIn[i];
188361 copy_stemmer(zIn, nIn, zOut, pnOut);
197504 #define READ_UTF8(zIn, zTerm, c) \
197505 c = *(zIn++); \
197508 while( zIn!=zTerm && (*zIn & 0xc0)==0x80 ){ \
197509 c = (c<<6) + (0x3f & *(zIn++)); \
197574 ** all characters in string zIn/nIn to be separators (if bAlnum==0) or
197577 ** For each codepoint in the zIn/nIn string, this function checks if the
197585 ** identifies as a diacritic) occurs in the zIn/nIn string it is ignored.
197592 const char *zIn, /* Array of characters to make exceptions */
197595 const unsigned char *z = (const unsigned char *)zIn;
197620 z = (const unsigned char *)zIn;
198460 /* Append N bytes from zIn onto the end of the JsonString string.
198462 static void jsonAppendRaw(JsonString *p, const char *zIn, u32 N){
198465 memcpy(p->zBuf+p->nUsed, zIn, N);
198497 /* Append the N-byte string in zIn to the end of the JsonString string
198502 static void jsonAppendString(JsonString *p, const char *zIn, u32 N){
198504 if( zIn==0 || ((N+p->nUsed+2 >= p->nAlloc) && jsonGrow(p,N+2)!=0) ) return;
198507 unsigned char c = ((unsigned const char*)zIn)[i];
207450 #define SQLITE_ICU_READ_UTF8(zIn, c) \
207451 c = *(zIn++); \
207454 while( (*zIn & 0xc0)==0x80 ){ \
207455 c = (c<<6) + (0x3f & *(zIn++)); \
207459 #define SQLITE_ICU_SKIP_UTF8(zIn) \
207460 assert( *zIn ); \
207461 if( *(zIn++)>=0xc0 ){ \
207462 while( (*zIn & 0xc0)==0x80 ){zIn++;} \
209324 static unsigned int rbuDeltaChecksum(const char *zIn, size_t N){
209325 const unsigned char *z = (const unsigned char *)zIn;
209759 const char *zIn;
209762 zIn = (const char*)sqlite3_value_text(argv[0]);
209763 if( zIn ){
209767 sqlite3_result_text(pCtx, zIn, -1, SQLITE_STATIC);
209770 if( strlen(zIn)>4 && memcmp("data", zIn, 4)==0 ){
209772 for(i=4; zIn[i]>='0' && zIn[i]<='9'; i++);
209773 if( zIn[i]=='_' && zIn[i+1] ){
209774 sqlite3_result_text(pCtx, &zIn[i+1], -1, SQLITE_STATIC);
213682 char *zIn = *(char**)pArg;
213683 char *zOut = sqlite3_mprintf("rbu(%s)/%z", pRbuVfs->base.zName, zIn);
217670 const char *zIn = zStr;
217672 while( *zIn ){
217673 if( *zIn=='"' ) *zOut++ = '"';
217674 *zOut++ = *(zIn++);
224396 int iPos; /* Current token offset in zIn[] */
224401 const char *zIn; /* Input text */
224403 int iOff; /* Current offset within zIn[] */
224454 fts5HighlightAppend(&rc, p, &p->zIn[p->iOff], iStartOff - p->iOff);
224463 fts5HighlightAppend(&rc, p, &p->zIn[p->iOff], iEndOff - p->iOff);
224472 fts5HighlightAppend(&rc, p, &p->zIn[p->iOff], iEndOff - p->iOff);
224506 rc = pApi->xColumnText(pFts, iCol, &ctx.zIn, &ctx.nIn);
224508 if( ctx.zIn ){
224514 rc = pApi->xTokenize(pFts, ctx.zIn, ctx.nIn, (void*)&ctx,fts5HighlightCb);
224516 fts5HighlightAppend(&rc, &ctx, &ctx.zIn[ctx.iOff], ctx.nIn - ctx.iOff);
224767 rc = pApi->xColumnText(pFts, iBestCol, &ctx.zIn, &ctx.nIn);
224772 if( ctx.zIn ){
224791 rc = pApi->xTokenize(pFts, ctx.zIn, ctx.nIn, (void*)&ctx,fts5HighlightCb);
224794 fts5HighlightAppend(&rc, &ctx, &ctx.zIn[ctx.iOff], ctx.nIn - ctx.iOff);
225810 ** Gobble up the first bareword or quoted word from the input buffer zIn.
225826 const char *zIn, /* Buffer to gobble string/bareword from */
225832 sqlite3_int64 nIn = strlen(zIn);
225842 memcpy(zOut, zIn, (size_t)(nIn+1));
225845 zRet = &zIn[ii];
225848 zRet = fts5ConfigSkipBareword(zIn);
225850 zOut[zRet-zIn] = '\0';
226160 ** Parameter zIn contains a rank() function specification. The format of
226169 const char *zIn, /* Input string */
226173 const char *p = zIn;
226299 const char *zIn = (const char*)sqlite3_value_text(pVal);
226302 rc = sqlite3Fts5ConfigParseRank(zIn, &zRank, &zRankArgs);
228803 char *zIn = p->zTerm;
228805 while( *zIn ){
228806 if( *zIn=='"' ) zQuoted[i++] = '"';
228807 zQuoted[i++] = *zIn++;
241121 #define READ_UTF8(zIn, zTerm, c) \
241122 c = *(zIn++); \
241125 while( zIn!=zTerm && (*zIn & 0xc0)==0x80 ){ \
241126 c = (c<<6) + (0x3f & *(zIn++)); \
242251 const unsigned char *zIn = (const unsigned char*)pText;
242252 const unsigned char *zEof = &zIn[nText];
242258 int iStart = zIn - (const unsigned char*)pText;
242261 READ_UTF8(zIn, zEof, iCode);
242263 zNext = zIn;
242264 if( zIn<zEof ){
242267 READ_UTF8(zIn, zEof, iCode);
242272 if( zIn<zEof ){
242275 READ_UTF8(zIn, zEof, iCode);
242284 zIn = zNext;