Changeset 41c9a96 for message.c


Ignore:
Timestamp:
Jul 24, 2009, 12:59:23 AM (15 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
64c9165
Parents:
ab225e0
git-author:
Anders Kaseorg <andersk@mit.edu> (07/24/09 00:51:10)
git-committer:
Anders Kaseorg <andersk@mit.edu> (07/24/09 00:59:23)
Message:
Reimplement search in terms of owl_regex.

The current implementation of stristr has problems and there isn’t a
good replacement available.  This was its only caller, so we can get
rid of it now.

Also, this will make it possible to search with arbitrary regexes if
someone feels like coming up with a syntax.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • message.c

    r4d86e06 r41c9a96  
    673673 * case insensitive because the functions it uses are
    674674 */
    675 int owl_message_search(owl_message *m, char *string)
     675int owl_message_search(owl_message *m, owl_regex *re)
    676676{
    677677
    678678  owl_message_format(m); /* is this necessary? */
    679679 
    680   return (owl_fmtext_search(&(m->fmtext->fmtext), string));
     680  return (owl_fmtext_search(&(m->fmtext->fmtext), re));
    681681}
    682682
Note: See TracChangeset for help on using the changeset viewer.