comparison src/strfns.cc @ 12900:00f5292aefeb

Backout 12897:503865c2e542
author Jordi Gutiérrez Hermoso <jordigh@gmail.com>
date Fri, 29 Jul 2011 02:31:14 -0500
parents 503865c2e542
children af36cdb552a6
comparison
equal deleted inserted replaced
12899:0ca8f06aba7a 12900:00f5292aefeb
168 "-*- texinfo -*-\n\ 168 "-*- texinfo -*-\n\
169 @deftypefn {Built-in Function} {} strvcat (@var{x})\n\ 169 @deftypefn {Built-in Function} {} strvcat (@var{x})\n\
170 @deftypefnx {Built-in Function} {} strvcat (@var{x}, @dots{})\n\ 170 @deftypefnx {Built-in Function} {} strvcat (@var{x}, @dots{})\n\
171 @deftypefnx {Built-in Function} {} strvcat (@var{s1}, @var{s2}, @dots{})\n\ 171 @deftypefnx {Built-in Function} {} strvcat (@var{s1}, @var{s2}, @dots{})\n\
172 @deftypefnx {Built-in Function} {} strvcat (@var{cell_array})\n\ 172 @deftypefnx {Built-in Function} {} strvcat (@var{cell_array})\n\
173 @deftypefnx {Built-in Function} {} strvcat ()\n\
174 Create a character array from one or more numeric matrices, character\n\ 173 Create a character array from one or more numeric matrices, character\n\
175 matrices, or cell arrays. Arguments are concatenated vertically.\n\ 174 matrices, or cell arrays. Arguments are concatenated vertically.\n\
176 The returned values are padded with blanks as needed to make each row\n\ 175 The returned values are padded with blanks as needed to make each row\n\
177 of the string array have the same length. Unlike @code{char}, empty\n\ 176 of the string array have the same length. Unlike @code{char}, empty\n\
178 strings are removed and will not appear in the output.\n\ 177 strings are removed and will not appear in the output.\n\
195 \"d \"\n\ 194 \"d \"\n\
196 \"str1 \"\n\ 195 \"str1 \"\n\
197 \"half \"]\n\ 196 \"half \"]\n\
198 @end group\n\ 197 @end group\n\
199 @end example\n\ 198 @end example\n\
200 \n\
201 For compatibility with @sc{Matlab}, calling @code{strvcat} without arguments\n\
202 returns the empty string.\n\
203 @seealso{char, strcat, cstrcat}\n\ 199 @seealso{char, strcat, cstrcat}\n\
204 @end deftypefn") 200 @end deftypefn")
205 { 201 {
206 octave_value retval; 202 octave_value retval;
207 203
275 } 271 }
276 272
277 retval = octave_value (result, '\''); 273 retval = octave_value (result, '\'');
278 } 274 }
279 else 275 else
280 retval = octave_value (""); 276 print_usage ();
281 277
282 return retval; 278 return retval;
283 } 279 }
284 280
285 /* 281 /*