Example #1
0
//less than or equal to
bool operator<=(const string& str1,const string& str2){
	return (str1.comparestr(str2.data,0,str1.datalen,0,str2.datalen)<=0);}
Example #2
0
bool operator<=(const char* str1,const string& str2){
	return (str2.comparestr(str1,0,str2.datalen,0,str2.strlen(str1))<=0);}
Example #3
0
bool operator>=(const string& str1,const char* str2){
	return (str1.comparestr(str2,0,str1.datalen,0,str1.strlen(str2))>=0);}