| StringUtilitiesEscapeString Method (String, String) |
Escapes special characters in a string, prefixing them with a backslash.
Namespace: Sdl.LanguagePlatform.CoreAssembly: Sdl.LanguagePlatform.Core (in Sdl.LanguagePlatform.Core.dll) Version: 1.6.0.0 (1.7.3164.0)
Syntaxpublic static string EscapeString(
string s,
string charactersToEscape
)
Public Shared Function EscapeString (
s As String,
charactersToEscape As String
) As String
public:
static String^ EscapeString(
String^ s,
String^ charactersToEscape
)
static member EscapeString :
s : string *
charactersToEscape : string -> string
Parameters
- s
- Type: SystemString
The input string. - charactersToEscape
- Type: SystemString
The characters to escape
Return Value
Type:
StringThe string where all occurrences of any of the characters to escape are prefixed with a backslash.
See Also
Comments