comparison src/ov-base.cc @ 4457:d7d9ca19960a

[project @ 2003-07-11 03:05:38 by jwe]
author jwe
date Fri, 11 Jul 2003 03:05:39 +0000
parents f3c21a1d1c62
children e944fbe3fff2
comparison
equal deleted inserted replaced
4456:b0aff7648c2d 4457:d7d9ca19960a
164 164
165 return retval; 165 return retval;
166 } 166 }
167 167
168 octave_value 168 octave_value
169 octave_base_value::convert_to_str_internal (bool) const 169 octave_base_value::convert_to_str_internal (bool, bool) const
170 { 170 {
171 gripe_wrong_type_arg ("octave_base_value::convert_to_str_internal ()", 171 gripe_wrong_type_arg ("octave_base_value::convert_to_str_internal ()",
172 type_name ()); 172 type_name ());
173 return octave_value (); 173 return octave_value ();
174 } 174 }
321 321
322 return retval; 322 return retval;
323 } 323 }
324 324
325 string_vector 325 string_vector
326 octave_base_value::all_strings (bool pad) const 326 octave_base_value::all_strings (bool pad, bool force) const
327 { 327 {
328 string_vector retval; 328 string_vector retval;
329 329
330 octave_value tmp = convert_to_str (pad); 330 octave_value tmp = convert_to_str (pad, force);
331 331
332 if (! error_state) 332 if (! error_state)
333 retval = tmp.all_strings (); 333 retval = tmp.all_strings ();
334 334
335 return retval; 335 return retval;
336 } 336 }
337 337
338 std::string 338 std::string
339 octave_base_value::string_value (void) const 339 octave_base_value::string_value (bool force) const
340 { 340 {
341 std::string retval; 341 std::string retval;
342 342
343 octave_value tmp = convert_to_str (); 343 octave_value tmp = convert_to_str (force);
344 344
345 if (! error_state) 345 if (! error_state)
346 retval = tmp.string_value (); 346 retval = tmp.string_value ();
347 347
348 return retval; 348 return retval;