 | CSTREscape Method (String, Int32, Int32) |
Convert/replace escape sequences in strings.
Namespace:
GeoEngine.Core.GXNet
Assembly:
geoengine.core.gxnet (in geoengine.core.gxnet.dll) Version: 2024.2.0.25
Syntaxpublic static void Escape(
ref string str_val,
int length,
int opt
)
public static void Escape(
ref string str_val,
int length,
int opt
)
Public Shared Sub Escape (
ByRef str_val As String,
length As Integer,
opt As Integer
)
Public Shared Sub Escape (
ByRef str_val As String,
length As Integer,
opt As Integer
)
public:
static void Escape(
String^% str_val,
int length,
int opt
)
public:
static void Escape(
String^% str_val,
int length,
int opt
)
static member Escape :
str_val : string byref *
length : int *
opt : int -> unit
static member Escape :
str_val : string byref *
length : int *
opt : int -> unit
Parameters
- str_val
- Type: SystemString
String to modify - length
- Type: SystemInt32
String size - opt
- Type: SystemInt32
<define>STR_ESCAPE</define>
Remarks
Escape characters:
\a bell
\b backspace
\f formfeed
\n new line
\r carriage return
\t tab
\v vertical tab
\" quote character
\x take 'x' literally
\ backslash
\ooo octal up to 3 characters
\xhh hex up to 2 characters
A common use of this function is to convert double-quote characters in
a user unput string to \" so the string can be placed in a tokenized
string.
See Also