Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

Replace

func Replace(oldValue: string, newValue: string) -> string

Declaring type: String
Module: System
Assembly: System.Runtime.dll
Source file: String.rvn

Replaces exact, non-overlapping matches without modifying this string. Empty replacement deletes matches; empty search faults with RuntimeError. Arguments must be non-null. Matching uses UTF-8 without culture or normalization.

Parameters

Name Type Description
oldValue String
newValue String

Return value

String