Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Functions | Variables

Adaptive Function url_encode More...

Functions

const afw_value_tafw_function_execute_random_base64Binary (afw_function_execute_t *x)
 Adaptive Function random_base64Binary More...
 
const afw_value_tafw_function_execute_random_digits (afw_function_execute_t *x)
 Adaptive Function random_digits More...
 
const afw_value_tafw_function_execute_random_hexBinary (afw_function_execute_t *x)
 Adaptive Function random_hexBinary More...
 
const afw_value_tafw_function_execute_random_integer (afw_function_execute_t *x)
 Adaptive Function random_integer More...
 
const afw_value_tafw_function_execute_random_number (afw_function_execute_t *x)
 Adaptive Function random_number More...
 

Variables

 afw_function_definition_random_base64Binary
 Function definition random_base64Binary.
 
 afw_function_definition_random_digits
 Function definition random_digits.
 
 afw_function_definition_random_hexBinary
 Function definition random_hexBinary.
 
 afw_function_definition_random_integer
 Function definition random_integer.
 
 afw_function_definition_random_number
 Function definition random_number.
 

Detailed Description

Adaptive Function url_encode

Parameters
xfunction execute parameter.

URL encode a value or bag of values.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Supported <dataType>:

string, anyURI.

Declaration:

function url_encode <dataType>(
unencoded: dataType
): string;

Parameters:

unencoded - (<Type>) URL encode a single value. See the url_encode method for the data type of more details.

Returns:

(string) URI encoded string.

Implemented by AFW_FUNCTION_EXECUTE_STANDARD_POLYMORPHIC_FUNCTION_HANDLING()


random adaptive functions.

Function Documentation

◆ afw_function_execute_random_base64Binary()

const afw_value_t* afw_function_execute_random_base64Binary ( afw_function_execute_t x)

Adaptive Function random_base64Binary

Parameters
xfunction execute parameter.

This returns a specified number of random octets as dataType base64Binary.

This function is not pure, so it may return a different result given exactly the same parameters.

Declaration:

function random_base64Binary(
numberOfOctets: integer
): base64Binary;

Parameters:

numberOfOctets - (integer) The number of random octets to generate.

Returns:

(base64Binary)

Definition at line 47 of file afw_function_random.c.

◆ afw_function_execute_random_digits()

const afw_value_t* afw_function_execute_random_digits ( afw_function_execute_t x)

Adaptive Function random_digits

Parameters
xfunction execute parameter.

Generate a string containing a specified number of random decimal digits.

This function is not pure, so it may return a different result given exactly the same parameters.

Declaration:

function random_digits(
numberOfDigits: integer
): string;

Parameters:

numberOfDigits - (integer) The number (1-18) of digits to generate.

Returns:

(string)

Definition at line 103 of file afw_function_random.c.

◆ afw_function_execute_random_hexBinary()

const afw_value_t* afw_function_execute_random_hexBinary ( afw_function_execute_t x)

Adaptive Function random_hexBinary

Parameters
xfunction execute parameter.

This returns a specified number of random octets as dataType hexBinary.

This function is not pure, so it may return a different result given exactly the same parameters.

Declaration:

function random_hexBinary(
numberOfOctets: integer
): hexBinary;

Parameters:

numberOfOctets - (integer) The number of random octets to generate.

Returns:

(hexBinary)

Definition at line 168 of file afw_function_random.c.

◆ afw_function_execute_random_integer()

const afw_value_t* afw_function_execute_random_integer ( afw_function_execute_t x)

Adaptive Function random_integer

Parameters
xfunction execute parameter.

This returns a random integer between specified values inclusive.

This function is not pure, so it may return a different result given exactly the same parameters.

Declaration:

function random_integer(
min: integer,
max: integer
): integer;

Parameters:

min - (integer) Minimum integer inclusive.

max - (integer) Maximum integer inclusive.

Returns:

(integer) A random integer.

Definition at line 227 of file afw_function_random.c.

◆ afw_function_execute_random_number()

const afw_value_t* afw_function_execute_random_number ( afw_function_execute_t x)

Adaptive Function random_number

Parameters
xfunction execute parameter.

This returns a random double between specified values

This function is not pure, so it may return a different result given exactly the same parameters.

Declaration:

function random_number(
min?: double,
max?: double
): double;

Parameters:

min - (optional double) Minimum double inclusive. The default is 0.0.

max - (optional double) Maximum double exclusive. The default is 1.0.

Returns:

(double)

Definition at line 295 of file afw_function_random.c.