API Reference > Other Classes > OdString Class > OdString Methods > compare Method > OdString::compare Method (OdString&)
OdString::compare Method (OdString&)
Syntax
C++
inline int compare(const OdString& otherString) const;
Parameters 
Description 
const OdString& otherString 
[in] Other string. 

Case sensitive string comparison. 

 

compare() returns one of the following: 

 

Returns 
Condition 
< 0 
This String object < otherString. 
This String object == otherString. 
> 0 
This String object > otherString. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.