Definition in file dic_search.h.
Go to the source code of this file.
Defines | |
#define | RES_7PL1_MAX 200 |
number of results for Rack+1 search (Dic_search_7pl1) | |
#define | RES_RACC_MAX 100 |
number of results for Extensions search (Dic_search_Racc) | |
#define | RES_BENJ_MAX 100 |
number of results for Benjamin search (Dic_search_Benj) | |
#define | RES_CROS_MAX 200 |
number of results for CrossWords search (Dic_search_Cros) | |
#define | RES_REGE_MAX 200 |
number of results for Regular Expression search (Dic_search_RegE) | |
Functions | |
int | Dic_search_word (Dictionary dic, const char *path) |
Search for a word in the dictionnary. | |
void | Dic_search_7pl1 (Dictionary dic, const char *rack, char wordlist[DIC_LETTERS][RES_7PL1_MAX][DIC_WORD_MAX], int joker) |
Search for all feasible word with "rack" plus one letter. | |
void | Dic_search_Racc (Dictionary dic, const char *word, char wordlist[RES_RACC_MAX][DIC_WORD_MAX]) |
Search for all feasible word adding a letter in front or at the end. | |
void | Dic_search_Benj (Dictionary dic, const char *word, char wordlist[RES_BENJ_MAX][DIC_WORD_MAX]) |
Search for benjamins. | |
void | Dic_search_Cros (Dictionary dic, const char *mask, char wordlist[RES_CROS_MAX][DIC_WORD_MAX]) |
Search for crosswords. | |
void | Dic_search_RegE (Dictionary dic, const char *re, char wordlist[RES_REGE_MAX][DIC_WORD_MAX], struct search_RegE_list_t *list) |
Search for words matching a regular expression. |
|
number of results for Rack+1 search (Dic_search_7pl1)
Definition at line 37 of file dic_search.h. Referenced by PPlus1::compute_enter(), Dic_search_7pl1(), and Plus1Frame::refresh(). |
|
number of results for Benjamin search (Dic_search_Benj)
Definition at line 47 of file dic_search.h. Referenced by Dic_search_Benj(), and BenjFrame::refresh(). |
|
number of results for CrossWords search (Dic_search_Cros)
Definition at line 52 of file dic_search.h. Referenced by PCross::compute_enter(), Dic_search_Cros(), and eliottxt_get_cross(). |
|
number of results for Extensions search (Dic_search_Racc)
Definition at line 42 of file dic_search.h. Referenced by Dic_search_Racc(), and RaccFrame::refresh(). |
|
number of results for Regular Expression search (Dic_search_RegE)
Definition at line 57 of file dic_search.h. Referenced by PRegExp::compute_enter(), Dic_search_RegE(), and main(). |
|
Search for all feasible word with "rack" plus one letter.
Definition at line 163 of file dic_search.c. References _Dictionary::dawg, DIC_CHAR_MASK, DIC_LETTERS, Dic_search_word_by_len(), _Dawg_edge::ptr, RES_7PL1_MAX, _Dictionary::root, params_7plus1_t::search_dic, params_7plus1_t::search_len, params_7plus1_t::search_letters, params_7plus1_t::search_wordlist, params_7plus1_t::search_wordlistlen, params_7plus1_t::search_wordlistlenmax, and params_7plus1_t::search_wordtst. Referenced by Plus1Frame::refresh(). |
|
Search for benjamins.
Definition at line 296 of file dic_search.c. References _Dawg_edge::chr, _Dictionary::dawg, Dic_seek_edgeptr(), _Dawg_edge::ptr, RES_BENJ_MAX, _Dictionary::root, and _Dawg_edge::term. Referenced by BenjFrame::refresh(). |
|
Search for crosswords.
Definition at line 385 of file dic_search.c. References DIC_CHAR_MASK, params_cross_t::mask, and RES_CROS_MAX. Referenced by eliottxt_get_cross(). |
|
Search for all feasible word adding a letter in front or at the end.
Definition at line 242 of file dic_search.c. References Dic_search_word(), and RES_RACC_MAX. Referenced by RaccFrame::refresh(). |
|
Search for words matching a regular expression.
Definition at line 473 of file dic_search.c. References params_regexp_t::automaton, automaton_build(), automaton_delete(), automaton_get_init(), params_regexp_t::charlist, _Dictionary::dawg, params_regexp_t::dic, Dic_search_regexp_rec(), search_RegE_list_t::maxlength, params_regexp_t::maxlength, search_RegE_list_t::minlength, params_regexp_t::minlength, regexp_error_report_t::msg, regexp_error_report_t::pos1, regexp_error_report_t::pos2, node::PP, regexp_delete_tree(), REGEXP_MAX, regexp_parcours(), regexp_possuivante(), regexpparse(), RES_REGE_MAX, _Dictionary::root, params_regexp_t::word, params_regexp_t::wordlen, params_regexp_t::wordlistlen, and params_regexp_t::wordlistlenmax. Referenced by PRegExp::compute_enter(), and main(). |
|
Search for a word in the dictionnary.
Definition at line 80 of file dic_search.c. References _Dictionary::dawg, Dic_seek_edgeptr(), _Dictionary::root, and _Dawg_edge::term. Referenced by Game::checkPlayedWord(), Dic_search_Racc(), loop_duplicate(), loop_freegame(), loop_training(), and VerifFrame::verif(). |