[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/search.c [emacs-unicode-2]
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/src/search.c [emacs-unicode-2] |
Date: |
Fri, 22 Oct 2004 06:42:07 -0400 |
Index: emacs/src/search.c
diff -c emacs/src/search.c:1.174.2.7 emacs/src/search.c:1.174.2.8
*** emacs/src/search.c:1.174.2.7 Sat Jul 17 02:46:48 2004
--- emacs/src/search.c Fri Oct 22 10:13:35 2004
***************
*** 460,465 ****
--- 460,486 ----
immediate_quit = 0;
return val;
}
+
+ /* Like fast_string_match but ignore case. */
+
+ int
+ fast_string_match_ignore_case (regexp, string)
+ Lisp_Object regexp, string;
+ {
+ int val;
+ struct re_pattern_buffer *bufp;
+
+ bufp = compile_pattern (regexp, 0, Vascii_downcase_table,
+ 0, STRING_MULTIBYTE (string));
+ immediate_quit = 1;
+ re_match_object = string;
+
+ val = re_search (bufp, (char *) SDATA (string),
+ SBYTES (string), 0,
+ SBYTES (string), 0);
+ immediate_quit = 0;
+ return val;
+ }
/* The newline cache: remembering which sections of text have no newlines. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/src/search.c [emacs-unicode-2],
Miles Bader <=