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

Unified Diff: third_party/sqlite/sqlite-src-3070603/ext/fts3/fts3_porter.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 side-by-side diff with in-line comments
Download patch
Index: third_party/sqlite/sqlite-src-3070603/ext/fts3/fts3_porter.c
diff --git a/third_party/sqlite/src/ext/fts3/fts3_porter.c b/third_party/sqlite/sqlite-src-3070603/ext/fts3/fts3_porter.c
similarity index 99%
copy from third_party/sqlite/src/ext/fts3/fts3_porter.c
copy to third_party/sqlite/sqlite-src-3070603/ext/fts3/fts3_porter.c
index f7f047c8fcc29a4d1b1337dcdebc65b5b1a49d3e..27f9cf39d7535e4272017df2613f9aba4461f215 100644
--- a/third_party/sqlite/src/ext/fts3/fts3_porter.c
+++ b/third_party/sqlite/sqlite-src-3070603/ext/fts3/fts3_porter.c
@@ -129,7 +129,7 @@ static int porterClose(sqlite3_tokenizer_cursor *pCursor){
/*
** Vowel or consonant
*/
-static const char vOrCType[] = {
+static const char cType[] = {
0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0,
1, 1, 1, 2, 1
};
@@ -153,7 +153,7 @@ static int isConsonant(const char *z){
char x = *z;
if( x==0 ) return 0;
assert( x>='a' && x<='z' );
- j = vOrCType[x-'a'];
+ j = cType[x-'a'];
if( j<2 ) return j;
return z[1]==0 || isVowel(z + 1);
}
@@ -162,7 +162,7 @@ static int isVowel(const char *z){
char x = *z;
if( x==0 ) return 0;
assert( x>='a' && x<='z' );
- j = vOrCType[x-'a'];
+ j = cType[x-'a'];
if( j<2 ) return 1-j;
return isConsonant(z + 1);
}

Powered by Google App Engine
This is Rietveld 408576698