WIP
This commit is contained in:
parent
537eebdf6d
commit
426b8b1d87
2
eb/all.c
2
eb/all.c
@ -72,7 +72,7 @@ EB_Error_Code eb_search_all(EB_Book* book, const char input_word[]) {
|
|||||||
/* Initialize search context. */
|
/* Initialize search context. */
|
||||||
eb_reset_search_contexts(book);
|
eb_reset_search_contexts(book);
|
||||||
EB_Search_Context* context = book->search_contexts;
|
EB_Search_Context* context = book->search_contexts;
|
||||||
context->code = EB_SEARCH_WORD;
|
context->code = EB_SEARCH_ALL;
|
||||||
context->compare_pre = eb_match_all;
|
context->compare_pre = eb_match_all;
|
||||||
context->compare_single = eb_match_all;
|
context->compare_single = eb_match_all;
|
||||||
context->compare_group = eb_match_all;
|
context->compare_group = eb_match_all;
|
||||||
|
@ -107,6 +107,7 @@
|
|||||||
#define EB_SEARCH_KEYWORD 3
|
#define EB_SEARCH_KEYWORD 3
|
||||||
#define EB_SEARCH_MULTI 4
|
#define EB_SEARCH_MULTI 4
|
||||||
#define EB_SEARCH_CROSS 5
|
#define EB_SEARCH_CROSS 5
|
||||||
|
#define EB_SEARCH_ALL 6
|
||||||
#define EB_SEARCH_NONE -1
|
#define EB_SEARCH_NONE -1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -434,6 +434,7 @@ eb_hit_list(EB_Book *book, int max_hit_count, EB_Hit *hit_list, int *hit_count)
|
|||||||
switch (book->search_contexts->code) {
|
switch (book->search_contexts->code) {
|
||||||
case EB_SEARCH_EXACTWORD:
|
case EB_SEARCH_EXACTWORD:
|
||||||
case EB_SEARCH_WORD:
|
case EB_SEARCH_WORD:
|
||||||
|
case EB_SEARCH_ALL:
|
||||||
case EB_SEARCH_ENDWORD:
|
case EB_SEARCH_ENDWORD:
|
||||||
/*
|
/*
|
||||||
* In case of exactword, word of endword search.
|
* In case of exactword, word of endword search.
|
||||||
|
Loading…
Reference in New Issue
Block a user