Share via


TextUtils.Replace(String, String[], String[]) Method

Definition

Return a new CharSequence in which each of the source strings is replaced by the corresponding element of the destinations.

public static string? Replace (string? template, string[]? sources, string[]? destinations);
static member Replace : string * string[] * string[] -> string

Parameters

template
String
sources
String[]
destinations
String[]

Returns

Remarks

Return a new CharSequence in which each of the source strings is replaced by the corresponding element of the destinations.

Java documentation for android.text.TextUtils.replace(java.lang.CharSequence, java.lang.String[], java.lang.CharSequence[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to