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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? func.c

?? Trolltech公司發(fā)布的基于C++圖形開發(fā)環(huán)境
?? C
?? 第 1 頁 / 共 2 頁
字號(hào):
/*** 2002 February 23**** The author disclaims copyright to this source code.  In place of** a legal notice, here is a blessing:****    May you do good and not evil.**    May you find forgiveness for yourself and forgive others.**    May you share freely, never taking more than you give.***************************************************************************** This file contains the C functions that implement various SQL** functions of SQLite.  **** There is only one exported symbol in this file - the function** sqliteRegisterBuildinFunctions() found at the bottom of the file.** All other code has file scope.**** $Id: qt/func.c   3.3.4   edited Mar 30 2004 $*/#include <ctype.h>#include <math.h>#include <stdlib.h>#include <assert.h>#include "sqliteInt.h"#include "os.h"/*** Implementation of the non-aggregate min() and max() functions*/static void minmaxFunc(sqlite_func *context, int argc, const char **argv){  const char *zBest;   int i;  int (*xCompare)(const char*, const char*);  int mask;    /* 0 for min() or 0xffffffff for max() */  if( argc==0 ) return;  mask = (int)sqlite_user_data(context);  zBest = argv[0];  if( zBest==0 ) return;  if( argv[1][0]=='n' ){    xCompare = sqliteCompare;  }else{    xCompare = strcmp;  }  for(i=2; i<argc; i+=2){    if( argv[i]==0 ) return;    if( (xCompare(argv[i], zBest)^mask)<0 ){      zBest = argv[i];    }  }  sqlite_set_result_string(context, zBest, -1);}/*** Return the type of the argument.*/static void typeofFunc(sqlite_func *context, int argc, const char **argv){  assert( argc==2 );  sqlite_set_result_string(context, argv[1], -1);}/*** Implementation of the length() function*/static void lengthFunc(sqlite_func *context, int argc, const char **argv){  const char *z;  int len;  assert( argc==1 );  z = argv[0];  if( z==0 ) return;#ifdef SQLITE_UTF8  for(len=0; *z; z++){ if( (0xc0&*z)!=0x80 ) len++; }#else  len = strlen(z);#endif  sqlite_set_result_int(context, len);}/*** Implementation of the abs() function*/static void absFunc(sqlite_func *context, int argc, const char **argv){  const char *z;  assert( argc==1 );  z = argv[0];  if( z==0 ) return;  if( z[0]=='-' && isdigit(z[1]) ) z++;  sqlite_set_result_string(context, z, -1);}/*** Implementation of the substr() function*/static void substrFunc(sqlite_func *context, int argc, const char **argv){  const char *z;#ifdef SQLITE_UTF8  const char *z2;  int i;#endif  int p1, p2, len;  assert( argc==3 );  z = argv[0];  if( z==0 ) return;  p1 = atoi(argv[1]?argv[1]:0);  p2 = atoi(argv[2]?argv[2]:0);#ifdef SQLITE_UTF8  for(len=0, z2=z; *z2; z2++){ if( (0xc0&*z2)!=0x80 ) len++; }#else  len = strlen(z);#endif  if( p1<0 ){    p1 += len;    if( p1<0 ){      p2 += p1;      p1 = 0;    }  }else if( p1>0 ){    p1--;  }  if( p1+p2>len ){    p2 = len-p1;  }#ifdef SQLITE_UTF8  for(i=0; i<p1 && z[i]; i++){    if( (z[i]&0xc0)==0x80 ) p1++;  }  while( z[i] && (z[i]&0xc0)==0x80 ){ i++; p1++; }  for(; i<p1+p2 && z[i]; i++){    if( (z[i]&0xc0)==0x80 ) p2++;  }  while( z[i] && (z[i]&0xc0)==0x80 ){ i++; p2++; }#endif  if( p2<0 ) p2 = 0;  sqlite_set_result_string(context, &z[p1], p2);}/*** Implementation of the round() function*/static void roundFunc(sqlite_func *context, int argc, const char **argv){  int n;  double r;  char zBuf[100];  assert( argc==1 || argc==2 );  if( argv[0]==0 || (argc==2 && argv[1]==0) ) return;  n = argc==2 ? atoi(argv[1]) : 0;  if( n>30 ) n = 30;  if( n<0 ) n = 0;  r = sqliteAtoF(argv[0], 0);  sprintf(zBuf,"%.*f",n,r);  sqlite_set_result_string(context, zBuf, -1);}/*** Implementation of the upper() and lower() SQL functions.*/static void upperFunc(sqlite_func *context, int argc, const char **argv){  char *z;  int i;  if( argc<1 || argv[0]==0 ) return;  z = sqlite_set_result_string(context, argv[0], -1);  if( z==0 ) return;  for(i=0; z[i]; i++){    if( islower(z[i]) ) z[i] = toupper(z[i]);  }}static void lowerFunc(sqlite_func *context, int argc, const char **argv){  char *z;  int i;  if( argc<1 || argv[0]==0 ) return;  z = sqlite_set_result_string(context, argv[0], -1);  if( z==0 ) return;  for(i=0; z[i]; i++){    if( isupper(z[i]) ) z[i] = tolower(z[i]);  }}/*** Implementation of the IFNULL(), NVL(), and COALESCE() functions.  ** All three do the same thing.  They return the first non-NULL** argument.*/static void ifnullFunc(sqlite_func *context, int argc, const char **argv){  int i;  for(i=0; i<argc; i++){    if( argv[i] ){      sqlite_set_result_string(context, argv[i], -1);      break;    }  }}/*** Implementation of random().  Return a random integer.  */static void randomFunc(sqlite_func *context, int argc, const char **argv){  int r;  sqliteRandomness(sizeof(r), &r);  sqlite_set_result_int(context, r);}/*** Implementation of the last_insert_rowid() SQL function.  The return** value is the same as the sqlite_last_insert_rowid() API function.*/static void last_insert_rowid(sqlite_func *context, int arg, const char **argv){  sqlite *db = sqlite_user_data(context);  sqlite_set_result_int(context, sqlite_last_insert_rowid(db));}/*** Implementation of the change_count() SQL function.  The return** value is the same as the sqlite_changes() API function.*/static void change_count(sqlite_func *context, int arg, const char **argv){  sqlite *db = sqlite_user_data(context);  sqlite_set_result_int(context, sqlite_changes(db));}/*** Implementation of the last_statement_change_count() SQL function.  The** return value is the same as the sqlite_last_statement_changes() API function.*/static void last_statement_change_count(sqlite_func *context, int arg,                                        const char **argv){  sqlite *db = sqlite_user_data(context);  sqlite_set_result_int(context, sqlite_last_statement_changes(db));}/*** Implementation of the like() SQL function.  This function implements** the build-in LIKE operator.  The first argument to the function is the** string and the second argument is the pattern.  So, the SQL statements:****       A LIKE B**** is implemented as like(A,B).*/static void likeFunc(sqlite_func *context, int arg, const char **argv){  if( argv[0]==0 || argv[1]==0 ) return;  sqlite_set_result_int(context,     sqliteLikeCompare((const unsigned char*)argv[0],                      (const unsigned char*)argv[1]));}/*** Implementation of the glob() SQL function.  This function implements** the build-in GLOB operator.  The first argument to the function is the** string and the second argument is the pattern.  So, the SQL statements:****       A GLOB B**** is implemented as glob(A,B).*/static void globFunc(sqlite_func *context, int arg, const char **argv){  if( argv[0]==0 || argv[1]==0 ) return;  sqlite_set_result_int(context,    sqliteGlobCompare((const unsigned char*)argv[0],                      (const unsigned char*)argv[1]));}/*** Implementation of the NULLIF(x,y) function.  The result is the first** argument if the arguments are different.  The result is NULL if the** arguments are equal to each other.*/static void nullifFunc(sqlite_func *context, int argc, const char **argv){  if( argv[0]!=0 && sqliteCompare(argv[0],argv[1])!=0 ){    sqlite_set_result_string(context, argv[0], -1);  }}/*** Implementation of the VERSION(*) function.  The result is the version** of the SQLite library that is running.*/static void versionFunc(sqlite_func *context, int argc, const char **argv){  sqlite_set_result_string(context, sqlite_version, -1);}/*** EXPERIMENTAL - This is not an official function.  The interface may** change.  This function may disappear.  Do not write code that depends** on this function.**** Implementation of the QUOTE() function.  This function takes a single** argument.  If the argument is numeric, the return value is the same as** the argument.  If the argument is NULL, the return value is the string** "NULL".  Otherwise, the argument is enclosed in single quotes with** single-quote escapes.*/static void quoteFunc(sqlite_func *context, int argc, const char **argv){  if( argc<1 ) return;  if( argv[0]==0 ){    sqlite_set_result_string(context, "NULL", 4);  }else if( sqliteIsNumber(argv[0]) ){    sqlite_set_result_string(context, argv[0], -1);  }else{    int i,j,n;    char *z;    for(i=n=0; argv[0][i]; i++){ if( argv[0][i]=='\'' ) n++; }    z = sqliteMalloc( i+n+3 );    if( z==0 ) return;    z[0] = '\'';    for(i=0, j=1; argv[0][i]; i++){      z[j++] = argv[0][i];      if( argv[0][i]=='\'' ){        z[j++] = '\'';      }    }    z[j++] = '\'';    z[j] = 0;    sqlite_set_result_string(context, z, j);    sqliteFree(z);  }}#ifdef SQLITE_SOUNDEX/*** Compute the soundex encoding of a word.*/static void soundexFunc(sqlite_func *context, int argc, const char **argv){

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区二区日韩精品| 日韩**一区毛片| 91一区二区三区在线播放| 国产精品久久毛片a| av亚洲精华国产精华| 亚洲国产精品一区二区久久恐怖片 | 国产精品综合久久| 国产片一区二区三区| 91麻豆6部合集magnet| 亚洲一卡二卡三卡四卡| 日韩欧美在线观看一区二区三区| 麻豆成人久久精品二区三区小说| 久久久久97国产精华液好用吗| 成人av高清在线| 午夜欧美视频在线观看| 久久精品亚洲麻豆av一区二区| eeuss鲁片一区二区三区在线看| 一区二区三区在线影院| 欧美va亚洲va国产综合| 成人激情综合网站| 亚洲成人动漫精品| 久久精品一区蜜桃臀影院| 色爱区综合激月婷婷| 奇米精品一区二区三区在线观看 | 欧美一区二区黄| 国产高清无密码一区二区三区| 亚洲男女一区二区三区| 精品卡一卡二卡三卡四在线| 97久久超碰国产精品| 美女一区二区在线观看| 国产精品美女www爽爽爽| 欧美日韩国产一区| 国产很黄免费观看久久| 亚洲国产日日夜夜| 国产视频一区二区在线| 欧美日韩高清在线| 成人18视频在线播放| 久久国产免费看| 一区二区三区在线视频免费| 久久免费偷拍视频| 91精品国产综合久久婷婷香蕉| 99热在这里有精品免费| 久久国产欧美日韩精品| 午夜精品成人在线| 一区二区中文视频| 久久众筹精品私拍模特| 日韩一区国产二区欧美三区| 91亚洲精品久久久蜜桃| 国产精品一区二区免费不卡| 性久久久久久久| 亚洲精品亚洲人成人网在线播放| 国产欧美日韩在线视频| 精品91自产拍在线观看一区| 欧美日韩视频一区二区| 91论坛在线播放| 成人av电影在线网| 国产酒店精品激情| 美腿丝袜在线亚洲一区| 亚洲国产美女搞黄色| 亚洲视频免费看| 国产精品麻豆99久久久久久| 国产色一区二区| 精品人在线二区三区| 91精品国产综合久久国产大片 | 成人美女视频在线观看| 国产乱子伦视频一区二区三区| 日本不卡一区二区| 视频在线观看一区| 亚洲成av人片| 日韩精品91亚洲二区在线观看| 亚洲国产精品一区二区尤物区| 亚洲自拍偷拍图区| 亚洲综合视频在线| 亚洲成人在线免费| 亚洲成人动漫av| 亚洲成av人片| 久久精品国产999大香线蕉| 伦理电影国产精品| 国产综合色视频| 国产高清久久久久| 成人av在线资源网| 99久久精品国产一区二区三区| 99久精品国产| 日本大香伊一区二区三区| 91久久一区二区| 欧美日本国产一区| 欧美大片在线观看| 久久久久久97三级| 国产精品毛片大码女人| 一级中文字幕一区二区| 午夜精品久久久久久不卡8050| 蜜桃一区二区三区四区| 国产精品自拍毛片| 波多野结衣中文字幕一区二区三区| bt欧美亚洲午夜电影天堂| 91麻豆swag| 欧美一区二区视频在线观看2022 | 亚洲人精品一区| 亚洲高清免费观看| 久久国产日韩欧美精品| 成人性生交大合| 在线观看成人小视频| 日韩视频在线观看一区二区| 久久久久久久久久久久久夜| 综合久久久久综合| 另类人妖一区二区av| youjizz国产精品| 欧美色精品在线视频| 久久理论电影网| 1000部国产精品成人观看| 日日骚欧美日韩| 国产成人在线视频免费播放| 欧美在线免费播放| 精品va天堂亚洲国产| 亚洲精品久久久久久国产精华液| 日韩综合在线视频| 精品少妇一区二区三区免费观看| 久久精品一区二区三区不卡| 亚洲永久精品国产| 国产一区二区三区四区五区美女 | 成人性生交大片免费看视频在线| 欧美在线视频日韩| 久久久精品免费网站| 天天影视涩香欲综合网| 成人免费视频视频在线观看免费 | 中文字幕乱码久久午夜不卡| 亚洲一级二级在线| 成人精品gif动图一区| 日韩欧美不卡在线观看视频| 一区二区三区久久久| 国产传媒日韩欧美成人| 9191成人精品久久| 亚洲欧美综合在线精品| 久久99国产精品尤物| 欧美亚洲国产怡红院影院| 国产欧美精品区一区二区三区| 一区二区三区日韩欧美| 国产成人啪午夜精品网站男同| 欧美日韩电影在线播放| 亚洲嫩草精品久久| 大陆成人av片| xf在线a精品一区二区视频网站| 亚洲与欧洲av电影| 91免费在线看| 综合精品久久久| 顶级嫩模精品视频在线看| 精品国产91亚洲一区二区三区婷婷| 亚洲一区在线观看免费| 91蜜桃传媒精品久久久一区二区| 2020日本不卡一区二区视频| 美美哒免费高清在线观看视频一区二区| 色综合久久88色综合天天6| 亚洲国产高清不卡| 国产成人高清视频| 精品盗摄一区二区三区| 久久精品理论片| 91精品国产欧美一区二区成人 | 经典三级视频一区| 欧美一区二区三区在线电影| 爽好久久久欧美精品| 欧美男男青年gay1069videost| 亚洲自拍都市欧美小说| 欧美亚洲综合久久| 亚洲一区二区综合| 欧美视频一区二区三区四区 | 久久精品夜色噜噜亚洲aⅴ| 国产一区二区三区四| 国产亚洲成av人在线观看导航| 九色|91porny| 久久伊人中文字幕| 在线视频欧美精品| 天堂久久一区二区三区| 56国语精品自产拍在线观看| 日韩影院在线观看| 日韩免费观看2025年上映的电影| 另类欧美日韩国产在线| 国产色产综合色产在线视频| 成人午夜又粗又硬又大| 亚洲视频在线观看一区| 欧美午夜片在线观看| 日本少妇一区二区| 久久色在线观看| 成人黄色网址在线观看| 一区二区在线观看视频在线观看| 欧美揉bbbbb揉bbbbb| 日韩高清不卡一区二区| 精品国产伦一区二区三区观看体验| 精品一区二区三区av| 国产精品久久久久久久久免费丝袜| 色综合中文字幕| 日本不卡高清视频| 中文字幕高清不卡| 在线区一区二视频| 精品制服美女丁香| 国产精品国产三级国产| 欧美妇女性影城| 国产精品18久久久久| 亚洲永久免费av| 欧美videossexotv100| 91影院在线观看|