|
|
@ -8697,8 +8697,8 @@ static int vxprintf(
|
|
|
|
}
|
|
|
|
}
|
|
|
|
bufpt = &buf[etBUFSIZE-1];
|
|
|
|
bufpt = &buf[etBUFSIZE-1];
|
|
|
|
{
|
|
|
|
{
|
|
|
|
register const char *cset; /* Use registers for speed */
|
|
|
|
const char *cset; /* Use registers for speed */
|
|
|
|
register int base;
|
|
|
|
int base;
|
|
|
|
cset = &aDigits[infop->charset];
|
|
|
|
cset = &aDigits[infop->charset];
|
|
|
|
base = infop->base;
|
|
|
|
base = infop->base;
|
|
|
|
do{ /* Convert to ascii */
|
|
|
|
do{ /* Convert to ascii */
|
|
|
@ -8964,7 +8964,7 @@ static int vxprintf(
|
|
|
|
** the output.
|
|
|
|
** the output.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
if( !flag_leftjustify ){
|
|
|
|
if( !flag_leftjustify ){
|
|
|
|
register int nspace;
|
|
|
|
int nspace;
|
|
|
|
nspace = width-length;
|
|
|
|
nspace = width-length;
|
|
|
|
if( nspace>0 ){
|
|
|
|
if( nspace>0 ){
|
|
|
|
count += nspace;
|
|
|
|
count += nspace;
|
|
|
@ -8980,7 +8980,7 @@ static int vxprintf(
|
|
|
|
count += length;
|
|
|
|
count += length;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if( flag_leftjustify ){
|
|
|
|
if( flag_leftjustify ){
|
|
|
|
register int nspace;
|
|
|
|
int nspace;
|
|
|
|
nspace = width-length;
|
|
|
|
nspace = width-length;
|
|
|
|
if( nspace>0 ){
|
|
|
|
if( nspace>0 ){
|
|
|
|
count += nspace;
|
|
|
|
count += nspace;
|
|
|
@ -10435,14 +10435,14 @@ const unsigned char sqlite3UpperToLower[] = {
|
|
|
|
** there is no consistency, we will define our own.
|
|
|
|
** there is no consistency, we will define our own.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
SQLITE_PRIVATE int sqlite3StrICmp(const char *zLeft, const char *zRight){
|
|
|
|
SQLITE_PRIVATE int sqlite3StrICmp(const char *zLeft, const char *zRight){
|
|
|
|
register unsigned char *a, *b;
|
|
|
|
unsigned char *a, *b;
|
|
|
|
a = (unsigned char *)zLeft;
|
|
|
|
a = (unsigned char *)zLeft;
|
|
|
|
b = (unsigned char *)zRight;
|
|
|
|
b = (unsigned char *)zRight;
|
|
|
|
while( *a!=0 && UpperToLower[*a]==UpperToLower[*b]){ a++; b++; }
|
|
|
|
while( *a!=0 && UpperToLower[*a]==UpperToLower[*b]){ a++; b++; }
|
|
|
|
return UpperToLower[*a] - UpperToLower[*b];
|
|
|
|
return UpperToLower[*a] - UpperToLower[*b];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
SQLITE_PRIVATE int sqlite3StrNICmp(const char *zLeft, const char *zRight, int N){
|
|
|
|
SQLITE_PRIVATE int sqlite3StrNICmp(const char *zLeft, const char *zRight, int N){
|
|
|
|
register unsigned char *a, *b;
|
|
|
|
unsigned char *a, *b;
|
|
|
|
a = (unsigned char *)zLeft;
|
|
|
|
a = (unsigned char *)zLeft;
|
|
|
|
b = (unsigned char *)zRight;
|
|
|
|
b = (unsigned char *)zRight;
|
|
|
|
while( N-- > 0 && *a!=0 && UpperToLower[*a]==UpperToLower[*b]){ a++; b++; }
|
|
|
|
while( N-- > 0 && *a!=0 && UpperToLower[*a]==UpperToLower[*b]){ a++; b++; }
|
|
|
@ -48320,7 +48320,7 @@ static int patternCompare(
|
|
|
|
const struct compareInfo *pInfo, /* Information about how to do the compare */
|
|
|
|
const struct compareInfo *pInfo, /* Information about how to do the compare */
|
|
|
|
const int esc /* The escape character */
|
|
|
|
const int esc /* The escape character */
|
|
|
|
){
|
|
|
|
){
|
|
|
|
register int c;
|
|
|
|
int c;
|
|
|
|
int invert;
|
|
|
|
int invert;
|
|
|
|
int seen;
|
|
|
|
int seen;
|
|
|
|
int c2;
|
|
|
|
int c2;
|
|
|
|