亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? printf.c

?? sqlite庫
?? C
?? 第 1 頁 / 共 2 頁
字號:
        if( precision<0 ) precision = 6;         /* Set default precision */        if( precision>etBUFSIZE/2-10 ) precision = etBUFSIZE/2-10;        if( realvalue<0.0 ){          realvalue = -realvalue;          prefix = '-';        }else{          if( flag_plussign )          prefix = '+';          else if( flag_blanksign )    prefix = ' ';          else                         prefix = 0;        }        if( xtype==etGENERIC && precision>0 ) precision--;#if 0        /* Rounding works like BSD when the constant 0.4999 is used.  Wierd! */        for(idx=precision, rounder=0.4999; idx>0; idx--, rounder*=0.1);#else        /* It makes more sense to use 0.5 */        for(idx=precision, rounder=0.5; idx>0; idx--, rounder*=0.1){}#endif        if( xtype==etFLOAT ) realvalue += rounder;        /* Normalize realvalue to within 10.0 > realvalue >= 1.0 */        exp = 0;        if( realvalue>0.0 ){          while( realvalue>=1e32 && exp<=350 ){ realvalue *= 1e-32; exp+=32; }          while( realvalue>=1e8 && exp<=350 ){ realvalue *= 1e-8; exp+=8; }          while( realvalue>=10.0 && exp<=350 ){ realvalue *= 0.1; exp++; }          while( realvalue<1e-8 && exp>=-350 ){ realvalue *= 1e8; exp-=8; }          while( realvalue<1.0 && exp>=-350 ){ realvalue *= 10.0; exp--; }          if( exp>350 || exp<-350 ){            bufpt = "NaN";            length = 3;            break;          }        }        bufpt = buf;        /*        ** If the field type is etGENERIC, then convert to either etEXP        ** or etFLOAT, as appropriate.        */        flag_exp = xtype==etEXP;        if( xtype!=etFLOAT ){          realvalue += rounder;          if( realvalue>=10.0 ){ realvalue *= 0.1; exp++; }        }        if( xtype==etGENERIC ){          flag_rtz = !flag_alternateform;          if( exp<-4 || exp>precision ){            xtype = etEXP;          }else{            precision = precision - exp;            xtype = etFLOAT;          }        }else{          flag_rtz = 0;        }        if( xtype==etEXP ){          e2 = 0;        }else{          e2 = exp;        }        nsd = 0;        flag_dp = (precision>0) | flag_alternateform | flag_altform2;        /* The sign in front of the number */        if( prefix ){          *(bufpt++) = prefix;        }        /* Digits prior to the decimal point */        if( e2<0 ){          *(bufpt++) = '0';        }else{          for(; e2>=0; e2--){            *(bufpt++) = et_getdigit(&realvalue,&nsd);          }        }        /* The decimal point */        if( flag_dp ){          *(bufpt++) = '.';        }        /* "0" digits after the decimal point but before the first        ** significant digit of the number */        for(e2++; e2<0 && precision>0; precision--, e2++){          *(bufpt++) = '0';        }        /* Significant digits after the decimal point */        while( (precision--)>0 ){          *(bufpt++) = et_getdigit(&realvalue,&nsd);        }        /* Remove trailing zeros and the "." if no digits follow the "." */        if( flag_rtz && flag_dp ){          while( bufpt[-1]=='0' ) *(--bufpt) = 0;          assert( bufpt>buf );          if( bufpt[-1]=='.' ){            if( flag_altform2 ){              *(bufpt++) = '0';            }else{              *(--bufpt) = 0;            }          }        }        /* Add the "eNNN" suffix */        if( flag_exp || (xtype==etEXP && exp) ){          *(bufpt++) = aDigits[infop->charset];          if( exp<0 ){            *(bufpt++) = '-'; exp = -exp;          }else{            *(bufpt++) = '+';          }          if( exp>=100 ){            *(bufpt++) = (exp/100)+'0';                /* 100's digit */            exp %= 100;          }          *(bufpt++) = exp/10+'0';                     /* 10's digit */          *(bufpt++) = exp%10+'0';                     /* 1's digit */        }        *bufpt = 0;        /* The converted number is in buf[] and zero terminated. Output it.        ** Note that the number is in the usual order, not reversed as with        ** integer conversions. */        length = bufpt-buf;        bufpt = buf;        /* Special case:  Add leading zeros if the flag_zeropad flag is        ** set and we are not left justified */        if( flag_zeropad && !flag_leftjustify && length < width){          int i;          int nPad = width - length;          for(i=width; i>=nPad; i--){            bufpt[i] = bufpt[i-nPad];          }          i = prefix!=0;          while( nPad-- ) bufpt[i++] = '0';          length = width;        }#endif        break;      case etSIZE:        *(va_arg(ap,int*)) = count;        length = width = 0;        break;      case etPERCENT:        buf[0] = '%';        bufpt = buf;        length = 1;        break;      case etCHARLIT:      case etCHARX:        c = buf[0] = (xtype==etCHARX ? va_arg(ap,int) : *++fmt);        if( precision>=0 ){          for(idx=1; idx<precision; idx++) buf[idx] = c;          length = precision;        }else{          length =1;        }        bufpt = buf;        break;      case etSTRING:      case etDYNSTRING:        bufpt = va_arg(ap,char*);        if( bufpt==0 ){          bufpt = "";        }else if( xtype==etDYNSTRING ){          zExtra = bufpt;        }        length = strlen(bufpt);        if( precision>=0 && precision<length ) length = precision;        break;      case etSQLESCAPE:      case etSQLESCAPE2: {        int i, j, n, ch, isnull;        int needQuote;        char *escarg = va_arg(ap,char*);        isnull = escarg==0;        if( isnull ) escarg = (xtype==etSQLESCAPE2 ? "NULL" : "(NULL)");        for(i=n=0; (ch=escarg[i])!=0; i++){          if( ch=='\'' )  n++;        }        needQuote = !isnull && xtype==etSQLESCAPE2;        n += i + 1 + needQuote*2;        if( n>etBUFSIZE ){          bufpt = zExtra = sqliteMalloc( n );          if( bufpt==0 ) return -1;        }else{          bufpt = buf;        }        j = 0;        if( needQuote ) bufpt[j++] = '\'';        for(i=0; (ch=escarg[i])!=0; i++){          bufpt[j++] = ch;          if( ch=='\'' ) bufpt[j++] = ch;        }        if( needQuote ) bufpt[j++] = '\'';        bufpt[j] = 0;        length = j;        /* The precision is ignored on %q and %Q */        /* if( precision>=0 && precision<length ) length = precision; */        break;      }      case etTOKEN: {        Token *pToken = va_arg(ap, Token*);        if( pToken && pToken->z ){          (*func)(arg, (char*)pToken->z, pToken->n);        }        length = width = 0;        break;      }      case etSRCLIST: {        SrcList *pSrc = va_arg(ap, SrcList*);        int k = va_arg(ap, int);        struct SrcList_item *pItem = &pSrc->a[k];        assert( k>=0 && k<pSrc->nSrc );        if( pItem->zDatabase && pItem->zDatabase[0] ){          (*func)(arg, pItem->zDatabase, strlen(pItem->zDatabase));          (*func)(arg, ".", 1);        }        (*func)(arg, pItem->zName, strlen(pItem->zName));        length = width = 0;        break;      }    }/* End switch over the format type */    /*    ** The text of the conversion is pointed to by "bufpt" and is    ** "length" characters long.  The field width is "width".  Do    ** the output.    */    if( !flag_leftjustify ){      register int nspace;      nspace = width-length;      if( nspace>0 ){        count += nspace;        while( nspace>=etSPACESIZE ){          (*func)(arg,spaces,etSPACESIZE);          nspace -= etSPACESIZE;        }        if( nspace>0 ) (*func)(arg,spaces,nspace);      }    }    if( length>0 ){      (*func)(arg,bufpt,length);      count += length;    }    if( flag_leftjustify ){      register int nspace;      nspace = width-length;      if( nspace>0 ){        count += nspace;        while( nspace>=etSPACESIZE ){          (*func)(arg,spaces,etSPACESIZE);          nspace -= etSPACESIZE;        }        if( nspace>0 ) (*func)(arg,spaces,nspace);      }    }    if( zExtra ){      sqliteFree(zExtra);    }  }/* End for loop over the format string */  return errorflag ? -1 : count;} /* End of function *//* This structure is used to store state information about the** write to memory that is currently in progress.*/struct sgMprintf {  char *zBase;     /* A base allocation */  char *zText;     /* The string collected so far */  int  nChar;      /* Length of the string so far */  int  nTotal;     /* Output size if unconstrained */  int  nAlloc;     /* Amount of space allocated in zText */  void *(*xRealloc)(void*,int);  /* Function used to realloc memory */};/* ** This function implements the callback from vxprintf. **** This routine add nNewChar characters of text in zNewText to** the sgMprintf structure pointed to by "arg".*/static void mout(void *arg, const char *zNewText, int nNewChar){  struct sgMprintf *pM = (struct sgMprintf*)arg;  pM->nTotal += nNewChar;  if( pM->nChar + nNewChar + 1 > pM->nAlloc ){    if( pM->xRealloc==0 ){      nNewChar =  pM->nAlloc - pM->nChar - 1;    }else{      pM->nAlloc = pM->nChar + nNewChar*2 + 1;      if( pM->zText==pM->zBase ){        pM->zText = pM->xRealloc(0, pM->nAlloc);        if( pM->zText && pM->nChar ){          memcpy(pM->zText, pM->zBase, pM->nChar);        }      }else{        char *zNew;        zNew = pM->xRealloc(pM->zText, pM->nAlloc);        if( zNew ){          pM->zText = zNew;        }      }    }  }  if( pM->zText ){    if( nNewChar>0 ){      memcpy(&pM->zText[pM->nChar], zNewText, nNewChar);      pM->nChar += nNewChar;    }    pM->zText[pM->nChar] = 0;  }}/*** This routine is a wrapper around xprintf() that invokes mout() as** the consumer.  */static char *base_vprintf(  void *(*xRealloc)(void*,int),   /* Routine to realloc memory. May be NULL */  int useInternal,                /* Use internal %-conversions if true */  char *zInitBuf,                 /* Initially write here, before mallocing */  int nInitBuf,                   /* Size of zInitBuf[] */  const char *zFormat,            /* format string */  va_list ap                      /* arguments */){  struct sgMprintf sM;  sM.zBase = sM.zText = zInitBuf;  sM.nChar = sM.nTotal = 0;  sM.nAlloc = nInitBuf;  sM.xRealloc = xRealloc;  vxprintf(mout, &sM, useInternal, zFormat, ap);  if( xRealloc ){    if( sM.zText==sM.zBase ){      sM.zText = xRealloc(0, sM.nChar+1);      if( sM.zText ){        memcpy(sM.zText, sM.zBase, sM.nChar+1);      }    }else if( sM.nAlloc>sM.nChar+10 ){      char *zNew = xRealloc(sM.zText, sM.nChar+1);      if( zNew ){        sM.zText = zNew;      }    }  }  return sM.zText;}/*** Realloc that is a real function, not a macro.*/static void *printf_realloc(void *old, int size){  return sqliteRealloc(old,size);}/*** Print into memory obtained from sqliteMalloc().  Use the internal** %-conversion extensions.*/char *sqlite3VMPrintf(const char *zFormat, va_list ap){  char zBase[SQLITE_PRINT_BUF_SIZE];  return base_vprintf(printf_realloc, 1, zBase, sizeof(zBase), zFormat, ap);}/*** Print into memory obtained from sqliteMalloc().  Use the internal** %-conversion extensions.*/char *sqlite3MPrintf(const char *zFormat, ...){  va_list ap;  char *z;  char zBase[SQLITE_PRINT_BUF_SIZE];  va_start(ap, zFormat);  z = base_vprintf(printf_realloc, 1, zBase, sizeof(zBase), zFormat, ap);  va_end(ap);  return z;}/*** Print into memory obtained from malloc().  Do not use the internal** %-conversion extensions.  This routine is for use by external users.*/char *sqlite3_mprintf(const char *zFormat, ...){  va_list ap;  char *z;  char zBuf[200];  va_start(ap,zFormat);  z = base_vprintf((void*(*)(void*,int))realloc, 0,                    zBuf, sizeof(zBuf), zFormat, ap);  va_end(ap);  return z;}/* This is the varargs version of sqlite3_mprintf.  */char *sqlite3_vmprintf(const char *zFormat, va_list ap){  char zBuf[200];  return base_vprintf((void*(*)(void*,int))realloc, 0,                      zBuf, sizeof(zBuf), zFormat, ap);}/*** sqlite3_snprintf() works like snprintf() except that it ignores the** current locale settings.  This is important for SQLite because we** are not able to use a "," as the decimal point in place of "." as** specified by some locales.*/char *sqlite3_snprintf(int n, char *zBuf, const char *zFormat, ...){  char *z;  va_list ap;  va_start(ap,zFormat);  z = base_vprintf(0, 0, zBuf, n, zFormat, ap);  va_end(ap);  return z;}#if defined(SQLITE_TEST) || defined(SQLITE_DEBUG)/*** A version of printf() that understands %lld.  Used for debugging.** The printf() built into some versions of windows does not understand %lld** and segfaults if you give it a long long int.*/void sqlite3DebugPrintf(const char *zFormat, ...){  extern int getpid(void);  va_list ap;  char zBuf[500];  va_start(ap, zFormat);  base_vprintf(0, 0, zBuf, sizeof(zBuf), zFormat, ap);  va_end(ap);  fprintf(stdout,"%d: %s", getpid(), zBuf);  fflush(stdout);}#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本韩国精品在线| 欧美精选午夜久久久乱码6080| www.日韩大片| 91精品国产日韩91久久久久久| 欧美精品一区二区在线观看| 亚洲欧美日韩精品久久久久| 精品亚洲国内自在自线福利| 91高清在线观看| 国产精品欧美经典| 国产露脸91国语对白| 欧美丰满一区二区免费视频| 亚洲精选视频在线| 成人黄色a**站在线观看| 精品捆绑美女sm三区| 久久国产精品露脸对白| 一本久久综合亚洲鲁鲁五月天| 久久久久久久久一| 久久午夜羞羞影院免费观看| 奇米888四色在线精品| 色狠狠桃花综合| 国产精品美女视频| 懂色av中文字幕一区二区三区 | 亚洲午夜私人影院| 国产成人综合亚洲网站| 欧美不卡一区二区三区四区| 亚洲一区二区黄色| 成人黄色在线看| 国产肉丝袜一区二区| 久热成人在线视频| 91精品国产综合久久精品图片| 亚洲免费三区一区二区| 99精品欧美一区二区三区小说 | 久久网这里都是精品| 日韩国产欧美在线观看| 欧美日韩在线精品一区二区三区激情 | 国内精品在线播放| 欧美一级黄色片| 奇米综合一区二区三区精品视频| 欧美日韩一区二区三区免费看 | 一区二区激情视频| 91浏览器打开| 玉米视频成人免费看| 欧美三级电影在线观看| 亚洲综合一区二区精品导航| 欧美性受极品xxxx喷水| 婷婷久久综合九色综合伊人色| 91精品久久久久久蜜臀| 奇米亚洲午夜久久精品| 精品美女在线播放| 成人激情动漫在线观看| 国产精品欧美极品| 丁香啪啪综合成人亚洲小说 | 亚洲一二三专区| 欧美日韩电影在线播放| 日韩高清欧美激情| 2021中文字幕一区亚洲| 粉嫩高潮美女一区二区三区| 欧美国产精品中文字幕| 91成人在线观看喷潮| 蜜臀av亚洲一区中文字幕| 精品日产卡一卡二卡麻豆| 极品尤物av久久免费看| 亚洲精品在线免费观看视频| 91色视频在线| 麻豆传媒一区二区三区| 亚洲精品久久久久久国产精华液| 欧美日韩高清一区二区不卡| 国产成人精品三级麻豆| 亚洲成av人片在线| 国产亚洲成av人在线观看导航| 在线观看亚洲专区| 国模娜娜一区二区三区| 亚洲综合激情另类小说区| 亚洲三级在线播放| 国产精品99久久久| 亚洲r级在线视频| 国产精品私房写真福利视频| 欧美久久久久久久久| www.久久精品| 激情综合色播激情啊| 亚洲国产综合91精品麻豆| 国产女同互慰高潮91漫画| 欧美日韩三级在线| www.av亚洲| 国产成人综合在线| 美女一区二区在线观看| 亚洲综合清纯丝袜自拍| 国产精品久线观看视频| www久久精品| 制服丝袜中文字幕一区| 在线精品亚洲一区二区不卡| 丁香激情综合五月| 免费的国产精品| 天天综合色天天综合| 亚洲精品乱码久久久久久黑人 | 久久久午夜精品理论片中文字幕| 欧洲一区在线电影| 成人av网站在线| 国产高清精品在线| 久久66热偷产精品| 日韩中文字幕av电影| 亚洲成人av免费| 亚洲一区二区在线播放相泽| 一区二区三区在线视频播放| 国产精品夫妻自拍| 国产精品传媒视频| 亚洲国产高清aⅴ视频| 久久久久久一二三区| 欧美成人一级视频| 欧美sm极限捆绑bd| 中文字幕在线免费不卡| 久久久久久一二三区| 久久久噜噜噜久久中文字幕色伊伊 | 色久优优欧美色久优优| 91亚洲精品久久久蜜桃| 色综合天天狠狠| 在线国产亚洲欧美| 欧美在线播放高清精品| 欧美日韩一区二区在线观看| 欧美日韩精品一区视频| 制服丝袜日韩国产| 精品国产一二三区| 国产亚洲精品精华液| 中文av一区二区| 亚洲男同性恋视频| 一区二区视频免费在线观看| 亚洲一区二区五区| 日韩黄色免费电影| 久久成人精品无人区| 国产精品18久久久久久久久久久久 | 亚洲线精品一区二区三区| 亚洲成av人影院| 天涯成人国产亚洲精品一区av| 久久精品国产77777蜜臀| 国精产品一区一区三区mba视频 | 成人免费高清视频在线观看| 99久久99久久久精品齐齐| 在线这里只有精品| 91精品国产手机| 国产视频一区二区在线观看| 亚洲女人的天堂| 日本成人在线视频网站| 亚洲自拍另类综合| 国内精品在线播放| 91在线免费视频观看| 777欧美精品| 久久久久久久久久看片| 一个色妞综合视频在线观看| 免费成人在线观看| 成人av午夜电影| 在线不卡的av| 中文子幕无线码一区tr| 一区二区三区四区精品在线视频| 青娱乐精品视频在线| 99久久婷婷国产| 精品久久免费看| 亚洲人成精品久久久久| 蜜臀av国产精品久久久久| www.日韩在线| 精品精品欲导航| 亚洲第一搞黄网站| 丁香一区二区三区| 欧美成人伊人久久综合网| 日韩毛片高清在线播放| 国产综合成人久久大片91| 欧美网站大全在线观看| 国产精品天干天干在观线| 蜜臀99久久精品久久久久久软件| 色综合久久久久| 国产亚洲成年网址在线观看| 免费的成人av| 欧美人牲a欧美精品| 综合av第一页| 成人高清伦理免费影院在线观看| 69堂国产成人免费视频| 一区二区三区日韩欧美精品| 国产99久久久久| 精品国产精品网麻豆系列| 亚洲国产欧美在线| 91麻豆免费看| 亚洲色图20p| 99久久伊人网影院| 国产亚洲女人久久久久毛片| 激情文学综合插| 日韩视频123| 久久精品国产在热久久| 欧美老人xxxx18| 亚洲成人7777| 欧美精品国产精品| 亚洲一本大道在线| 精品视频全国免费看| 亚洲一区中文日韩| 色综合欧美在线视频区| 亚洲天堂免费看| 色先锋资源久久综合| 亚洲综合色在线| 欧美卡1卡2卡| 蜜桃精品视频在线观看| 精品欧美黑人一区二区三区| 久久精品二区亚洲w码|