diff libinterp/corefcn/strfns.cc @ 20990:fc9cca99b2de

Deprecate all_strings, replace with string_vector_value. * daspk.cc, dasrt.cc, dassl.cc, dirfns.cc, gl-render.cc, gl2ps-renderer.cc, graphics.cc, graphics.in.h, lsode.cc, str2double.cc, strfns.cc, syscalls.cc, sysdep.cc, utils.cc, ov-base.cc, ov-base.h, ov-cell.cc, ov-cell.h, ov-class.cc, ov-class.h, ov-str-mat.cc, ov-str-mat.h, ov.cc, ovl.cc: Replace [x]all_strings with [x]string_vector_value. * ov.h(all_strings): Add GCC_ATTR_DEPRECATED warning to function prototype. Change it to call string_vector_value. * ov.h(string_vector_value): New prototype to call rep's string_vector_value function.
author Rik <rik@octave.org>
date Sat, 26 Dec 2015 18:59:45 -0800
parents 48b2ad5ee801
children 93748bcaec17
line wrap: on
line diff
--- a/libinterp/corefcn/strfns.cc	Sat Dec 26 20:46:08 2015 +0100
+++ b/libinterp/corefcn/strfns.cc	Sat Dec 26 18:59:45 2015 -0800
@@ -95,7 +95,7 @@
 
       for (int i = 0; i < nargin; i++)
         {
-          string_vector s = args(i).xall_strings ("char: unable to convert some args to strings");
+          string_vector s = args(i).xstring_vector_value ("char: unable to convert some args to strings");
 
           if (s.numel () > 0)
             n_elts += s.numel ();
@@ -210,7 +210,7 @@
 
   for (int i = 0; i < nargin; i++)
     {
-      string_vector s = args(i).xall_strings ("strvcat: unable to convert some args to strings");
+      string_vector s = args(i).xstring_vector_value ("strvcat: unable to convert some args to strings");
 
       size_t n = s.numel ();
 
@@ -346,7 +346,7 @@
         }
 
       const Cell cell = cell_val.cell_value ();
-      const string_vector str = str_val.all_strings ();
+      const string_vector str = str_val.string_vector_value ();
       octave_idx_type r = str.numel ();
 
       if (r == 0 || r == 1)
@@ -847,7 +847,7 @@
   if (nargin < 1 || nargin > 3)
     print_usage ();
 
-  string_vector s = args(0).xall_strings ("list_in_columns: ARG must be a cellstr or char array");
+  string_vector s = args(0).xstring_vector_value ("list_in_columns: ARG must be a cellstr or char array");
 
   int width = -1;