26 #if defined (HAVE_CONFIG_H)
65 if (r < 0 || r >=
rows () || c < 0 || c + s_len - 1 >
cols ())
66 (*current_liboctave_error_handler) (
"range error for insert");
89 if (
r == 0 && (nr == 0 || nc == 0))
93 (*current_liboctave_error_handler) (
"range error for row_as_string");
95 retval.resize (nc,
'\0');
98 retval[i] =
elem (
r, i);
109 retval.resize (nc+1);
119 if (r1 > r2) { std::swap (r1, r2); }
120 if (c1 > c2) { std::swap (c1, c2); }
129 result.
elem (i, j) =
elem (r1+i, c1+j);
OCTARRAY_OVERRIDABLE_FUNC_API const char * data(void) const
OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type numel(void) const
Number of elements in the array.
OCTARRAY_API Array< T, Alloc > & insert(const Array< T, Alloc > &a, const Array< octave_idx_type > &idx)
Insert an array into another at a specified position.
OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type rows(void) const
OCTARRAY_OVERRIDABLE_FUNC_API char & elem(octave_idx_type n)
OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type cols(void) const
OCTAVE_API charMatrix extract(octave_idx_type r1, octave_idx_type c1, octave_idx_type r2, octave_idx_type c2) const
OCTAVE_API bool operator==(const charMatrix &a) const
OCTAVE_API charMatrix & insert(const char *s, octave_idx_type r, octave_idx_type c)
OCTAVE_API std::string row_as_string(octave_idx_type, bool strip_ws=false) const
OCTAVE_API bool operator!=(const charMatrix &a) const
bool mx_inline_equal(std::size_t n, const T1 *x, const T2 *y)
#define MM_BOOL_OPS(M1, M2)
#define MM_CMP_OPS(M1, M2)
#define SM_BOOL_OPS(S, M)
#define MS_BOOL_OPS(M, S)
T::size_type strlen(const typename T::value_type *str)