Changeset 89b2daf
- Timestamp:
- Aug 15, 2009, 7:08:20 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- bd65108
- Parents:
- 3eb599d
- git-author:
- Anders Kaseorg <andersk@mit.edu> (07/22/09 02:19:16)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:20)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
fmtext.c
r77bced3 r89b2daf 555 555 * insensitive search. 556 556 */ 557 int owl_fmtext_search(const owl_fmtext *f, owl_regex *re)557 int owl_fmtext_search(const owl_fmtext *f, const owl_regex *re) 558 558 { 559 559 if (owl_regex_compare(re, f->textbuff, NULL, NULL) == 0) return(1); -
global.c
r1fdab04 r89b2daf 712 712 } 713 713 714 void owl_global_set_search_re(owl_global *g, owl_regex *re) {714 void owl_global_set_search_re(owl_global *g, const owl_regex *re) { 715 715 if (owl_regex_is_set(&g->search_re)) { 716 716 owl_regex_free(&g->search_re); … … 721 721 } 722 722 723 owl_regex *owl_global_get_search_re(owl_global *g) {723 const owl_regex *owl_global_get_search_re(owl_global *g) { 724 724 return &g->search_re; 725 725 } -
message.c
r1fdab04 r89b2daf 675 675 * case insensitive because the functions it uses are 676 676 */ 677 int owl_message_search(owl_message *m, owl_regex *re)677 int owl_message_search(owl_message *m, const owl_regex *re) 678 678 { 679 679 -
regex.c
re19eb97 r89b2daf 46 46 } 47 47 48 int owl_regex_compare( owl_regex *re, const char *string, int *start, int *end)48 int owl_regex_compare(const owl_regex *re, const char *string, int *start, int *end) 49 49 { 50 50 int out, ret; … … 68 68 } 69 69 70 int owl_regex_is_set( owl_regex *re)70 int owl_regex_is_set(const owl_regex *re) 71 71 { 72 72 if (re->string) return(1); … … 74 74 } 75 75 76 const char *owl_regex_get_string( owl_regex *re)76 const char *owl_regex_get_string(const owl_regex *re) 77 77 { 78 78 return(re->string); 79 79 } 80 80 81 void owl_regex_copy( owl_regex *a, owl_regex *b)81 void owl_regex_copy(const owl_regex *a, owl_regex *b) 82 82 { 83 83 owl_regex_create(b, a->string);
Note: See TracChangeset
for help on using the changeset viewer.