+2000-10-26  TAKAHASHI Kaoru  <kaoru@kaisei.org>
+
+       * elmo-util.el (elmo-string-matched-member): New function.
+
 2000-10-26  Yuuichi Teranishi  <teranisi@gohome.org>
 
        * elmo-util.el (elmo-unintern): New macro.
 
            (throw 'member (car list)))
        (setq list (cdr list))))))
 
+(defun elmo-string-matched-member (str list &optional case-ignore)
+  (let ((case-fold-search case-ignore))
+    (catch 'member
+      (while list
+       (if (string-match str (car list))
+           (throw 'member (car list)))
+       (setq list (cdr list))))))
+
 (defsubst elmo-string-delete-match (string pos)
   (concat (substring string
                     0 (match-beginning pos))