API Reference > Other Classes > OdString Class > OdString Methods > compare Method > OdString::compare Method (OdChar*)
OdString::compare Method (OdChar*)
Syntax
C++
int compare(const OdChar* otherString) const;
Parameters 
Description 
const OdChar* 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.