Lines Matching refs:zNum

20632 ** Compare the 19-character string zNum against the text representation
20634 ** if zNum is less than, equal to, or greater than the string.
20635 ** Note that zNum must contain exactly 19 characters.
20645 static int compare2pow63(const char *zNum, int incr){
20651 c = (zNum[i*incr]-pow63[i])*10;
20654 c = zNum[18*incr] - '8';
20664 ** Convert zNum to a 64-bit signed integer.
20666 ** If the zNum value is representable as a 64-bit twos-complement
20669 ** If zNum is exactly 9223372036854665808, return 2. This special
20673 ** If zNum is too big for a 64-bit integer and is not
20680 SQLITE_PRIVATE int sqlite3Atoi64(const char *zNum, i64 *pNum, int length, u8 enc){
20687 const char *zEnd = zNum + length;
20688 if( enc==SQLITE_UTF16BE ) zNum++;
20689 while( zNum<zEnd && sqlite3Isspace(*zNum) ) zNum+=incr;
20690 if( zNum<zEnd ){
20691 if( *zNum=='-' ){
20693 zNum+=incr;
20694 }else if( *zNum=='+' ){
20695 zNum+=incr;
20698 zStart = zNum;
20699 while( zNum<zEnd && zNum[0]=='0' ){ zNum+=incr; } /* Skip leading zeros. */
20700 for(i=0; &zNum[i]<zEnd && (c=zNum[i])>='0' && c<='9'; i+=incr){
20713 if( (c!=0 && &zNum[i]<zEnd) || (i==0 && zStart==zNum) || i>19*incr ){
20714 /* zNum is empty or contains non-numeric text or is longer
20722 /* zNum is a 19-digit numbers. Compare it against 9223372036854775808. */
20723 c = compare2pow63(zNum, incr);
20725 /* zNum is less than 9223372036854775808 so it fits */
20729 /* zNum is greater than 9223372036854775808 so it overflows */
20732 /* zNum is exactly 9223372036854775808. Fits if negative. The
20742 ** If zNum represents an integer that will fit in 32-bits, then set
20745 ** Any non-numeric characters that following zNum are ignored.
20749 SQLITE_PRIVATE int sqlite3GetInt32(const char *zNum, int *pValue){
20753 if( zNum[0]=='-' ){
20755 zNum++;
20756 }else if( zNum[0]=='+' ){
20757 zNum++;
20759 while( zNum[0]=='0' ) zNum++;
20760 for(i=0; i<11 && (c = zNum[i] - '0')>=0 && c<=9; i++){