comparison libinterp/corefcn/pr-output.cc @ 28636:a3db48e66ef8

use Range::increment instead of Range::inc This change is a step toward replacing the current Range class with the new range template class. * Range.h (Range::increment): New function. Change all uses of Range::inc to use Range::increment instead.
author John W. Eaton <jwe@octave.org>
date Thu, 06 Aug 2020 15:09:30 -0400
parents 79b583e31590
children fb37f50d5ba8
comparison
equal deleted inserted replaced
28635:b6371946f106 28636:a3db48e66ef8
2490 void 2490 void
2491 octave_print_internal (std::ostream& os, const Range& r, 2491 octave_print_internal (std::ostream& os, const Range& r,
2492 bool pr_as_read_syntax, int extra_indent) 2492 bool pr_as_read_syntax, int extra_indent)
2493 { 2493 {
2494 double base = r.base (); 2494 double base = r.base ();
2495 double increment = r.inc (); 2495 double increment = r.increment ();
2496 double limit = r.limit (); 2496 double limit = r.limit ();
2497 octave_idx_type num_elem = r.numel (); 2497 octave_idx_type num_elem = r.numel ();
2498 2498
2499 if (plus_format && ! pr_as_read_syntax) 2499 if (plus_format && ! pr_as_read_syntax)
2500 pr_plus_format_matrix (os, r); 2500 pr_plus_format_matrix (os, r);