Mercurial > hg > octave-lyh
diff scripts/strings/split.m @ 8442:502e58a0d44f
Fix docstrings, add examples, references and tests to string functions
author | Thorsten Meyer <thorsten.meyier@gmx.de> |
---|---|
date | Mon, 05 Jan 2009 08:11:03 +0100 |
parents | dadf478ddc42 |
children |
line wrap: on
line diff
--- a/scripts/strings/split.m +++ b/scripts/strings/split.m @@ -27,16 +27,19 @@ ## ## @example ## split ("Test string", "t") -## @result{} "Tes " +## @result{} +## "Tes " ## " s " ## "ring" ## @end example ## ## @example -## split ("Test string", "t", 2) -## @result{} "Tes " -## " string" +## split ("Test string", "t s", 2) +## @result{} +## "Tes " +## "tring" ## @end example +## @seealso{strtok, index} ## @end deftypefn ## Author: Kurt Hornik <Kurt.Hornik@wu-wien.ac.at>