comparison liboctave/util/str-vec.cc @ 29937:da7210e30f3e

move some utility functions inside octave namespace * lo-utils.h, lo-utils.cc (is_one_or_zero): Rename from xis_one_or_zero and move inside octave namespace. Change all uses. (is_zero): Rename from xis_zero and move inside octave namespace. Change all uses. (is_int_or_inf_or_nan): Rename from xis_int_or_inf_or_nan and move inside octave namespace. Change all uses. (too_large_for_float): Rename from xtoo_large_for_float and move inside octave namespace. Change all uses. (too_large_for_float): Rename from xtoo_large_for_float and move inside octave namespace. Change all uses. (is_int_or_inf_or_nan): Rename from xis_int_or_inf_or_nan and move inside octave namespace. Change all uses. (fgets): Rename from octave_fgets and move inside octave namespace. Change all uses. (fgetl): Rename from octave_fgetl and move inside octave namespace. Change all uses. (any_all_test, strsave): Move inside octave namespace. Tag uses with octave:: prefix as needed. * lo-utils.h: Provide deprecated templates and inline functions to preserve old names in global namespace.
author John W. Eaton <jwe@octave.org>
date Tue, 03 Aug 2021 12:34:52 -0400
parents 0a5b15007766
children 796f54d4ddbf
comparison
equal deleted inserted replaced
29936:79c6a29dd384 29937:da7210e30f3e
161 char **retval = new char * [len + 1]; 161 char **retval = new char * [len + 1];
162 162
163 retval[len] = nullptr; 163 retval[len] = nullptr;
164 164
165 for (octave_idx_type i = 0; i < len; i++) 165 for (octave_idx_type i = 0; i < len; i++)
166 retval[i] = strsave (elem (i).c_str ()); 166 retval[i] = octave::strsave (elem (i).c_str ());
167 167
168 return retval; 168 return retval;
169 } 169 }
170 170
171 std::list<std::string> 171 std::list<std::string>