comparison src/ov-str-mat.cc @ 2493:8ed4362aa0d6

[project @ 1996-11-11 02:35:04 by jwe]
author jwe
date Mon, 11 Nov 1996 02:39:26 +0000
parents 1573640a9994
children 2480ef198c46
comparison
equal deleted inserted replaced
2492:06595bc7f2d0 2493:8ed4362aa0d6
187 gripe_invalid_conversion ("string", "real matrix"); 187 gripe_invalid_conversion ("string", "real matrix");
188 188
189 return retval; 189 return retval;
190 } 190 }
191 191
192 charMatrix 192 string_vector
193 octave_char_matrix_str::all_strings (void) const 193 octave_char_matrix_str::all_strings (void) const
194 { 194 {
195 return matrix; 195 int n = matrix.rows ();
196
197 string_vector retval (n);
198
199 for (int i = 0; i < n; i++)
200 retval[i] = matrix.row_as_string (i, true);
201
202 return retval;
196 } 203 }
197 204
198 string 205 string
199 octave_char_matrix_str::string_value (void) const 206 octave_char_matrix_str::string_value (void) const
200 { 207 {