ExpressionUtilities Class

Spotfire 14.3 API Reference
Utilities for escaping and unescaping sting literals and names to be used in expressions.
Inheritance Hierarchy

SystemObject
  Spotfire.Dxp.Data.ExpressionsExpressionUtilities

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

C#
public static class ExpressionUtilities

The ExpressionUtilities type exposes the following members.

Methods

  NameDescription
Public methodStatic memberCode exampleEscapeIdentifier
Escapes an identifier (a column/hierarchy/view name) to be able to use special characters.

Replaces all ']' characters with ']]' and adds '[' to the beginning and ']' to the end of the string.

Public methodStatic memberCode exampleEscapeStringLiteral
Escape string literal to be able to use special characters, adds escape sequences and " characters to the string.

All "-characters are replace with "" and "-characters are added to the start and end of the string.

Public methodStatic memberCode exampleUnescapeIdentifier
Unescape an identifier (a column/hierarchy/view name).

Removes the '[' and ']' characters at the beginning and end of the string and replaces all occurrences of ']]' with a single ']' character.

Public methodStatic memberCode exampleUnescapeStringLiteral
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 \

Top
Version Information

Supported in: 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also

Reference