API Reference > Other Classes > OdAnsiString Class > OdAnsiString Methods > replace Method > OdAnsiString::replace Method (char, char)
OdAnsiString::replace Method (char, char)
Syntax
C++
int replace(char oldChar, char newChar);
Parameters 
Description 
char oldChar 
[in] Old character.  
char 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.