41 #ifndef __ADSTRING_HPP__
42 #define __ADSTRING_HPP__
73 #if (defined __ZTC__) || (defined __NDPX__)
88 adstring(
const size_t lb,
const size_t ub);
100 const unsigned char&
operator()(
const size_t i)
const;
101 unsigned char&
operator[](
const size_t i)
const;
109 {
return !strcmp(*
this, u); }
112 {
return(!(*
this==u)); }
114 {
return strcmp(*
this, u) != 0; }
128 operator unsigned char * ();
130 operator const unsigned char*()
const;
131 operator const char*()
const;
139 friend adstring str(
double x,
int minwidth,
int decplaces);
162 adstring str(
double x,
int minwidth=17,
int decplaces=-1);
188 #if defined(__BORLANDC__)
189 # if (__BORLANDC__ <= 0x0520)
219 friend std::ostream&
operator<<(
const std::ostream& ifs,
235 #endif //#ifndef __STRING_HPP__
friend void val(const adstring &s, int &v, int &code)
adstring_shape(const size_t size)
bool operator==(const char *u) const
adstring_array & operator=(const adstring_array &)
Assigment operator for adstring_array.
void allocate(const size_t sz)
Description not yet available.
size_t pos(const adstring &substr) const
adstring_array & operator+=(const adstring &s)
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)
void val(const adstring &s, int &v, int &code)
friend std::istream & operator>>(std::istream &c, line_adstring &t)
unsigned char & operator()(const size_t i)
Returns reference to element at specified index i.
~adstring_array()
Destructor.
adstring itoa(int n, int d)
int atoi(adstring &s)
Returns a integer converted from input s.
line_adstring & operator=(const adstring &s)
friend std::ostream & operator<<(std::ostream &c, const adstring &t)
const adstring & operator[](int i) const
Returns a reference to the element at specified index i.
const adstring & operator()(int i) const
Returns a reference to the element at specified index i.
bool operator!=(const adstring &u) const
adstring_array & append_distinct(const adstring &s)
adstring str(double x, int minwidth=17, int decplaces=-1)
Convert x to adstring with minimum width and total number of decimal places.
adstring()
Default constructor.
friend adstring str(double x, int minwidth, int decplaces)
Convert x to adstring with minimum width and total number of decimal places.
adstring to_upper(adstring &s)
adstring_array(void)
Default constructor.
unsigned char & operator[](const size_t i)
Returns reference to element at specified index i.
friend adstring operator+(const adstring &u, const adstring &v)
ostream & operator<<(const ostream &_s, preshowpoint p)
Description not yet available.
adstring to_lower(adstring &s)
friend std::istream & operator>>(std::istream &c, adstring &t)
size_t pos(const adstring &substr, const adstring &s)
adstring & operator=(const adstring &t)
friend std::ostream & operator<<(const std::ostream &ifs, const adstring_array &sa)
friend std::ifstream & operator>>(std::ifstream &ifs, adstring_array &sa)
size_t length(const adstring &t)
Returns the size of adstr.
adstring & operator+=(const char u)
line_adstring(const adstring &s)
bool operator!=(const char *u) const