Lines Matching refs:zNum

21463 ** Compare the 19-character string zNum against the text representation
21465 ** if zNum is less than, equal to, or greater than the string.
21466 ** Note that zNum must contain exactly 19 characters.
21476 static int compare2pow63(const char *zNum, int incr){
21482 c = (zNum[i*incr]-pow63[i])*10;
21485 c = zNum[18*incr] - '8';
21495 ** Convert zNum to a 64-bit signed integer.
21497 ** If the zNum value is representable as a 64-bit twos-complement
21500 ** If zNum is exactly 9223372036854665808, return 2. This special
21504 ** If zNum is too big for a 64-bit integer and is not
21511 SQLITE_PRIVATE int sqlite3Atoi64(const char *zNum, i64 *pNum, int length, u8 enc){
21518 const char *zEnd = zNum + length;
21519 if( enc==SQLITE_UTF16BE ) zNum++;
21520 while( zNum<zEnd && sqlite3Isspace(*zNum) ) zNum+=incr;
21521 if( zNum<zEnd ){
21522 if( *zNum=='-' ){
21524 zNum+=incr;
21525 }else if( *zNum=='+' ){
21526 zNum+=incr;
21529 zStart = zNum;
21530 while( zNum<zEnd && zNum[0]=='0' ){ zNum+=incr; } /* Skip leading zeros. */
21531 for(i=0; &zNum[i]<zEnd && (c=zNum[i])>='0' && c<='9'; i+=incr){
21544 if( (c!=0 && &zNum[i]<zEnd) || (i==0 && zStart==zNum) || i>19*incr ){
21545 /* zNum is empty or contains non-numeric text or is longer
21553 /* zNum is a 19-digit numbers. Compare it against 9223372036854775808. */
21554 c = compare2pow63(zNum, incr);
21556 /* zNum is less than 9223372036854775808 so it fits */
21560 /* zNum is greater than 9223372036854775808 so it overflows */
21563 /* zNum is exactly 9223372036854775808. Fits if negative. The
21573 ** If zNum represents an integer that will fit in 32-bits, then set
21576 ** Any non-numeric characters that following zNum are ignored.
21580 SQLITE_PRIVATE int sqlite3GetInt32(const char *zNum, int *pValue){
21584 if( zNum[0]=='-' ){
21586 zNum++;
21587 }else if( zNum[0]=='+' ){
21588 zNum++;
21590 while( zNum[0]=='0' ) zNum++;
21591 for(i=0; i<11 && (c = zNum[i] - '0')>=0 && c<=9; i++){