comparison libinterp/octave-value/ov.h @ 20611:40ed9b46a800

new octave_value::string_value method with optional error message * ov.h (octave_value::string_vector): New method. ov-base.cc, ov-base.h (octave_base_value::string_vector): New default method. ov-str-mat.cc, ov-str-mat.h (octave_char_matrix_str::string_value): New method.
author John W. Eaton <jwe@octave.org>
date Thu, 08 Oct 2015 16:43:22 -0400
parents 5dfaaaae784f
children e5986cba4ca8
comparison
equal deleted inserted replaced
20610:a61f0d6beb71 20611:40ed9b46a800
895 { return rep->all_strings (pad); } 895 { return rep->all_strings (pad); }
896 896
897 std::string string_value (bool force = false) const 897 std::string string_value (bool force = false) const
898 { return rep->string_value (force); } 898 { return rep->string_value (force); }
899 899
900 std::string string_value (const char *fmt, ...) const
901 {
902 va_list args;
903 va_start (args,fmt);
904 return rep->string_value (fmt, args);
905 va_end (args);
906 }
907
900 Array<std::string> cellstr_value (void) const 908 Array<std::string> cellstr_value (void) const
901 { return rep->cellstr_value (); } 909 { return rep->cellstr_value (); }
902 910
903 Range range_value (void) const 911 Range range_value (void) const
904 { return rep->range_value (); } 912 { return rep->range_value (); }