IAPI::ReplaceString

property ReplaceString.

Searches for a string and replaces it with a new string.

 

HRESULT ReplaceString(
  BSTR srcString,
  BSTR strPattern,
  BSTR replaceString,
  BSTR *pVal
);

Parameters

 

srcString

[in] .   BSTR where string occurrence(s) will be searched for and replaced.

 

srcPattern

 [in] .  BSTR string occurrence(s) for search and being replaced.

         The syntax is the same as for Regular Expression Search and Replace.

replaceString

 [in] .  BSTR new string occurrence for search and replace  operation

pVal

[out, retval] The returned value is a new BSTR string.

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured.

See Also

IAPI