StringExtensions.ReplaceA(this string strA, int? startIndex, int? count, string strB) Method
.NET Standard 2.x
Temporarily converts a string to DBCS based on the current locale, then replaces a portion of one string with another.
Namespace: PowerScript.Bridge
Assembly: PowerScript.Bridge.dll
Syntax
public static string ReplaceA(this string strA, int? startIndex, int? count, string strB);
Parameters
strA
System.String
The string in which you want to replace characters with strB.
startIndex
System.Int32
An int whose value is the position in bytes of the first character you want to replace in strA.
count
System.Int32
An int whose value is the number of bytes you want to replace in strA.
strB
System.String
The string that will replace characters in strA. The number of characters in strB can be greater than, equal to, or less than the number of characters you are replacing.
Returns
System.String
Returns the string with the characters replaced if it succeeds and the empty string if it fails. If any argument's value is null
, ReplaceA
returns null
.
Examples
Coming soon.
Applies to
.NET Standard
2.x