Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: third_party/sqlite/sqlite-src-3070603/src/func.c

Issue 826543003: [sql] Import reference version of SQLite 3.7.6.3. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: gitignore forgot some files for me. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 ** 2002 February 23 2 ** 2002 February 23
3 ** 3 **
4 ** The author disclaims copyright to this source code. In place of 4 ** The author disclaims copyright to this source code. In place of
5 ** a legal notice, here is a blessing: 5 ** a legal notice, here is a blessing:
6 ** 6 **
7 ** May you do good and not evil. 7 ** May you do good and not evil.
8 ** May you find forgiveness for yourself and forgive others. 8 ** May you find forgiveness for yourself and forgive others.
9 ** May you share freely, never taking more than you give. 9 ** May you share freely, never taking more than you give.
10 ** 10 **
(...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 int len = 0; 1107 int len = 0;
1108 for(i=0; i<nChar; i++){ 1108 for(i=0; i<nChar; i++){
1109 len = aLen[i]; 1109 len = aLen[i];
1110 if( len<=nIn && memcmp(&zIn[nIn-len],azChar[i],len)==0 ) break; 1110 if( len<=nIn && memcmp(&zIn[nIn-len],azChar[i],len)==0 ) break;
1111 } 1111 }
1112 if( i>=nChar ) break; 1112 if( i>=nChar ) break;
1113 nIn -= len; 1113 nIn -= len;
1114 } 1114 }
1115 } 1115 }
1116 if( zCharSet ){ 1116 if( zCharSet ){
1117 sqlite3_free((void*)azChar); 1117 sqlite3_free(azChar);
1118 } 1118 }
1119 } 1119 }
1120 sqlite3_result_text(context, (char*)zIn, nIn, SQLITE_TRANSIENT); 1120 sqlite3_result_text(context, (char*)zIn, nIn, SQLITE_TRANSIENT);
1121 } 1121 }
1122 1122
1123 1123
1124 /* IMP: R-25361-16150 This function is omitted from SQLite by default. It 1124 /* IMP: R-25361-16150 This function is omitted from SQLite by default. It
1125 ** is only available if the SQLITE_SOUNDEX compile-time option is used 1125 ** is only available if the SQLITE_SOUNDEX compile-time option is used
1126 ** when SQLite is built. 1126 ** when SQLite is built.
1127 */ 1127 */
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
1582 FuncDef *aFunc = (FuncDef*)&GLOBAL(FuncDef, aBuiltinFunc); 1582 FuncDef *aFunc = (FuncDef*)&GLOBAL(FuncDef, aBuiltinFunc);
1583 1583
1584 for(i=0; i<ArraySize(aBuiltinFunc); i++){ 1584 for(i=0; i<ArraySize(aBuiltinFunc); i++){
1585 sqlite3FuncDefInsert(pHash, &aFunc[i]); 1585 sqlite3FuncDefInsert(pHash, &aFunc[i]);
1586 } 1586 }
1587 sqlite3RegisterDateTimeFunctions(); 1587 sqlite3RegisterDateTimeFunctions();
1588 #ifndef SQLITE_OMIT_ALTERTABLE 1588 #ifndef SQLITE_OMIT_ALTERTABLE
1589 sqlite3AlterFunctions(); 1589 sqlite3AlterFunctions();
1590 #endif 1590 #endif
1591 } 1591 }
OLDNEW
« no previous file with comments | « third_party/sqlite/sqlite-src-3070603/src/fkey.c ('k') | third_party/sqlite/sqlite-src-3070603/src/global.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698