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

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

?? func.c

?? Trolltech公司發(fā)布的基于C++圖形開發(fā)環(huán)境
?? C
?? 第 1 頁 / 共 2 頁
字號:
/*** 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
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕五月欧美| 1区2区3区国产精品| 波多野结衣中文字幕一区二区三区 | 国产精品久久久久久久久免费桃花| 在线一区二区观看| 国内外成人在线| 一区二区国产视频| 国产欧美综合在线观看第十页| 在线免费一区三区| 福利一区二区在线| 日韩中文字幕一区二区三区| 国产精品美女视频| 26uuuu精品一区二区| 欧美美女一区二区| 97精品超碰一区二区三区| 麻豆一区二区在线| 午夜欧美一区二区三区在线播放| 欧美高清一级片在线观看| 日韩美女一区二区三区| 在线欧美日韩国产| 91在线看国产| 国产成人av影院| 韩国欧美国产1区| 日本中文一区二区三区| 亚洲资源在线观看| 综合色中文字幕| 国产精品乱码一区二三区小蝌蚪| 精品久久一二三区| 日韩欧美中文一区| 日韩一区二区在线免费观看| 欧美无人高清视频在线观看| 91视频免费播放| 7777精品伊人久久久大香线蕉的 | 丰满放荡岳乱妇91ww| 久久精品噜噜噜成人88aⅴ| 亚洲高清视频的网址| 亚洲欧美一区二区不卡| 国产精品久久久久久久久图文区 | 欧美网站一区二区| 在线看国产一区二区| 成人免费福利片| 成人精品视频一区二区三区尤物| 国内精品伊人久久久久av影院 | 久久久久久久电影| 精品久久久久av影院| 精品成人免费观看| 久久九九国产精品| 欧美激情一区二区三区全黄| 国产欧美日产一区| 国产精品国模大尺度视频| 国产精品国产三级国产aⅴ无密码| 中文字幕亚洲电影| 一区二区三区欧美在线观看| 亚洲美腿欧美偷拍| 亚洲国产aⅴ成人精品无吗| 亚洲综合在线视频| 肉色丝袜一区二区| 久久成人麻豆午夜电影| 国产盗摄一区二区| bt欧美亚洲午夜电影天堂| 91美女在线看| 中文字幕一区二区三区在线播放 | 欧美国产精品v| 中文字幕亚洲视频| 五月激情丁香一区二区三区| 久久精工是国产品牌吗| 国产精品中文字幕日韩精品 | 日韩影院免费视频| 久久激情五月激情| 高清免费成人av| 日本久久一区二区| 日韩一级成人av| 中文成人av在线| 亚洲一区二区欧美| 免费的国产精品| 高清在线观看日韩| 欧美影院一区二区| 精品国产亚洲在线| 亚洲欧洲综合另类| 麻豆一区二区三| gogo大胆日本视频一区| 欧美日韩一区二区三区不卡 | 欧美三级电影网站| 精品久久久久久综合日本欧美| 亚洲国产精品国自产拍av| 亚洲精品欧美激情| 麻豆国产精品777777在线| 国产老女人精品毛片久久| 日本韩国精品在线| 国产亚洲成aⅴ人片在线观看| 99久久99久久免费精品蜜臀| 欧美精选一区二区| 国产精品天干天干在观线| 五月婷婷久久综合| 岛国av在线一区| 欧美高清性hdvideosex| 欧美高清在线精品一区| 欧美aaaaaa午夜精品| av激情成人网| 欧美精品一区二区三区久久久| 亚洲激情图片小说视频| 国产精品一区久久久久| 精品视频全国免费看| 国产精品美女www爽爽爽| 视频一区欧美日韩| 色婷婷综合久久久中文字幕| 久久综合九色综合欧美就去吻| 一区二区三区欧美视频| 风流少妇一区二区| 日韩久久免费av| 亚洲国产日韩a在线播放| av综合在线播放| 亚洲精品一区二区三区蜜桃下载| 午夜精品福利一区二区蜜股av | 久久九九全国免费| 免费成人深夜小野草| 欧美日韩国产不卡| 一区二区三区波多野结衣在线观看| 国产传媒一区在线| 欧美成人一区二区三区| 日本一不卡视频| 欧美在线免费观看亚洲| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 久久国产精品72免费观看| 91精品国产乱码| 亚洲成人一区二区在线观看| 色综合咪咪久久| 欧美国产成人在线| 狠狠色狠狠色综合系列| 欧美xingq一区二区| 久久成人18免费观看| 欧美成人官网二区| 久久国产麻豆精品| 日韩免费看的电影| 久久69国产一区二区蜜臀| 日韩一区二区在线观看视频播放| 日韩主播视频在线| 欧美一区二区在线不卡| 蜜桃av一区二区在线观看| 欧美一区二区三区视频在线| 亚洲成人激情av| 欧美日韩1区2区| 日韩中文欧美在线| 日韩免费看的电影| 国产精品一区二区在线观看不卡 | 成人毛片在线观看| 欧美极品aⅴ影院| 国产精品一区二区久久不卡 | 久久人人97超碰com| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 久久精品人人做人人爽97| 国产成人小视频| 久久无码av三级| 精品午夜久久福利影院| 日韩精品一区二区三区视频在线观看| 男女男精品网站| 精品国产麻豆免费人成网站| 乱中年女人伦av一区二区| 日韩精品中文字幕一区| 国产精品一区二区三区乱码| 国产欧美综合在线| 成人黄动漫网站免费app| 中文字幕一区二区三| 欧美精品日韩综合在线| 亚洲aaa精品| 宅男噜噜噜66一区二区66| 日韩av电影免费观看高清完整版 | 国产精品一区二区久久精品爱涩| 久久网站最新地址| 97久久人人超碰| 亚洲欧美日韩国产中文在线| 色av成人天堂桃色av| 午夜精品久久久久久久蜜桃app| 在线视频中文字幕一区二区| 亚洲福利国产精品| 欧美大胆一级视频| 国产乱码精品一区二区三区忘忧草| 中文字幕精品综合| 色婷婷久久综合| 日本在线播放一区二区三区| 精品国产精品一区二区夜夜嗨| 成人免费视频播放| 一区二区三区资源| 91精品国产91久久综合桃花| 久久电影网电视剧免费观看| 久久影视一区二区| 日本韩国一区二区| 水野朝阳av一区二区三区| 久久午夜国产精品| 99国产精品久久久久| 激情综合网av| 国产精品久久久久久亚洲伦| 欧美日韩你懂得| 国产91精品一区二区麻豆亚洲| 一区二区三区四区在线播放| 日韩欧美一区在线观看| 9人人澡人人爽人人精品| 亚洲成人自拍网| 久久久久久久久久久电影| 在线免费不卡电影|