Mercurial > hg > octave-lyh
comparison src/ov-str-mat.cc @ 5707:6286c96121c2
[project @ 2006-03-22 05:07:28 by jwe]
author | jwe |
---|---|
date | Wed, 22 Mar 2006 05:07:29 +0000 |
parents | b800ae36fc6a |
children | edf82d02be75 |
comparison
equal
deleted
inserted
replaced
5706:5b9b492f9e98 | 5707:6286c96121c2 |
---|---|
208 CHAR_MATRIX_CONV (ComplexNDArray, , "complex N-d array", | 208 CHAR_MATRIX_CONV (ComplexNDArray, , "complex N-d array", |
209 complex_array_value); | 209 complex_array_value); |
210 } | 210 } |
211 | 211 |
212 string_vector | 212 string_vector |
213 octave_char_matrix_str::all_strings (bool, bool) const | 213 octave_char_matrix_str::all_strings (void) const |
214 { | 214 { |
215 string_vector retval; | 215 string_vector retval; |
216 | 216 |
217 if (matrix.ndims () == 2) | 217 if (matrix.ndims () == 2) |
218 { | 218 { |
221 octave_idx_type n = chm.rows (); | 221 octave_idx_type n = chm.rows (); |
222 | 222 |
223 retval.resize (n); | 223 retval.resize (n); |
224 | 224 |
225 for (octave_idx_type i = 0; i < n; i++) | 225 for (octave_idx_type i = 0; i < n; i++) |
226 retval[i] = chm.row_as_string (i, true); | 226 retval[i] = chm.row_as_string (i); |
227 } | 227 } |
228 else | 228 else |
229 error ("invalid conversion of charNDArray to string_vector"); | 229 error ("invalid conversion of charNDArray to string_vector"); |
230 | 230 |
231 return retval; | 231 return retval; |