comparison src/search.c @ 66193:654295366299

(Fstring_match): Doc fix.
author Richard M. Stallman <rms@gnu.org>
date Wed, 19 Oct 2005 01:52:50 +0000
parents 2fe97fc2ee41
children 568d40ba6f52
comparison
equal deleted inserted replaced
66192:16f7998a8424 66193:654295366299
427 return make_number (string_byte_to_char (string, val)); 427 return make_number (string_byte_to_char (string, val));
428 } 428 }
429 429
430 DEFUN ("string-match", Fstring_match, Sstring_match, 2, 3, 0, 430 DEFUN ("string-match", Fstring_match, Sstring_match, 2, 3, 0,
431 doc: /* Return index of start of first match for REGEXP in STRING, or nil. 431 doc: /* Return index of start of first match for REGEXP in STRING, or nil.
432 Case is ignored if `case-fold-search' is non-nil in the current buffer. 432 Matching ignores case `case-fold-search' is non-nil.
433 If third arg START is non-nil, start search at that index in STRING. 433 If third arg START is non-nil, start search at that index in STRING.
434 For index of first char beyond the match, do (match-end 0). 434 For index of first char beyond the match, do (match-end 0).
435 `match-end' and `match-beginning' also give indices of substrings 435 `match-end' and `match-beginning' also give indices of substrings
436 matched by parenthesis constructs in the pattern. 436 matched by parenthesis constructs in the pattern.
437 437