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

Side by Side Diff: third_party/sqlite/ext/fts3/fts3_icu.c

Issue 1638019: Applying fts2.patch to fts3. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « third_party/sqlite/ext/fts3/fts3.c ('k') | third_party/sqlite/ext/fts3/fts3_tokenizer.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 U8_NEXT(pCsr->aChar, iWhite, pCsr->nChar, c); 201 U16_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 sqlite3Fts3IcuTokenizerModule( 253 void sqlite3Fts3IcuTokenizerModule(
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_FTS3) */ 260 #endif /* !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS3) */
OLDNEW
« no previous file with comments | « third_party/sqlite/ext/fts3/fts3.c ('k') | third_party/sqlite/ext/fts3/fts3_tokenizer.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698