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