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.