| OLD | NEW |
| 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 Loading... |
| 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) */ |
| OLD | NEW |