This table lists the built-in language functions for day to day data processing tasks.
The functions expect sane arguments and will result in runtime error or bogus result if supplied with invalid data.
System functions
|
Name |
Description |
Usage Example |
|---|---|---|
|
|
Aborts script execution by triggering runtime error, with message |
|
|
|
Length of scalar input in bytes. This might be different from |
|
|
|
Creates a list of numbers representing bytes (numbers in range 0-255) in the input |
|
|
|
Count array/list elements of |
|
|
|
Returns a list of |
|
|
|
Defines a new named function. Read more in section Defining your own |
Read more in section Defining your own |
|
|
Calculates SHA256 message digest (known also as hash) of the scalar value provided in |
|
|
|
Defines a new in-place function, not named. Read more in section Defining your own |
Read more in section Defining your own |
|
|
Returns the length (number of characters) of If |
|
|
|
Controls variables' lexical scope. Read more in section Defining your own |
Read more in section Defining your own |
|
|
Creates a byte string from the provided list of bytes |
|
|
|
Applies Quicksort algorithm and user defined comparison function |
|
|
|
Scalar to list - takes a scalar value of the variable and separates it into single characters, returning a list of them. |
|
|
|
Un-defines a function named |
|
|
|
Removes array/list element by provided access definition in |
|
|
|
Controls variables' lexical scope. Read more in section Defining your own |
Read more in section Defining your own |
Data processing functions
|
Name |
Description |
Usage Example |
|
|
Executes GZIP compression algorithm on the provided scalar data in |
|
|
|
Calculates the Cyclic Redundancy Code for provided input string/bytes. Follows the CRC-32/ISO-HDLC standard, same as used in PKZIP, Gzip, WIFI and other common standards. More on the CRC: https://en.wikipedia.org/wiki/Cyclic_redundancy_check Reference example: https://crccalc.com/?crc=TEST&method=CRC-32/ISO-HDLC&datatype=ascii&outtype=hex |
|
|
|
Executes Base64 decoding algorithm on the provided scalar string in |
|
|
|
Executes GZIP decompression algorigthm on the provided scalar data in |
|
|
|
Executes Base64 encoding algorithm on the provided scalar data in |
|
|
|
Converts provided hex string in |
|
|
|
Converts provided byte block in |
|
|
|
Compresses and packs provided inputs in PKZIP compatible compression and file format.
|
OR
|
Text processing functions
|
Name |
Description |
Usage Example |
|---|---|---|
|
|
Puts |
|
|
|
Runs a full regular expression matching on Returns a complex table with matches and subgroups, offsets, indexes and values. Optionally parameter Control params
For further information, read here: More details on Regular Expressions processing |
Greedy
Not greedy
|
|
|
Parses XML text in Parameter |
|
|
|
Converts a tree structure, as created by Parameter |
|
|
|
Runs XPath matching on XML string |
|
|
|
Runs a XSLT Transformation defined in |
|
|
|
Finds position of first occurence of |
|
|
|
Parses JSON text in Parameter |
Similar to |
|
|
Converts a tree structure, as created by Parameter |
|
|
|
Gets |
|
|
|
Converts |
|
|
|
Replaces all occurrences of |
|
|
|
Finds position of first occurence of |
|
|
|
Gets |
|
|
|
Replaces all occurrences of |
|
|
|
Gets |
|
|
|
Returns a character based on provided 32 bit Unicode character number |
|
|
|
Converts |
|
Mathematical functions
|
Name |
Description |
Usage Example |
|---|---|---|
|
|
Absolute value of the number |
|
|
|
Returns closest integer not smaller than |
|
|
|
Returns closest integer
|
|
|
|
Calculates the logarithm in base |
|
|
|
Calculates the |
|
|
|
Draws a decimal number between never less than |
|
|
|
Rounds the number |
|
|
|
Returns number sign (1 or -1) of |
|
|
|
Calculates the square root of |
|
|
|
Truncates the decimal value of |
|