 | CSTRReplaceChar Method |
Replaces characters in a string.
Namespace:
GeoEngine.Core.GXNet
Assembly:
geoengine.core.gxnet (in geoengine.core.gxnet.dll) Version: 2024.2.0.25
Syntaxpublic static void ReplaceChar(
ref string istr,
string old,
string new_char
)
public static void ReplaceChar(
ref string istr,
string old,
string new_char
)
Public Shared Sub ReplaceChar (
ByRef istr As String,
old As String,
new_char As String
)
Public Shared Sub ReplaceChar (
ByRef istr As String,
old As String,
new_char As String
)
public:
static void ReplaceChar(
String^% istr,
String^ old,
String^ new_char
)
public:
static void ReplaceChar(
String^% istr,
String^ old,
String^ new_char
)
static member ReplaceChar :
istr : string byref *
old : string *
new_char : string -> unit
static member ReplaceChar :
istr : string byref *
old : string *
new_char : string -> unit
Parameters
- istr
- Type: SystemString
String to modify - old
- Type: SystemString
Character to replace (first character only) - new_char
- Type: SystemString
Replacement character (first character only)
Remarks
If the input replacement character is "", then the
string will be truncated at the first character to replace.
See Also