comparison scripts/strings/strchr.m @ 8830:fa981a053064

doc fixes
author John W. Eaton <jwe@octave.org>
date Fri, 20 Feb 2009 12:24:03 -0500
parents 954b6f69f51d
children eb63fbe60fab
comparison
equal deleted inserted replaced
8829:235d71d77221 8830:fa981a053064
17 ## <http://www.gnu.org/licenses/>. 17 ## <http://www.gnu.org/licenses/>.
18 18
19 ## -*- texinfo -*- 19 ## -*- texinfo -*-
20 ## @deftypefn {Function File} {@var{idx} =} strchr (@var{str}, @var{chars}) 20 ## @deftypefn {Function File} {@var{idx} =} strchr (@var{str}, @var{chars})
21 ## @deftypefnx {Function File} {@var{idx} =} strchr (@var{str}, @var{chars}, @var{n}) 21 ## @deftypefnx {Function File} {@var{idx} =} strchr (@var{str}, @var{chars}, @var{n})
22 ## @deftypefnx {Function File} {@var{idx} =} strchr (@var{str}, @var{chars}, 22 ## @deftypefnx {Function File} {@var{idx} =} strchr (@var{str}, @var{chars}, @var{n}, @var{direction})
23 ## @var{n}, @var{direction})
24 ## Search for the string @var{str} for occurences of characters from the set @var{chars}. 23 ## Search for the string @var{str} for occurences of characters from the set @var{chars}.
25 ## The return value, as well as the @var{n} and @var{direction} arguments behave 24 ## The return value, as well as the @var{n} and @var{direction} arguments behave
26 ## identically as in @code{find}. 25 ## identically as in @code{find}.
27 ## 26 ##
28 ## This will be faster than using regexp in most cases. 27 ## This will be faster than using regexp in most cases.