19 assert(1 <= i && i <= shape->
size());
21 assert(j <= shape->
size());
25 for (
size_t ii = i; ii <= j; ii++)
27 tmp(ii - i + 1) = (* this) (ii);
35 assert(1 <= i && i <= shape->
size());
37 assert(j <= shape->
size());
41 for (
size_t ii = i; ii <= j; ii++)
43 tmp(ii - i + 1) = (* this) (ii);
55 s=
new unsigned char[sz+1];
58 for (
size_t i = 1; i <=
size; i++)
79 size_t sz = strlen(t);
83 s=
new unsigned char[sz+1];
114 cerr <<
"Index out of bounds in adstring::operator()(const size_t)\n"
115 <<
"Index value was " << i <<
'\n'
116 <<
"The size of this adstring is " <<
shape->
size() <<
'\n';
130 cerr <<
"Index out of bounds in adstring::operator()const size_t) const\n"
131 <<
"Index value was " << i <<
'\n'
132 <<
"The size of this adstring is " <<
shape->
size() <<
'\n';
146 cerr <<
"Index out of bounds in adstring::operator[](const size_t) const\n"
147 <<
"Index value was " << i <<
'\n'
148 <<
"The size of this adstring is " <<
shape->
size() <<
'\n';
160 return !strcmp(*
this, other);
183 size_t vs = v.
size ();
187 for (
size_t i = 1; i <= vs; i++)
195 for (
size_t i = 1; i <= us; i++)
199 for (
size_t i = 1; i <= vs; i++)
216 cerr <<
"Index out of bounds in adstring::operator[](const size_t)\n"
217 <<
"Index value was " << i <<
'\n'
218 <<
"The size of this adstring is " <<
shape->
size() <<
'\n';
adstring & operator+=(const adstring &u)
Return true if adstring is equal to other, otherwise false.
bool operator==(const adstring &other) const
Return true if adstring is equal to other, otherwise false.
void realloc(const char *t)
unsigned char & operator()(const size_t i)
Returns reference to element at specified index i.
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
unsigned char & operator[](const size_t i)
Returns reference to element at specified index i.
adstring & operator=(const adstring &t)
size_t length(const adstring &t)
Returns the size of adstr.