ExpressionUtilitiesUnescapeStringLiteral Method TIBCO Spotfire 7.12 API Reference
Unescape a string literal, removes the starting and ending "/'-characters handles escape sequences and replaces all ""/''-string with a single "/'-character.

Escape Sequences: \uHHHH - Any Unicode character expressed as four hexadecimal digits. \ooo - A character in the range 0-255 expressed as three octal digits 0-7. \b - \u0008: backspace (BS) \t - \u0009: horizontal tab (HT) \n - \u000a: line feed (LF) \f - \u000c: form feed (FF) \r - \u000d: carriage return (CR) \\ - \u005c: backslash \

Namespace: Spotfire.Dxp.Data.Expressions
Assembly: Spotfire.Dxp.Data (in Spotfire.Dxp.Data.dll) Version: 30.0.11525.4184 (30.0.11525.4184)
Syntax

C#
public static string UnescapeStringLiteral(
	string literal
)

Parameters

literal
Type: SystemString
The escaped string literal.

Return Value

Type: String
The unescaped string literal.
Exceptions

ExceptionCondition
ArgumentExceptionThrown if the literal does not start and end with either ' or " characters.
Examples

UnescapeStringLiteral("\"a\"\"b\"") gives the result "a\"b" UnescapeStringLiteral("'a''b'") gives the result "a'b" UnescapeStringLiteral("'a\"\"b'") gives the result "a\"\"b"
Version Information

Supported in: 7.9, 7.8, 7.7, 7.6, 7.5, 7.12, 7.11, 7.10, 7.0
See Also

Reference