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

Side by Side Diff: third_party/sqlite/src/ext/fts2/fts2_icu.c

Issue 1073293002: [sql] Remove fts2 patches. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Put back SQLITE_CORE only for the icu component for iOS Created 5 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 ** 2007 June 22 2 ** 2007 June 22
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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 UChar32 c; 191 UChar32 c;
192 192
193 iStart = ubrk_current(pCsr->pIter); 193 iStart = ubrk_current(pCsr->pIter);
194 iEnd = ubrk_next(pCsr->pIter); 194 iEnd = ubrk_next(pCsr->pIter);
195 if( iEnd==UBRK_DONE ){ 195 if( iEnd==UBRK_DONE ){
196 return SQLITE_DONE; 196 return SQLITE_DONE;
197 } 197 }
198 198
199 while( iStart<iEnd ){ 199 while( iStart<iEnd ){
200 int iWhite = iStart; 200 int iWhite = iStart;
201 U16_NEXT(pCsr->aChar, iWhite, pCsr->nChar, c); 201 U8_NEXT(pCsr->aChar, iWhite, pCsr->nChar, c);
202 if( u_isspace(c) ){ 202 if( u_isspace(c) ){
203 iStart = iWhite; 203 iStart = iWhite;
204 }else{ 204 }else{
205 break; 205 break;
206 } 206 }
207 } 207 }
208 assert(iStart<=iEnd); 208 assert(iStart<=iEnd);
209 } 209 }
210 210
211 do { 211 do {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 ** Set *ppModule to point at the implementation of the ICU tokenizer. 251 ** Set *ppModule to point at the implementation of the ICU tokenizer.
252 */ 252 */
253 void sqlite3Fts2IcuTokenizerModule( 253 void sqlite3Fts2IcuTokenizerModule(
254 sqlite3_tokenizer_module const**ppModule 254 sqlite3_tokenizer_module const**ppModule
255 ){ 255 ){
256 *ppModule = &icuTokenizerModule; 256 *ppModule = &icuTokenizerModule;
257 } 257 }
258 258
259 #endif /* defined(SQLITE_ENABLE_ICU) */ 259 #endif /* defined(SQLITE_ENABLE_ICU) */
260 #endif /* !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS2) */ 260 #endif /* !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS2) */
OLDNEW
« no previous file with comments | « third_party/sqlite/src/ext/fts2/fts2.c ('k') | third_party/sqlite/src/ext/fts2/fts2_tokenizer.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698