Lines Matching refs:zNum

21027 ** Compare the 19-character string zNum against the text representation
21029 ** if zNum is less than, equal to, or greater than the string.
21030 ** Note that zNum must contain exactly 19 characters.
21040 static int compare2pow63(const char *zNum, int incr){
21046 c = (zNum[i*incr]-pow63[i])*10;
21049 c = zNum[18*incr] - '8';
21059 ** Convert zNum to a 64-bit signed integer.
21061 ** If the zNum value is representable as a 64-bit twos-complement
21064 ** If zNum is exactly 9223372036854665808, return 2. This special
21068 ** If zNum is too big for a 64-bit integer and is not
21075 SQLITE_PRIVATE int sqlite3Atoi64(const char *zNum, i64 *pNum, int length, u8 enc){
21082 const char *zEnd = zNum + length;
21083 if( enc==SQLITE_UTF16BE ) zNum++;
21084 while( zNum<zEnd && sqlite3Isspace(*zNum) ) zNum+=incr;
21085 if( zNum<zEnd ){
21086 if( *zNum=='-' ){
21088 zNum+=incr;
21089 }else if( *zNum=='+' ){
21090 zNum+=incr;
21093 zStart = zNum;
21094 while( zNum<zEnd && zNum[0]=='0' ){ zNum+=incr; } /* Skip leading zeros. */
21095 for(i=0; &zNum[i]<zEnd && (c=zNum[i])>='0' && c<='9'; i+=incr){
21108 if( (c!=0 && &zNum[i]<zEnd) || (i==0 && zStart==zNum) || i>19*incr ){
21109 /* zNum is empty or contains non-numeric text or is longer
21117 /* zNum is a 19-digit numbers. Compare it against 9223372036854775808. */
21118 c = compare2pow63(zNum, incr);
21120 /* zNum is less than 9223372036854775808 so it fits */
21124 /* zNum is greater than 9223372036854775808 so it overflows */
21127 /* zNum is exactly 9223372036854775808. Fits if negative. The
21137 ** If zNum represents an integer that will fit in 32-bits, then set
21140 ** Any non-numeric characters that following zNum are ignored.
21144 SQLITE_PRIVATE int sqlite3GetInt32(const char *zNum, int *pValue){
21148 if( zNum[0]=='-' ){
21150 zNum++;
21151 }else if( zNum[0]=='+' ){
21152 zNum++;
21154 while( zNum[0]=='0' ) zNum++;
21155 for(i=0; i<11 && (c = zNum[i] - '0')>=0 && c<=9; i++){