StringUtilsReplaceChars Method |
Replace each instance of an old character with its corresponding new character
(at the same index in newChars as the original character in oldChars).
If no corresponding new character is found, remove the old character.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static string ReplaceChars(
string s,
string oldChars,
string newChars
)
Public Shared Function ReplaceChars (
s As String,
oldChars As String,
newChars As String
) As String
Parameters
- s
- Type: SystemString
The string upon which to perform the replacement. - oldChars
- Type: SystemString
The string of old characters to replace. - newChars
- Type: SystemString
The corresponding string of replacement characters. If null/empty, all matching characters are removed.
Return Value
Type:
StringThe string with replacements made.
See Also