NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
string StrReplace ( string  str,
unsigned int  idx,
string  strnew 
)
inline

Replace a portion of a string.

Return a string with the part of the string replaced (starting at the specified index) with the contents of the new string value provided in the third argument. The input string parameters may be variables, constants, or expressions.

Parameters
strA string.
idxThe starting point for the replace operation.
strnewThe replacement string.
Returns
The modified string.
Examples:
ex_string.nxc, and ex_StrReplace.nxc.