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);
char & elem(octave_idx_type n)
octave_idx_type rows() const
Array< T, Alloc > & insert(const Array< T, Alloc > &a, const Array< octave_idx_type > &idx)
Insert an array into another at a specified position.
const char * data() const
octave_idx_type cols() const
octave_idx_type numel() const
Number of elements in the array.
charMatrix extract(octave_idx_type r1, octave_idx_type c1, octave_idx_type r2, octave_idx_type c2) const
bool operator==(const charMatrix &a) const
charMatrix & insert(const char *s, octave_idx_type r, octave_idx_type c)
std::string row_as_string(octave_idx_type, bool strip_ws=false) const
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)