Mercurial > hg > octave-lyh
diff scripts/strings/strmatch.m @ 11587:c792872f8942
all script files: untabify and strip trailing whitespace
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:35:29 -0500 |
parents | fd0a3ac60b0e |
children | cefd568ea073 |
line wrap: on
line diff
--- a/scripts/strings/strmatch.m +++ b/scripts/strings/strmatch.m @@ -25,7 +25,7 @@ ## strings. If the third argument @code{"exact"} is not given, then ## @var{s} only needs to match @var{A} up to the length of @var{s}. ## Trailing whitespace is ignored. -## Results are returned as a column vector. +## Results are returned as a column vector. ## For example: ## ## @example @@ -55,7 +55,7 @@ if (! ischar (s)) error ("strmatch: S must be a string"); endif - + ## Truncate trailing whitespace. s = strtrimr (s); @@ -89,8 +89,8 @@ else error ("strmatch: A must be a string or cell array of strings"); endif - -endfunction + +endfunction ## Removes nuls and blanks from the end of the array function s = strtrimr (s)