Mercurial > hg > octave-lyh
diff scripts/strings/cstrcat.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 | 3422f39573b1 |
children | eb63fbe60fab |
line wrap: on
line diff
--- a/scripts/strings/cstrcat.m +++ b/scripts/strings/cstrcat.m @@ -19,16 +19,26 @@ ## -*- texinfo -*- ## @deftypefn {Function File} {} cstrcat (@var{s1}, @var{s2}, @dots{}) -## Return a string containing all the arguments concatenated. For example, +## Return a string containing all the arguments concatenated +## horizontally. Trailing white space is preserved. For example, +## +## @example +## @group +## cstrcat ("ab ", "cd") +## @result{} "ab cd" +## @end group +## @end example ## ## @example ## @group ## s = [ "ab"; "cde" ]; ## cstrcat (s, s, s) -## @result{} "ab ab ab " +## @result{} ans = +## "ab ab ab " ## "cdecdecde" ## @end group ## @end example +## @seealso{strcat, char, strvcat} ## @end deftypefn ## Author: jwe