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

Unified Diff: third_party/sqlite/safe-tolower.patch

Issue 6823057: Cleanup SQLite 3.6.18 import. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/sqlite/preprocessed/sqlite3.h ('k') | third_party/sqlite/sqlite-poison.patch » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/safe-tolower.patch
diff --git a/third_party/sqlite/safe-tolower.patch b/third_party/sqlite/safe-tolower.patch
index a2ea8aff3a9fc83ceb2fc5908cc9707ee8232af3..f754d3ab4c7f75be8f472e2fefea00892aa6a3f7 100644
--- a/third_party/sqlite/safe-tolower.patch
+++ b/third_party/sqlite/safe-tolower.patch
@@ -92,45 +92,6 @@ Index: ext/fts3/fts3_tokenizer1.c
}
*ppToken = c->pToken;
*pnBytes = n;
-Index: ext/fts1/simple_tokenizer.c
-===================================================================
---- ext/fts1/simple_tokenizer.c 2009-09-03 13:32:06.000000000 -0700
-+++ ext/fts1/simple_tokenizer.c 2009-09-02 11:40:21.000000000 -0700
-@@ -138,7 +138,7 @@
- ** case-insensitivity.
- */
- char ch = c->pCurrent[ii];
-- c->zToken[ii] = (unsigned char)ch<0x80 ? tolower(ch) : ch;
-+ c->zToken[ii] = ((ch>='A' && ch<='Z') ? (ch-'A'+'a') : ch);
- }
- c->zToken[n] = '\0';
- *ppToken = c->zToken;
-Index: ext/fts1/fts1_tokenizer1.c
-===================================================================
---- ext/fts1/fts1_tokenizer1.c 2009-09-03 13:32:06.000000000 -0700
-+++ ext/fts1/fts1_tokenizer1.c 2009-09-02 11:40:21.000000000 -0700
-@@ -182,7 +182,7 @@
- ** case-insensitivity.
- */
- unsigned char ch = p[iStartOffset+i];
-- c->pToken[i] = ch<0x80 ? tolower(ch) : ch;
-+ c->pToken[i] = (ch>='A' && ch<='Z') ? (ch-'A'+'a') : ch;
- }
- *ppToken = c->pToken;
- *pnBytes = n;
-Index: ext/fts1/fts1.c
-===================================================================
---- ext/fts1/fts1.c 2009-09-04 13:37:41.000000000 -0700
-+++ ext/fts1/fts1.c 2009-09-14 18:16:55.000000000 -0700
-@@ -208,7 +208,7 @@
- return (c&0x80)==0 ? isspace(c) : 0;
- }
- static int safe_tolower(char c){
-- return (c&0x80)==0 ? tolower(c) : c;
-+ return (c>='A' && c<='Z') ? (c-'A'+'a') : c;
- }
- static int safe_isalnum(char c){
- return (c&0x80)==0 ? isalnum(c) : 0;
Index: ext/fts2/fts2.c
===================================================================
--- ext/fts2/fts2.c 2009-09-04 13:37:41.000000000 -0700
« no previous file with comments | « third_party/sqlite/preprocessed/sqlite3.h ('k') | third_party/sqlite/sqlite-poison.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698