source file of Flower lib
- (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+ (c) 1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
#ifndef STRINGDATA_INL
OKW();
if (j > maxlen)
{
- delete data_byte_p_;
- maxlen = j;
- data_byte_p_ = new Byte[maxlen + 1];
+ delete data_byte_p_;
+ maxlen = j;
+ data_byte_p_ = new Byte[maxlen + 1];
- data_byte_p_[0] = 0;
- length_i_ = 0;
+ data_byte_p_[0] = 0;
+ length_i_ = 0;
}
}
OKW();
if (j > maxlen)
{
- Byte *p = new Byte[j + 1];
- memcpy (p, data_byte_p_, ( maxlen <? length_i_) + 1 );
- maxlen = j;
- delete[] data_byte_p_;
- data_byte_p_ = p;
+ Byte *p = new Byte[j + 1];
+ memcpy (p, data_byte_p_, (maxlen <? length_i_) + 1 );
+ maxlen = j;
+ delete[] data_byte_p_;
+ data_byte_p_ = p;
}
}
INLINE
void
-String_data::operator += ( char const* ch_C)
+String_data::operator += (char const* ch_C)
{
append ((Byte const*)ch_C, strlen (ch_C) );
}
}
INLINE bool
-String_data::is_binary_bo()const
+String_data::is_binary_bo() const
{
-// return !memchr (data_byte_p_, length_i_, 0);
- return ( (int)strlen ((char const*)data_byte_p_) != length_i_ );
+ // return !memchr (data_byte_p_, length_i_, 0);
+ return ((int)strlen ((char const*)data_byte_p_) != length_i_ );
}
INLINE Byte&