Mercurial > octave-nkf
comparison libinterp/octave-value/ov-str-mat.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 | 09ed6f7538dd |
children |
comparison
equal
deleted
inserted
replaced
20610:a61f0d6beb71 | 20611:40ed9b46a800 |
---|---|
127 | 127 |
128 string_vector all_strings (bool pad = false) const; | 128 string_vector all_strings (bool pad = false) const; |
129 | 129 |
130 std::string string_value (bool force = false) const; | 130 std::string string_value (bool force = false) const; |
131 | 131 |
132 std::string string_value (const char *fmt, va_list args) const; | |
133 | |
132 Array<std::string> cellstr_value (void) const; | 134 Array<std::string> cellstr_value (void) const; |
133 | 135 |
134 octave_value sort (octave_idx_type dim = 0, sortmode mode = ASCENDING) const | 136 octave_value sort (octave_idx_type dim = 0, sortmode mode = ASCENDING) const |
135 { return octave_value (matrix.sort (dim, mode)); } | 137 { return octave_value (matrix.sort (dim, mode)); } |
136 | 138 |