Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ReplaceCore() [2/2]

string System.String.ReplaceCore ( string oldValue,
string newValue,
CompareInfo ci,
CompareOptions options )
inlineprivate

Definition at line 2348 of file String.cs.

2349 {
2350 if ((object)oldValue == null)
2351 {
2352 throw new ArgumentNullException("oldValue");
2353 }
2354 if (oldValue.Length == 0)
2355 {
2356 throw new ArgumentException(SR.Argument_StringZeroLength, "oldValue");
2357 }
2358 return ReplaceCore(this, oldValue.AsSpan(), newValue.AsSpan(), ci ?? CultureInfo.CurrentCulture.CompareInfo, options) ?? this;
2359 }
static CultureInfo CurrentCulture
string ReplaceCore(string oldValue, string newValue, CompareInfo ci, CompareOptions options)
Definition String.cs:2348

References System.SR.Argument_StringZeroLength, System.Globalization.CultureInfo.CurrentCulture, System.options, and System.String.ReplaceCore().

Referenced by System.String.Replace(), System.String.Replace(), and System.String.ReplaceCore().