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