274 Citrix NetScaler Policy Configuration and Reference Guide
Operators for Extracting and Evaluating Text

The following operators have been introduced for extracting and evaluating text.

number.TYPECAST_TIME_AT
and operators of the format
"number.TYPECAST_TIME_AT.<operator>."
For example,
number.TYPECAST_TIME_AT.DAY,
number.TYPECAST_TIME_AT.BETWEEN(t
ime1, time2), and
number.TYPECAST_TIME_AT.EQ(t).
Transform, extract, and evaluate time
values.
Operators of the format "double.<operator>."
For example, double.ADD (i),
double.BETWEEN(i, j), and double.DIV(i).
Extract and evaluate double-precision
floating-point numeric data.

New Operators for Extracting and Evaluating Numeric Data

Operators Operation

New Operators for Evaluating Text

Operators Operation
EXTEND(m,n) Extend the scope of the search by a
specified number of bytes on both sides of
a pattern match.
text.GET_SIGNED16(n, endianness),
text.GET_SIGNED32(n, endianness),
text.GET_SIGNED8(n),
text.GET_UNSIGNED16(n, endianness),
and text.GET_UNSIGNED8(n)
Extract a series of bytes that represent a
sequence of 8, 16, or 32 bit integers (signed
or unsigned), and the extract the nth integer
from the sequence.
text.SUBSTR_ANY(patset_name) Select a sub-string that matches a string in
the given pattern set.
text.SET_TEXT_MODE(PLUS_AS_SPAC
E | NO_PLUS_AS_SPACE),
text.SET_TEXT_MODE(BACKSLASH_E
NCODED |
NO_BACKSLASH_ENCODED), and
text.SET_TEXT_MODE(BAD_ENCODE_
RAISE_UNDEF |
NO_BAD_ENCODE_RAISE_UNDEF)
Set the mode of a text object.
.B64DECODE and .B64ENCODE Encode and decode text by using the
Base64 encoding algorithm.
.HASH Convert text to a hash value.