replace

Синтаксис

native replace(text[], len, const what[], const with[]);

Употреба

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.

Описание

Given a string, replaces the first occurrence of a search string with a
replacement string.

Връщаща стойност

The new string length after replacement, or 0 if no replacements were made.