API Reference > Other Classes > OdString Class > OdString Methods > replace Method > OdString::replace Method (OdChar*, OdChar*)
OdString::replace Method (OdChar*, OdChar*)
Syntax
C++
int replace(const OdChar* oldString, const OdChar* newString);
Parameters 
Description 
const OdChar* oldString 
[in] Old string.  
const OdChar* newString 
[in] New string. 

Returns the number of characters or strings replaced.

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

 

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