Mercurial > octave-nkf
comparison src/ov-cell.cc @ 4722:8f892ca5851d
[project @ 2004-01-23 14:22:37 by jwe]
author | jwe |
---|---|
date | Fri, 23 Jan 2004 14:22:37 +0000 |
parents | a1b165f5e934 |
children | bec345670e56 |
comparison
equal
deleted
inserted
replaced
4721:e4bb40821934 | 4722:8f892ca5851d |
---|---|
278 | 278 |
279 int n_elts = 0; | 279 int n_elts = 0; |
280 | 280 |
281 int max_len = 0; | 281 int max_len = 0; |
282 | 282 |
283 if (pad) | 283 for (int j = 0; j < nc; j++) |
284 { | 284 { |
285 for (int j = 0; j < nc; j++) | 285 for (int i = 0; i < nr; i++) |
286 { | 286 { |
287 for (int i = 0; i < nr; i++) | 287 string_vector s = matrix(i,j).all_strings (); |
288 { | 288 |
289 string_vector s = matrix(i,j).all_strings (); | 289 if (error_state) |
290 | 290 return retval; |
291 if (error_state) | 291 |
292 return retval; | 292 n_elts += s.length (); |
293 | 293 |
294 n_elts += s.length (); | 294 int s_max_len = s.max_length (); |
295 | 295 |
296 int s_max_len = s.max_length (); | 296 if (s_max_len > max_len) |
297 | 297 max_len = s_max_len; |
298 if (s_max_len > max_len) | |
299 max_len = s_max_len; | |
300 } | |
301 } | 298 } |
302 } | 299 } |
303 | 300 |
304 retval.resize (n_elts); | 301 retval.resize (n_elts); |
305 | 302 |
323 | 320 |
324 retval[k++] = t; | 321 retval[k++] = t; |
325 } | 322 } |
326 } | 323 } |
327 } | 324 } |
328 | |
329 | |
330 | 325 |
331 return retval; | 326 return retval; |
332 } | 327 } |
333 | 328 |
334 bool | 329 bool |