Method
Parameters
oldStr
|
string
|
Old string
|
newStr
|
string
|
New string
|
oldChar
|
char
|
Old character
|
newChar
|
char
|
New character
|
Returns
FastString
The same instance of FastStringDescriptionReplace all instances of the given string with a new string. Example FastString fstr = new FastString(256);
void Update() { fstr.Set("{name} gains experience! {name} levels up!"); Debug.Log(fstr.Replace("{name}", "Pete")); } |
See AlsoFastString.Remove FastString.Substring |