diff liboctave/array/idx-vector.h @ 23592:80e3bfb7bd5a

maint: Deprecate is_vector and replace with isvector. * Array.h (is_vector): Use OCTAVE_DEPRECATED macro around function. * Array.h (isvector): New function. * dim-vector.h (is_vector): Use OCTAVE_DEPRECATED macro around function. * dim-vector.h (isvector): New function. * idx-vector.h (is_vector): Use OCTAVE_DEPRECATED macro around function. * idx-vector.h (isvector): New function. * cellfun.cc, data.cc, dot.cc, filter.cc, utils.cc, ov-class.cc, ov-java.cc, Array-util.cc, Array-util.h, Array.cc, Range.cc, Sparse.cc, idx-vector.cc, oct-string.cc: Replace instances of is_vector with isvector.
author Rik <rik@octave.org>
date Tue, 13 Jun 2017 20:51:14 -0700
parents b6498c088fca
children be7b884ac589
line wrap: on
line diff
--- a/liboctave/array/idx-vector.h	Tue Jun 13 18:36:18 2017 -0400
+++ b/liboctave/array/idx-vector.h	Tue Jun 13 20:51:14 2017 -0700
@@ -1021,7 +1021,11 @@
   // necessary to mutate the index.
   const octave_idx_type * raw (void);
 
-  bool is_vector (void) const;
+  bool isvector (void) const;
+
+  OCTAVE_DEPRECATED ("use 'isvector' instead")
+  bool is_vector (void) const
+  { return isvector (); }
 
   // FIXME: these are here for compatibility.  They should be removed
   // when no longer in use.