-
Notifications
You must be signed in to change notification settings - Fork 0
M_Ekstrand_Text_StringOperations_Replace_1
Returns a new string in which all occurrences of all Unicode characters in an array are replaced with the specified Unicode characters in an array at the same element index.
Namespace: Ekstrand.Text
Assembly: StringOperations (in StringOperations.dll) Version: 1.0.0.3 (1.0.0.3)
C#
public static string Replace(
this string str,
char[] oldChars,
char[] newChars
)
VB
<ExtensionAttribute>
Public Shared Function Replace (
str As String,
oldChars As Char(),
newChars As Char()
) As String
C++
public:
[ExtensionAttribute]
static String^ Replace(
String^ str,
array<wchar_t>^ oldChars,
array<wchar_t>^ newChars
)
F#
[<ExtensionAttribute>]
static member Replace :
str : string *
oldChars : char[] *
newChars : char[] -> string
- str
- Type: System.String
String to have its characters replaced. - oldChars
- Type: System.Char[]
Character array of characters to be replaced - newChars
- Type: System.Char[]
Character array to replace all occurrences of defined characters in the character array index by index.
Type: String
Returns a new string with all characters occurrences replaced by index in replacement character array.
In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
StringOperations Class
Replace Overload
Ekstrand.Text Namespace
Copyright © 2019 Fred Ekstrand Jr
Send comments on this topic to fredekstrandGithub@gmail.com
Created using: Sandcastle Help File Builder
-
Ekstrand.Text Namespace
-
StringOperations Class
-
StringOperations Methods
- StringOperations.EscapeIllegalChars Method
- StringOperations.FirstCharToLowercase Method
- StringOperations.FirstCharToUppercase Method
- StringOperations.PadCenter Method
- StringOperations.PadCenterCrop Method
- StringOperations.PadLeftCrop Method
- StringOperations.PadRightCrop Method
- StringOperations.Remove Method
- StringOperations.Replace Method
- StringOperations.ToTitleCase Method
-
StringOperations Methods
- StringUtil Class
-
StringOperations Class