OLD | NEW |
1 /* | 1 /* |
2 ** 2006 September 30 | 2 ** 2006 September 30 |
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 11 matching lines...) Expand all Loading... |
22 ** * The FTS2 module is being built into the core of | 22 ** * The FTS2 module is being built into the core of |
23 ** SQLite (in which case SQLITE_ENABLE_FTS2 is defined). | 23 ** SQLite (in which case SQLITE_ENABLE_FTS2 is defined). |
24 */ | 24 */ |
25 #if !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS2) | 25 #if !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS2) |
26 | 26 |
27 | 27 |
28 #include <assert.h> | 28 #include <assert.h> |
29 #include <stdlib.h> | 29 #include <stdlib.h> |
30 #include <stdio.h> | 30 #include <stdio.h> |
31 #include <string.h> | 31 #include <string.h> |
32 #include <ctype.h> | |
33 | 32 |
34 #include "fts2_tokenizer.h" | 33 #include "fts2_tokenizer.h" |
35 | 34 |
36 /* | 35 /* |
37 ** Class derived from sqlite3_tokenizer | 36 ** Class derived from sqlite3_tokenizer |
38 */ | 37 */ |
39 typedef struct porter_tokenizer { | 38 typedef struct porter_tokenizer { |
40 sqlite3_tokenizer base; /* Base class */ | 39 sqlite3_tokenizer base; /* Base class */ |
41 } porter_tokenizer; | 40 } porter_tokenizer; |
42 | 41 |
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 ** Allocate a new porter tokenizer. Return a pointer to the new | 632 ** Allocate a new porter tokenizer. Return a pointer to the new |
634 ** tokenizer in *ppModule | 633 ** tokenizer in *ppModule |
635 */ | 634 */ |
636 void sqlite3Fts2PorterTokenizerModule( | 635 void sqlite3Fts2PorterTokenizerModule( |
637 sqlite3_tokenizer_module const**ppModule | 636 sqlite3_tokenizer_module const**ppModule |
638 ){ | 637 ){ |
639 *ppModule = &porterTokenizerModule; | 638 *ppModule = &porterTokenizerModule; |
640 } | 639 } |
641 | 640 |
642 #endif /* !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS2) */ | 641 #endif /* !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS2) */ |
OLD | NEW |