API Reference > Other Classes > OdString Class > OdString Methods > replace Method > OdString::replace Method (OdChar, OdChar)
OdString::replace Method (OdChar, OdChar)
Syntax
C++
int replace(OdChar oldChar, OdChar newChar);
Parameters 
Description 
OdChar oldChar 
[in] Old character.  
OdChar newChar 
[in] New character. 

Returns the number of characters or strings replaced.

Replaces all occurrences of the specified character in this String object. 

 

Copyright © 2002–2020. Open Design Alliance. All rights reserved.