Lines Matching defs:nChar

17120   u32  nChar;          /* Length of the string so far */
17845 SQLITE_PRIVATE int sqlite3Utf16ByteLen(const void *pData, int nChar);
26473 *(va_arg(ap,int*)) = pAccum->nChar;
26630 assert( p->nChar+(i64)N >= p->nAlloc ); /* Only called if really needed */
26637 N = p->nAlloc - p->nChar - 1;
26642 i64 szNew = p->nChar;
26644 if( szNew+p->nChar<=p->mxAlloc ){
26647 szNew += p->nChar;
26662 assert( p->zText!=0 || p->nChar==0 );
26663 if( !isMalloced(p) && p->nChar>0 ) memcpy(zNew, p->zText, p->nChar);
26680 testcase( p->nChar + (i64)N > 0x7fffffff );
26681 if( p->nChar+(i64)N >= p->nAlloc && (N = sqlite3StrAccumEnlarge(p, N))<=0 ){
26684 while( (N--)>0 ) p->zText[p->nChar++] = c;
26698 memcpy(&p->zText[p->nChar], z, N);
26699 p->nChar += N;
26709 assert( p->zText!=0 || p->nChar==0 || p->accError );
26712 if( p->nChar+N >= p->nAlloc ){
26716 p->nChar += N;
26717 memcpy(&p->zText[p->nChar-N], z, N);
26737 zText = sqlite3DbMallocRaw(p->db, p->nChar+1 );
26739 memcpy(zText, p->zText, p->nChar+1);
26749 p->zText[p->nChar] = 0;
26787 p->nChar = 0;
26890 zBuf[acc.nChar] = 0;
27046 assert( acc.nChar>0 );
27047 if( zBuf[acc.nChar-1]!='\n' ) sqlite3StrAccumAppend(&acc, "\n", 1);
28389 ** zIn is a UTF-16 encoded unicode string at least nChar characters long.
28390 ** Return the number of bytes in the first nChar unicode characters
28391 ** in pZ. nChar must be non-negative.
28393 SQLITE_PRIVATE int sqlite3Utf16ByteLen(const void *zIn, int nChar){
28399 while( n<nChar ){
28404 while( n<nChar ){
40377 int nChar;
40380 nChar = osMultiByteToWideChar(CP_UTF8, 0, zText, -1, NULL, 0);
40381 if( nChar==0 ){
40384 zWideText = sqlite3MallocZero( nChar*sizeof(WCHAR) );
40388 nChar = osMultiByteToWideChar(CP_UTF8, 0, zText, -1, zWideText,
40389 nChar);
40390 if( nChar==0 ){
69497 if( pCheck->errMsg.nChar ){
107764 n = str.nChar;
108792 int nChar; /* Number of characters in zCharSet */
108804 nChar = 1;
108812 for(z=zCharSet, nChar=0; *z; nChar++){
108815 if( nChar>0 ){
108816 azChar = contextMalloc(context, ((i64)nChar)*(sizeof(char*)+1));
108820 aLen = (unsigned char*)&azChar[nChar];
108821 for(z=zCharSet, nChar=0; *z; nChar++){
108822 azChar[nChar] = (unsigned char *)z;
108824 aLen[nChar] = (u8)(z - azChar[nChar]);
108828 if( nChar>0 ){
108833 for(i=0; i<nChar; i++){
108837 if( i>=nChar ) break;
108845 for(i=0; i<nChar; i++){
108849 if( i>=nChar ) break;
118891 u8 nChar; /* Length of the keyword in characters */
118909 if( p->n==aKeyword[j].nChar
171892 int nChar; /* Number of UChar elements in pInput */
171958 int nChar;
171972 nChar = nInput+1;
171975 ((nChar+3)&~3) * sizeof(UChar) + /* IcuCursor.aChar[] */
171976 (nChar+1) * sizeof(int) /* IcuCursor.aOffset[] */
171983 pCsr->aOffset = (int *)&pCsr->aChar[(nChar+3)&~3];
171990 U16_APPEND(pCsr->aChar, iOut, nChar, c, isError);
172009 pCsr->nChar = iOut;
172055 U16_NEXT(pCsr->aChar, iWhite, pCsr->nChar, c);
175465 int nChar;
175468 nChar = MultiByteToWideChar(CP_UTF8, 0, zFilename, -1, NULL, 0);
175469 if( nChar==0 ){
175472 zWideFilename = sqlite3_malloc64( nChar*sizeof(zWideFilename[0]) );
175476 memset(zWideFilename, 0, nChar*sizeof(zWideFilename[0]));
175477 nChar = MultiByteToWideChar(CP_UTF8, 0, zFilename, -1, zWideFilename,
175478 nChar);
175479 if( nChar==0 ){
186939 ** size. Return the number of bytes in the nChar character prefix of the
186940 ** buffer, or 0 if there are less than nChar characters in total.
186945 int nChar
199461 ** size. Return the number of bytes in the nChar character prefix of the
199462 ** buffer, or 0 if there are less than nChar characters in total.
199467 int nChar
199471 for(i=0; i<nChar; i++){
199472 if( n>=nByte ) return 0; /* Input contains fewer than nChar chars */
199485 int nChar = 0;
199491 nChar++;
199493 return nChar;
199525 const int nChar = pConfig->aPrefix[i];
199526 int nByte = sqlite3Fts5IndexCharlenToBytelen(pToken, nToken, nChar);
199577 int nChar = fts5IndexCharlen(pToken, nToken);
199579 if( pConfig->aPrefix[iIdx-1]==nChar ) break;
204309 const int nChar = pCtx->pConfig->aPrefix[ii];
204310 int nByte = sqlite3Fts5IndexCharlenToBytelen(pToken, nToken, nChar);