Click or drag to resize

CSTRReplaceChar2 Method

Replaces characters in a string, supports simple removal.

Namespace:  GeoEngine.Core.GXNet
Assembly:  geoengine.core.gxnet (in geoengine.core.gxnet.dll) Version: 2024.2.0.25
Syntax
public static void ReplaceChar2(
	ref string istr,
	string old,
	string new_char
)

public static void ReplaceChar2(
	ref string istr,
	string old,
	string new_char
)

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 replacement character is "" (NULL character) then the character to replace is removed from the input string, and the string is shortened.
See Also