return strcmp ( contents, str.contents ) < 0;
}
bool operator <= ( const Strings str ) const {
return strcmp ( contents, str.contents ) <= 0;
}
bool operator > ( const Strings str ) const {
return strcmp ( contents, str.contents ) > 0;
}

_Глава 5. Объектная модель. Основные классы

, bool operator >= ( const Strings str ) const
return strcmp ( contents, str.contents ) >= 0;
bool operator == ( const char * str ) const return strcmp ( contents, str ) = = 0;
bool operator' != ( const char * str ) const return strcmp ( contents, str ) != 0;
bool operator < ( const char * str ) const return strcmp ( contents, str ) < 0;
bool operator <= ( const char * str ) const return strcmp ( contents, str ) <= 0;
bool operator > ( const char * str ) const return strcmp ( contents, str ) > 0;
bool operator >= ( const char * str ) const return strcmp ( contents, str ) >= 0;
chars operator [] ( int index ) const return contents [index];
intgetLength () const return length;
bool isEmpty () const {
return length < 1,-
}
Strings toUpper () {
strupr ( contents ); return *this;
}
Strings toLower () {
strlwr ( contents ); return *this;
}
int tolnt () const;
float toFloat () const; double toDouble () const;
String substr ( int from, int count = toTheEnd )
const;
Strings setLength ( int );
Strings cut ( int from, int count = toTheEnd );
Strings trim () ;
Strings removeLeadingSpaces (); Strings removeTrailingSpaces ();
Array * split ( const Strings sep ) const;
intfind ( const Strings pattern, int start = 0,
int options = 0 ) const; intfind ( char ch, int start = 0, int options = 0 )
const;
Strings replace ( int start, int len, const Strings str );
Strings insert ( int pos, char ch );
Strings insert ( int pos, const Strings str ) ;
static String getExtension ( const Strings fileName ); static void setExtension ( Strings fileName,

⇐ Предыдущая| |Следующая ⇒