aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-searching-tokenizer.c
Commit message (Collapse)AuthorAgeFilesLines
* #include <stdlib.h> for alloca (searcher_next_token): Changed slightly toJeffrey Stedfast2002-09-281-11/+17
| | | | | | | | | | | | | 2002-09-27 Jeffrey Stedfast <fejj@ximian.com> * e-searching-tokenizer.c: #include <stdlib.h> for alloca (searcher_next_token): Changed slightly to make sure that m is not NULL before dereferencing it. Also initialise m to NULL so that it can't be used uninitialised (NULL is a safe initialised value here). (build_trie): Same, but for n. svn path=/trunk/; revision=18250
* Removed bogus static pre-declaration.Ettore Perazzoli2002-07-191-3/+3
| | | | | | | | | | | | | * mail-folder-cache.c: Removed bogus static pre-declaration. * e-searching-tokenizer.c (e_searching_tokenizer_end): Removed unused variables. * mail-callbacks.c: #include <gtkhtml.h>. * folder-info.h (evolution_folder_info_get_type): Add prototype. svn path=/trunk/; revision=17508
* remove debug printfDan Winship2002-07-171-2/+0
| | | | svn path=/trunk/; revision=17489
* New functions to add additional search strings one at a time. Maybe itNot Zed2002-05-211-660/+871
| | | | | | | | | | | | | | | | 2002-05-18 Not Zed <NotZed@Ximian.com> * e-searching-tokenizer.c (e_searching_tokenizer_add_primary_search_string): (e_searching_tokenizer_add_secondary_search_string): New functions to add additional search strings one at a time. Maybe it should just split the word itself? (all): Basically, entirely rewritten. Now implements the Aho-Corasick multiple pattern search algorithm and handles multiple search strings and only ever has to decode any utf8 character once, etc etc. svn path=/trunk/; revision=16961
* Fixed a warning by #if 0ing out this function.Christopher James Lahey2001-10-301-0/+2
| | | | | | | | | | | | | | | 2001-10-29 Christopher James Lahey <clahey@ximian.com> * e-searching-tokenizer.c (search_info_set_match_size_increase): Fixed a warning by #if 0ing out this function. * folder-browser.c, folder-browser.h (on_selection_changed): Update status bar in an idle call. Fixes Ximian bug #13929. * mail-folder-cache.c (folder_renamed, store_folder_renamed): Fixed some warnings here. svn path=/trunk/; revision=14372
* Update the licensing information to require version 2 of the GPLEttore Perazzoli2001-10-271-3/+2
| | | | | | (instead of version 2 or any later version). svn path=/trunk/; revision=14191
* Always explicitly clear out the SearchInfo.Jon Trowbridge2001-10-171-4/+8
| | | | | | | | | 2001-10-16 Jon Trowbridge <trow@ximian.com> * e-searching-tokenizer.c (e_searching_tokenizer_begin): Always explicitly clear out the SearchInfo. svn path=/trunk/; revision=13704
* Share more state between the parent and its clones, so that our multipleJon Trowbridge2001-10-151-29/+71
| | | | | | | | | | | 2001-10-14 Jon Trowbridge <trow@ximian.com> * e-searching-tokenizer.c (e_searching_tokenizer_clone): Share more state between the parent and its clones, so that our multiple tokenizers don't get out of sync when we are rendering frames and iframes. (Bug #11638) svn path=/trunk/; revision=13671
* Bad hacker! Don't implicitly assume that utf8 characters are one byte inJon Trowbridge2001-10-141-3/+7
| | | | | | | | | | | | | 2001-10-13 Jon Trowbridge <trow@ximian.com> * e-searching-tokenizer.c (search_info_compare): Bad hacker! Don't implicitly assume that utf8 characters are one byte in size! (Bug #9520) (e_searching_tokenizer_begin): As long as I'm touching those code: don't increase the size of search matches. I'll fix the colors later. (part of bug #11589) svn path=/trunk/; revision=13667
* Use secondary searches here, so that we control the interference betweenJon Trowbridge2001-05-141-57/+150
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-05-14 Jon Trowbridge <trow@ximian.com> * folder-browser.c (folder_browser_config_search): Use secondary searches here, so that we control the interference between the two bits of searching UI. 2001-05-13 Jon Trowbridge <trow@ximian.com> * mail-search.c (mail_search_construct): Destroy the MailSearch dialog if the underlying MailDisplay is destroyed. I don't like the way that label in the dialog with the message subject in it looks, so I've #ifdef-ed it out for now. Center the Matches label --- it makes the dialog look more balanced, I think. (dialog_clicked_cb): Changed to reflect adjusted ESearchingTokenizer API, using primary searches. (toggled_case_cb): Use the primary search API. * e-searching-tokenizer.c: Make searching routines utf8-friendly. Rationalize how the match begin/end markup is handled; allow for begin/end markup that varies by search. Add concept of primary and secondary matching, to disentangle possible interactions between search-bar searches and search-dialog searches. svn path=/trunk/; revision=9789
* Remove a snippet of debugging code I left in by mistake.Jon Trowbridge2001-05-121-8/+0
| | | | | | | | | 2001-05-11 Jon Trowbridge <trow@ximian.com> * e-searching-tokenizer.c (e_searching_tokenizer_new): Remove a snippet of debugging code I left in by mistake. svn path=/trunk/; revision=9761
* Use the ESearchingTokenizer to highlight search matches for folder-levelJon Trowbridge2001-05-111-0/+901
2001-05-10 Jon Trowbridge <trow@ximian.com> * folder-browser.c (folder_browser_config_search): Use the ESearchingTokenizer to highlight search matches for folder-level searches. Still mildly broken, but it works for the simple cases. * mail-display.c (mail_display_new): Use our ESearchingTokenizer for the mail display GtkHTML widget. * mail-search.c (dialog_clicked_cb): Use the ESearchingTokenizer to highlight search matches. (mail_search_construct): Add a match count to the search dialog. * e-searching-tokenizer.c (e_searching_tokenizer_set_search_string): Added. A custom HTML tokenizer that does highlighting of search strings. svn path=/trunk/; revision=9754