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

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

?? complete.c

?? 新版輕量級嵌入式數據庫
?? 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一区二区三区免费野_久草精品视频
亚洲人成人一区二区在线观看| 欧美日韩高清一区二区三区| 91视频在线观看免费| 欧美在线观看视频一区二区三区| 制服丝袜亚洲网站| 国产人久久人人人人爽| 一区二区三区自拍| 美女一区二区三区| av午夜一区麻豆| 91麻豆精品久久久久蜜臀| 久久天堂av综合合色蜜桃网| 亚洲另类中文字| 美女视频黄 久久| 91美女在线视频| 日韩精品一区二区三区视频播放| 国产精品久久久久久久裸模| 天天av天天翘天天综合网| 国产成人精品亚洲午夜麻豆| 欧美日韩国产精选| 国产精品污污网站在线观看| 性做久久久久久免费观看| 成人深夜视频在线观看| 欧美丰满高潮xxxx喷水动漫| 国产精品每日更新| 欧美aⅴ一区二区三区视频| 91麻豆精东视频| 欧美精品一区二区三区蜜臀| 午夜精品影院在线观看| voyeur盗摄精品| 精品国产亚洲在线| 亚洲国产精品久久人人爱蜜臀| 国产精品66部| 欧美一区二区在线播放| 亚洲色图清纯唯美| 国产精品18久久久| 欧美一级搡bbbb搡bbbb| 一区二区在线免费| 成人国产在线观看| 久久色在线视频| 日本亚洲免费观看| 欧美这里有精品| 日韩一区在线免费观看| 国产一区二区精品久久91| 欧美精品在线视频| 亚洲一二三级电影| av欧美精品.com| 国产日韩三级在线| 韩日av一区二区| 7777精品久久久大香线蕉 | 国产在线日韩欧美| 884aa四虎影成人精品一区| 亚洲欧美二区三区| 99v久久综合狠狠综合久久| 国产亚洲美州欧州综合国| 久久精品国产**网站演员| 欧美伦理视频网站| 亚洲国产精品久久不卡毛片| 色婷婷综合久久久中文一区二区| 国产精品色呦呦| 粉嫩嫩av羞羞动漫久久久| 久久久不卡网国产精品一区| 美女性感视频久久| 日韩欧美一区二区久久婷婷| 日韩av在线免费观看不卡| 欧美精品日日鲁夜夜添| 亚洲大片精品永久免费| 欧美视频一区二区在线观看| 亚洲伊人伊色伊影伊综合网| 色综合天天天天做夜夜夜夜做| 亚洲欧美自拍偷拍色图| 91丨九色porny丨蝌蚪| 国产精品激情偷乱一区二区∴| 成人一区二区三区视频在线观看| 中文一区在线播放| av激情成人网| 一区二区三区高清在线| 欧美色窝79yyyycom| 亚洲成va人在线观看| 欧美精品亚洲二区| 秋霞成人午夜伦在线观看| 日韩欧美一级精品久久| 国产美女主播视频一区| 国产欧美日韩久久| 97se亚洲国产综合在线| 亚洲亚洲人成综合网络| 91精品国产色综合久久不卡蜜臀 | 91精品啪在线观看国产60岁| 日韩精品成人一区二区三区| 日韩一级片网站| 国内精品嫩模私拍在线| 国产精品私人自拍| 一本到不卡免费一区二区| 亚洲五月六月丁香激情| 日韩亚洲欧美一区二区三区| 国产成人自拍网| 亚洲欧美一区二区三区久本道91| 欧美亚洲综合色| 蜜桃视频一区二区| 中文久久乱码一区二区| 色妹子一区二区| 日本视频在线一区| 久久久久久免费毛片精品| heyzo一本久久综合| 亚洲综合视频在线| 欧美一二三在线| 成人app在线观看| 亚洲成人av在线电影| 精品不卡在线视频| 不卡av免费在线观看| 午夜精品免费在线观看| 国产亚洲精品资源在线26u| 在线免费观看不卡av| 麻豆精品久久精品色综合| 国产精品美女久久久久久久| 欧美乱妇20p| 国产精品一线二线三线| 一区二区三区精品久久久| 精品乱码亚洲一区二区不卡| 99国产精品久久久| 免费在线看成人av| 中文字幕一区二区三区色视频| 欧美日韩国产综合一区二区| 国产成人精品亚洲777人妖| 亚洲一级不卡视频| 欧美激情一区二区三区四区| 欧美欧美欧美欧美| 成人av资源下载| 日韩国产精品91| 综合av第一页| 欧美精品一区二区三区久久久| 日本乱码高清不卡字幕| 国产一区二区在线免费观看| 亚洲一区二区欧美日韩| 国产精品沙发午睡系列990531| 欧美一区中文字幕| 色综合久久中文综合久久97| 黑人精品欧美一区二区蜜桃| 亚洲va欧美va国产va天堂影院| 中文在线资源观看网站视频免费不卡| 欧美午夜精品一区| 成人av综合在线| 精品无人区卡一卡二卡三乱码免费卡| 怡红院av一区二区三区| 欧美国产激情一区二区三区蜜月| 91麻豆精品国产91久久久更新时间| 99久久精品久久久久久清纯| 激情图片小说一区| 日本亚洲免费观看| 亚洲午夜国产一区99re久久| 亚洲欧洲精品一区二区三区| 久久丝袜美腿综合| 欧美一卡二卡在线| 欧美精三区欧美精三区| 在线影视一区二区三区| 成+人+亚洲+综合天堂| 狠狠色狠狠色合久久伊人| 日韩av在线免费观看不卡| 亚洲国产一区二区三区| 一区在线播放视频| 中文在线免费一区三区高中清不卡| www精品美女久久久tv| 欧美一区二区三区免费观看视频| 在线亚洲+欧美+日本专区| 91在线播放网址| 成人福利视频在线| 国产成人在线网站| 国产精品一区免费视频| 久久99久久99精品免视看婷婷 | 91精品国产欧美一区二区成人| 在线视频国内自拍亚洲视频| 91视频精品在这里| youjizz国产精品| av亚洲精华国产精华精| 成人国产精品视频| av在线综合网| 91猫先生在线| 91蜜桃网址入口| 色偷偷成人一区二区三区91 | 亚洲在线一区二区三区| 一区二区三区加勒比av| 有码一区二区三区| 亚洲激情六月丁香| 亚洲一区二区视频在线观看| 亚洲一区二区三区小说| 一区二区三区四区视频精品免费 | 欧美日韩亚洲国产综合| 欧洲中文字幕精品| 欧美午夜不卡视频| 911精品国产一区二区在线| 欧美精品xxxxbbbb| 日韩欧美中文字幕制服| 精品福利视频一区二区三区| 久久久综合视频| 国产精品女同互慰在线看| 国产精品高潮呻吟| 玉米视频成人免费看| 婷婷六月综合亚洲| 久久国产精品99久久人人澡| 国产剧情一区二区三区| 不卡区在线中文字幕|