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

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

?? complete.c

?? sqlite庫
?? C
字號:
/*** 2001 September 15**** 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.***************************************************************************** An tokenizer for SQL**** This file contains C code that implements the sqlite3_complete() API.** This code used to be part of the tokenizer.c source file.  But by** separating it out, the code will be automatically omitted from** static links that do not use it.**** $Id: complete.c,v 1.3 2006/01/18 15:25:17 danielk1977 Exp $*/#include "sqliteInt.h"#ifndef SQLITE_OMIT_COMPLETE/*** This is defined in tokenize.c.  We just have to import the definition.*/extern const char sqlite3IsIdChar[];#define IdChar(C)  (((c=C)&0x80)!=0 || (c>0x1f && sqlite3IsIdChar[c-0x20]))/*** Token types used by the sqlite3_complete() routine.  See the header** comments on that procedure for additional information.*/#define tkSEMI    0#define tkWS      1#define tkOTHER   2#define tkEXPLAIN 3#define tkCREATE  4#define tkTEMP    5#define tkTRIGGER 6#define tkEND     7/*** Return TRUE if the given SQL string ends in a semicolon.**** Special handling is require for CREATE TRIGGER statements.** Whenever the CREATE TRIGGER keywords are seen, the statement** must end with ";END;".**** This implementation uses a state machine with 7 states:****   (0) START     At the beginning or end of an SQL statement.  This routine**                 returns 1 if it ends in the START state and 0 if it ends**                 in any other state.****   (1) NORMAL    We are in the middle of statement which ends with a single**                 semicolon.****   (2) EXPLAIN   The keyword EXPLAIN has been seen at the beginning of **                 a statement.****   (3) CREATE    The keyword CREATE has been seen at the beginning of a**                 statement, possibly preceeded by EXPLAIN and/or followed by**                 TEMP or TEMPORARY****   (4) TRIGGER   We are in the middle of a trigger definition that must be**                 ended by a semicolon, the keyword END, and another semicolon.****   (5) SEMI      We've seen the first semicolon in the ";END;" that occurs at**                 the end of a trigger definition.****   (6) END       We've seen the ";END" of the ";END;" that occurs at the end**                 of a trigger difinition.**** Transitions between states above are determined by tokens extracted** from the input.  The following tokens are significant:****   (0) tkSEMI      A semicolon.**   (1) tkWS        Whitespace**   (2) tkOTHER     Any other SQL token.**   (3) tkEXPLAIN   The "explain" keyword.**   (4) tkCREATE    The "create" keyword.**   (5) tkTEMP      The "temp" or "temporary" keyword.**   (6) tkTRIGGER   The "trigger" keyword.**   (7) tkEND       The "end" keyword.**** Whitespace never causes a state transition and is always ignored.**** If we compile with SQLITE_OMIT_TRIGGER, all of the computation needed** to recognize the end of a trigger can be omitted.  All we have to do** is look for a semicolon that is not part of an string or comment.*/int sqlite3_complete(const char *zSql){  u8 state = 0;   /* Current state, using numbers defined in header comment */  u8 token;       /* Value of the next token */#ifndef SQLITE_OMIT_TRIGGER  /* A complex statement machine used to detect the end of a CREATE TRIGGER  ** statement.  This is the normal case.  */  static const u8 trans[7][8] = {                     /* Token:                                                */     /* State:       **  SEMI  WS  OTHER EXPLAIN  CREATE  TEMP  TRIGGER  END  */     /* 0   START: */ {    0,  0,     1,      2,      3,    1,       1,   1,  },     /* 1  NORMAL: */ {    0,  1,     1,      1,      1,    1,       1,   1,  },     /* 2 EXPLAIN: */ {    0,  2,     1,      1,      3,    1,       1,   1,  },     /* 3  CREATE: */ {    0,  3,     1,      1,      1,    3,       4,   1,  },     /* 4 TRIGGER: */ {    5,  4,     4,      4,      4,    4,       4,   4,  },     /* 5    SEMI: */ {    5,  5,     4,      4,      4,    4,       4,   6,  },     /* 6     END: */ {    0,  6,     4,      4,      4,    4,       4,   4,  },  };#else  /* If triggers are not suppored by this compile then the statement machine  ** used to detect the end of a statement is much simplier  */  static const u8 trans[2][3] = {                     /* Token:           */     /* State:       **  SEMI  WS  OTHER */     /* 0   START: */ {    0,  0,     1, },     /* 1  NORMAL: */ {    0,  1,     1, },  };#endif /* SQLITE_OMIT_TRIGGER */  while( *zSql ){    switch( *zSql ){      case ';': {  /* A semicolon */        token = tkSEMI;        break;      }      case ' ':      case '\r':      case '\t':      case '\n':      case '\f': {  /* White space is ignored */        token = tkWS;        break;      }      case '/': {   /* C-style comments */        if( zSql[1]!='*' ){          token = tkOTHER;          break;        }        zSql += 2;        while( zSql[0] && (zSql[0]!='*' || zSql[1]!='/') ){ zSql++; }        if( zSql[0]==0 ) return 0;        zSql++;        token = tkWS;        break;      }      case '-': {   /* SQL-style comments from "--" to end of line */        if( zSql[1]!='-' ){          token = tkOTHER;          break;        }        while( *zSql && *zSql!='\n' ){ zSql++; }        if( *zSql==0 ) return state==0;        token = tkWS;        break;      }      case '[': {   /* Microsoft-style identifiers in [...] */        zSql++;        while( *zSql && *zSql!=']' ){ zSql++; }        if( *zSql==0 ) return 0;        token = tkOTHER;        break;      }      case '`':     /* Grave-accent quoted symbols used by MySQL */      case '"':     /* single- and double-quoted strings */      case '\'': {        int c = *zSql;        zSql++;        while( *zSql && *zSql!=c ){ zSql++; }        if( *zSql==0 ) return 0;        token = tkOTHER;        break;      }      default: {        int c;        if( IdChar((u8)*zSql) ){          /* Keywords and unquoted identifiers */          int nId;          for(nId=1; IdChar(zSql[nId]); nId++){}#ifdef SQLITE_OMIT_TRIGGER          token = tkOTHER;#else          switch( *zSql ){            case 'c': case 'C': {              if( nId==6 && sqlite3StrNICmp(zSql, "create", 6)==0 ){                token = tkCREATE;              }else{                token = tkOTHER;              }              break;            }            case 't': case 'T': {              if( nId==7 && sqlite3StrNICmp(zSql, "trigger", 7)==0 ){                token = tkTRIGGER;              }else if( nId==4 && sqlite3StrNICmp(zSql, "temp", 4)==0 ){                token = tkTEMP;              }else if( nId==9 && sqlite3StrNICmp(zSql, "temporary", 9)==0 ){                token = tkTEMP;              }else{                token = tkOTHER;              }              break;            }            case 'e':  case 'E': {              if( nId==3 && sqlite3StrNICmp(zSql, "end", 3)==0 ){                token = tkEND;              }else#ifndef SQLITE_OMIT_EXPLAIN              if( nId==7 && sqlite3StrNICmp(zSql, "explain", 7)==0 ){                token = tkEXPLAIN;              }else#endif              {                token = tkOTHER;              }              break;            }            default: {              token = tkOTHER;              break;            }          }#endif /* SQLITE_OMIT_TRIGGER */          zSql += nId-1;        }else{          /* Operators and special symbols */          token = tkOTHER;        }        break;      }    }    state = trans[state][token];    zSql++;  }  return state==0;}#ifndef SQLITE_OMIT_UTF16/*** This routine is the same as the sqlite3_complete() routine described** above, except that the parameter is required to be UTF-16 encoded, not** UTF-8.*/int sqlite3_complete16(const void *zSql){  sqlite3_value *pVal;  char const *zSql8;  int rc = 0;  pVal = sqlite3ValueNew();  sqlite3ValueSetStr(pVal, -1, zSql, SQLITE_UTF16NATIVE, SQLITE_STATIC);  zSql8 = sqlite3ValueText(pVal, SQLITE_UTF8);  if( zSql8 ){    rc = sqlite3_complete(zSql8);  }  sqlite3ValueFree(pVal);  return sqlite3ApiExit(0, rc);}#endif /* SQLITE_OMIT_UTF16 */#endif /* SQLITE_OMIT_COMPLETE */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人中文字幕电影| 久久你懂得1024| 国产日韩欧美麻豆| 午夜精品一区二区三区电影天堂 | 亚洲免费色视频| 激情成人午夜视频| 欧美日韩一区二区欧美激情| 亚洲国产成人午夜在线一区| 激情综合网天天干| 91精品国产综合久久久蜜臀图片| 18涩涩午夜精品.www| 高清shemale亚洲人妖| 欧美成人vr18sexvr| 日韩av中文字幕一区二区| 色综合天天综合狠狠| 中文字幕不卡三区| 国产一区二区0| 精品国产欧美一区二区| 日韩电影在线观看电影| 在线看日韩精品电影| 最新久久zyz资源站| 成人性生交大片免费看在线播放| 国产午夜精品一区二区三区视频| 麻豆久久久久久| 日韩欧美美女一区二区三区| 日本va欧美va精品发布| 日韩一区二区在线看| 天天色天天操综合| 欧美夫妻性生活| 日韩国产欧美一区二区三区| 91精品国产91热久久久做人人| 亚洲国产va精品久久久不卡综合| 在线精品观看国产| 亚洲高清一区二区三区| 欧美日韩亚洲综合一区| 日韩国产精品久久久久久亚洲| 欧美另类变人与禽xxxxx| 日本欧美加勒比视频| 欧美电视剧在线观看完整版| 韩国精品一区二区| 国产精品久久久久久久浪潮网站| 成人午夜精品在线| 一区二区三区欧美日| 欧美日韩一本到| 久久疯狂做爰流白浆xx| 国产拍揄自揄精品视频麻豆| 99久久免费精品| 亚洲午夜三级在线| 日韩欧美国产一二三区| 高清久久久久久| 亚洲欧美国产77777| 欧美日韩不卡在线| 激情久久五月天| 日韩伦理电影网| 制服丝袜亚洲网站| 波多野结衣的一区二区三区| 亚洲自拍偷拍九九九| 欧美一卡二卡三卡四卡| 成人午夜视频免费看| 亚洲成人黄色小说| 久久精品视频免费| 欧美高清视频在线高清观看mv色露露十八| 免费观看日韩电影| 亚洲欧美在线另类| 欧美一级二级三级蜜桃| av成人免费在线观看| 日本成人在线视频网站| 成人免费在线播放视频| 日韩女优电影在线观看| 91视频在线观看免费| 麻豆精品新av中文字幕| 日韩美女精品在线| 久久综合久久99| 欧美日韩dvd在线观看| 丁香婷婷综合五月| 免费成人小视频| 亚洲精品中文字幕在线观看| 精品久久国产字幕高潮| 日本精品裸体写真集在线观看| 国产一本一道久久香蕉| 亚洲国产精品一区二区久久| 国产精品网曝门| 久久婷婷国产综合精品青草| 欧美人妖巨大在线| 日本韩国精品在线| 9i看片成人免费高清| 精品亚洲成a人| 肉色丝袜一区二区| 亚洲激情图片小说视频| 中文字幕制服丝袜一区二区三区| 91麻豆精品国产无毒不卡在线观看| 色综合天天在线| 成人教育av在线| 国产精品亚洲一区二区三区妖精| 日韩影院精彩在线| 午夜视频在线观看一区| 又紧又大又爽精品一区二区| 国产精品国模大尺度视频| 久久亚洲春色中文字幕久久久| 欧美日韩美少妇| 欧美中文字幕亚洲一区二区va在线| zzijzzij亚洲日本少妇熟睡| 国产精品一区二区不卡| 国产精品456| 国产成人午夜电影网| 国产一二精品视频| 国产乱码精品一区二区三| 久久av资源网| 久久国产三级精品| 久久电影网电视剧免费观看| 九九九久久久精品| 国产在线日韩欧美| 国产在线视频一区二区三区| 国产一区二区不卡老阿姨| 国产一区二区导航在线播放| 国产精品性做久久久久久| 国产夫妻精品视频| 成人午夜电影久久影院| 成a人片国产精品| 色婷婷狠狠综合| 欧美日韩国产区一| 欧美另类videos死尸| 欧美一卡二卡三卡四卡| 久久综合九色综合欧美就去吻 | 成年人国产精品| 色网综合在线观看| 91成人国产精品| 这里只有精品视频在线观看| 日韩欧美一级二级三级久久久| 久久综合五月天婷婷伊人| 亚洲精品国产一区二区精华液 | 97se亚洲国产综合自在线不卡| fc2成人免费人成在线观看播放 | 久久蜜臀中文字幕| 欧美国产日韩精品免费观看| 亚洲精品亚洲人成人网在线播放| 樱桃视频在线观看一区| 日韩精品1区2区3区| 国产一区欧美二区| 91蜜桃在线免费视频| 欧美人牲a欧美精品| 国产拍欧美日韩视频二区| 亚洲伦在线观看| 久久97超碰色| 91片在线免费观看| 欧美成人性福生活免费看| 国产欧美一区二区三区在线老狼| 亚洲精品亚洲人成人网| 理论电影国产精品| 日本高清视频一区二区| 精品久久久久99| 亚洲夂夂婷婷色拍ww47| 国模一区二区三区白浆| 色婷婷精品久久二区二区蜜臀av| 欧美一区二区三区白人| 国产精品热久久久久夜色精品三区| 亚洲香肠在线观看| 成人av电影观看| 日韩精品一区二区三区视频 | 1000部国产精品成人观看| 日本午夜精品一区二区三区电影| 成人综合婷婷国产精品久久免费| 久久精品一区二区| 亚洲一区二区三区三| 国产91精品精华液一区二区三区 | 日韩一区二区三免费高清| 亚洲欧洲美洲综合色网| 美女视频免费一区| 欧美最猛黑人xxxxx猛交| 日本一区二区在线不卡| 美女一区二区三区| 精品视频123区在线观看| 中文字幕一区在线观看| 国产成人av影院| 日韩精品一区二区三区在线播放| 夜色激情一区二区| eeuss鲁片一区二区三区在线观看| 日韩欧美中文字幕精品| 丝袜亚洲另类欧美综合| 在线免费观看视频一区| 国产精品毛片久久久久久久| 久久99精品久久久| 日韩午夜在线观看| 午夜a成v人精品| 欧美日韩精品一区二区| 亚洲主播在线播放| 91丨porny丨蝌蚪视频| 日韩毛片高清在线播放| www.亚洲人| 亚洲摸摸操操av| 色综合一区二区三区| 中文幕一区二区三区久久蜜桃| 国内久久精品视频| 日韩视频一区二区三区在线播放 | 亚洲一区二区三区不卡国产欧美| 白白色亚洲国产精品| ...xxx性欧美| 色94色欧美sute亚洲线路一ni| 一区二区三区在线观看动漫| 日本久久电影网|