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

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

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 ** 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 *piEndOffset = pCsr->aOffset[iEnd]; 233 *piEndOffset = pCsr->aOffset[iEnd];
234 *piPosition = pCsr->iToken++; 234 *piPosition = pCsr->iToken++;
235 235
236 return SQLITE_OK; 236 return SQLITE_OK;
237 } 237 }
238 238
239 /* 239 /*
240 ** The set of routines that implement the simple tokenizer 240 ** The set of routines that implement the simple tokenizer
241 */ 241 */
242 static const sqlite3_tokenizer_module icuTokenizerModule = { 242 static const sqlite3_tokenizer_module icuTokenizerModule = {
243 0, /* iVersion */ 243 0, /* iVersion */
244 icuCreate, /* xCreate */ 244 icuCreate, /* xCreate */
245 icuDestroy, /* xCreate */ 245 icuDestroy, /* xCreate */
246 icuOpen, /* xOpen */ 246 icuOpen, /* xOpen */
247 icuClose, /* xClose */ 247 icuClose, /* xClose */
248 icuNext, /* xNext */ 248 icuNext, /* xNext */
249 0, /* xLanguageid */
249 }; 250 };
250 251
251 /* 252 /*
252 ** Set *ppModule to point at the implementation of the ICU tokenizer. 253 ** Set *ppModule to point at the implementation of the ICU tokenizer.
253 */ 254 */
254 void sqlite3Fts3IcuTokenizerModule( 255 void sqlite3Fts3IcuTokenizerModule(
255 sqlite3_tokenizer_module const**ppModule 256 sqlite3_tokenizer_module const**ppModule
256 ){ 257 ){
257 *ppModule = &icuTokenizerModule; 258 *ppModule = &icuTokenizerModule;
258 } 259 }
259 260
260 #endif /* defined(SQLITE_ENABLE_ICU) */ 261 #endif /* defined(SQLITE_ENABLE_ICU) */
261 #endif /* !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS3) */ 262 #endif /* !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS3) */
OLDNEW
« no previous file with comments | « third_party/sqlite/src/ext/fts3/fts3_expr.c ('k') | third_party/sqlite/src/ext/fts3/fts3_porter.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698