native
replace
Syntax
native replace(text[], len, const what[], const with[]);
Description
Given a string, replaces the first occurrence of a search string with a
replacement string.
Parameters
| text | String to perform search and replacements on. |
|---|---|
| len | Maximum length of the string buffer. |
| what | String to search for. |
| with | String to replace the search string with. |
Return
The new string length after replacement, or 0 if no replacements were made.