comparison libinterp/corefcn/oct-stream.cc @ 33446:5fded8395daa

rename yTYPE_value functions strict_TYPE_value * ov.h, ov.cc (octave_value::strict_int_value): Rename from yint_value. Change all uses. (octave_value::strict_idx_type_value): Rename from yidx_type_value. Change all uses. (octave_value::strict_bool_value): Rename from ybool_value. Change all uses.
author John W. Eaton <jwe@octave.org>
date Wed, 17 Apr 2024 13:58:27 -0400
parents 79cfa1b7a813
children
comparison
equal deleted inserted replaced
33444:f57b492b5527 33446:5fded8395daa
3680 3680
3681 // FIXME: Ensure none is a prefix of a later one. Sort by length? 3681 // FIXME: Ensure none is a prefix of a later one. Sort by length?
3682 } 3682 }
3683 else if (param == "collectoutput") 3683 else if (param == "collectoutput")
3684 { 3684 {
3685 m_collect_output = args(i+1).ybool_value ("%s: CollectOutput must be logical or numeric", 3685 m_collect_output = args(i+1).strict_bool_value ("%s: CollectOutput must be logical or numeric",
3686 m_who.c_str ()); 3686 m_who.c_str ());
3687 } 3687 }
3688 else if (param == "emptyvalue") 3688 else if (param == "emptyvalue")
3689 { 3689 {
3690 m_empty_value = args(i+1).xscalar_value ("%s: EmptyValue must be numeric", m_who.c_str ()); 3690 m_empty_value = args(i+1).xscalar_value ("%s: EmptyValue must be numeric", m_who.c_str ());
3698 m_buffer_size = args(i+1).xscalar_value ("%s: BufSize must be numeric", m_who.c_str ()); 3698 m_buffer_size = args(i+1).xscalar_value ("%s: BufSize must be numeric", m_who.c_str ());
3699 } 3699 }
3700 else if (param == "multipledelimsasone") 3700 else if (param == "multipledelimsasone")
3701 { 3701 {
3702 m_multiple_delims_as_one = args(i 3702 m_multiple_delims_as_one = args(i
3703 +1).ybool_value ("%s: MultipleDelimsAsOne must be logical or numeric", m_who.c_str ()); 3703 +1).strict_bool_value ("%s: MultipleDelimsAsOne must be logical or numeric", m_who.c_str ());
3704 } 3704 }
3705 else if (param == "returnonerror") 3705 else if (param == "returnonerror")
3706 { 3706 {
3707 m_return_on_error = args(i+1).ybool_value ("%s: ReturnOnError must be logical or numeric", 3707 m_return_on_error = args(i+1).strict_bool_value ("%s: ReturnOnError must be logical or numeric",
3708 m_who.c_str ()); 3708 m_who.c_str ());
3709 } 3709 }
3710 else if (param == "whitespace") 3710 else if (param == "whitespace")
3711 { 3711 {
3712 m_whitespace = args(i+1).xstring_value ("%s: Whitespace must be a character string", 3712 m_whitespace = args(i+1).xstring_value ("%s: Whitespace must be a character string",