Mercurial > octave
diff libinterp/octave-value/ov-struct.h @ 24668:d4dd741b2794
new octave_value functions for formatting output
* ov.h, ov.cc, ov-base.h, ov-base.cc, and numeric/matrix-like objects:
(get_edit_display_format): New function.
(edit_display): Pass float_display_format as argument.
* pr-output.h, pr-output.cc: New variants of the octave_print_internal
functions that accept display formats. Expose functions for getting
display formats.
* variable-editor-model.cc: Maintain display format for model.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 01 Feb 2018 06:36:50 -0500 |
parents | a4ea36915e38 |
children | 6652d3823428 |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-struct.h Wed Jan 31 22:21:51 2018 -0600 +++ b/libinterp/octave-value/ov-struct.h Thu Feb 01 06:36:50 2018 -0500 @@ -131,7 +131,8 @@ bool print_name_tag (std::ostream& os, const std::string& name) const; - std::string edit_display (octave_idx_type i, octave_idx_type j) const; + std::string edit_display (const float_display_format& fmt, + octave_idx_type i, octave_idx_type j) const; bool save_ascii (std::ostream& os); @@ -254,7 +255,8 @@ bool print_name_tag (std::ostream& os, const std::string& name) const; - std::string edit_display (octave_idx_type i, octave_idx_type j) const; + std::string edit_display (const float_display_format& fmt, + octave_idx_type i, octave_idx_type j) const; bool save_ascii (std::ostream& os);