Functions

Quark defines the following functions:

bool::__and__()

Documentation Coming Soon

bool::__eq__()

Documentation Coming Soon

bool::getClass()

Documentation Coming Soon

bool::getField()

Documentation Coming Soon

bool::__ne__()

Documentation Coming Soon

bool::__not__()

Documentation Coming Soon

bool::__or__()

Documentation Coming Soon

bool::setClass()

Documentation Coming Soon

bool::toJSON()

Documentation Coming Soon

bool::_to_JSONObject()

Documentation Coming Soon

bool::toString()

Documentation Coming Soon

byte::__add__()

Documentation Coming Soon

byte::__div__()

Documentation Coming Soon

byte::__eq__()

Documentation Coming Soon

byte::getClass()

Documentation Coming Soon

byte::getField()

Documentation Coming Soon

byte::__gt__()

Documentation Coming Soon

byte::__lt__()

Documentation Coming Soon

byte::__mod__()

Documentation Coming Soon

byte::__mul__()

Documentation Coming Soon

byte::__ne__()

Documentation Coming Soon

byte::__neg__()

Documentation Coming Soon

byte::setField()

Documentation Coming Soon

byte::__sub__()

Documentation Coming Soon

byte::toFloat()

Documentation Coming Soon

byte::toJSON()

Documentation Coming Soon

byte::_to_JSONObject()

Documentation Coming Soon

byte::toString()

Documentation Coming Soon

defaultCodec()

Documentation Coming Soon

float::__add__()

Used to add two floating point values together.

Syntax

float A.__add__(B)

where A and B are floating point values

This function is used under the covers by the + operator; A + B is equivalent to A.__add__(B).

float::__div__()

Used to divide one floating point value into another.

Syntax

float A.__div__(B)

where A is the floating point numerator and B is the floating point denominator.

This function is used under the covers by the / operator; A / B is equivalent to A.__div__(B).

float::__eq__()

Documentation Coming Soon

float::getClass()

Documentation Coming Soon

float::getField()

Documentation Coming Soon

float::__gt__()

Used to evaluate whether one floating point value is greater than another.

Syntax

int A.__gt__(B)

where A and B are floating point values. Returns true (1) if A is greater than B and false (0) if A is less than or equal to B.

This function is used under the covers by the > operator; A > B is equivalent to A.__gt__(B).

float::__lt__()

Used to evaluate whether one floating point value is less than another.

Syntax

int A.__lt__(B)

where A and B are floating point values. Returns true (1) if A is less than B and false (0) if A is greater than or equal to B.

This function is used under the covers by the < operator; A < B is equivalent to A.__lt__(B).

float::__mul__()

Used to multiply two floating point values together.

Syntax

float A.__mul__(B)

where A and B are floating point values

This function is used under the covers by the * operator; A * B is equivalent to A.__mul__(B).

float::__neg__()

Used to flip the sign of a floating point value.

Syntax

float A.__neg__()

where A is a floating point value.

This function is used under the covers by the - operator; - A is equivalent to A.__neg__().

float::__ne__()

Documentation Coming Soon

float::round()

Documentation Coming Soon

float::setField()

Documentation Coming Soon

float::__sub__()

Used to subtract one floating point value from another.

Syntax

float A.__sub__(B)

where A and B are floating point values and B is being subtracted from A.

This function is used under the covers by the - operator; A - B is equivalent to A.__sub__(B).

float::toJSON()

Documentation Coming Soon

float::_to_JSONObject()

Documentation Coming Soon

float::toString()

Used to cast a floating point value to a string.

Syntax

float A.toString()

where A is a floating point value.

fromJSON()

Documentation Coming Soon

int::__add__()

Used to add two integers together.

Syntax

int A.__add__(B)

where A and B are integers.

This function is used under the covers by the + operator; A + B is equivalent to A.__add__(B).

int::__div__()

Used to divide one integer value into another.

Syntax

int A.__div__(B)

where A is the integer numerator and B is the integer denominator.

This function is used under the covers by the / operator; A / B is equivalent to A.__div__(B).

int::__equal__()

Documentation Coming Soon

int::getClass()

Documentation Coming Soon

int::getField()

Documentation Coming Soon

int::__gt__()

Used to evaluate whether one integer value is greater than another.

Syntax

int A.__gt__(B)

where A and B are both integers. Returns true (1) if A is greater than B and false (0) if A is less than or equal to B.

This function is used under the covers by the > operator; A > B is equivalent to A.__gt__(B).

int::__lt__()

Used to evaluate whether one integer value is less than another.

Syntax

int A.__lt__(B)

where A and B are integers. Returns true (1) if A is less than B and false (0) if A is greater than or equal to B.

This function is used under the covers by the < operator; A < B is equivalent to A.__lt__(B).

int::__mod__()

Used to determine the remainer (modulo) when one integer value is divided into another.

Syntax

int A.__mod__(B)

where A is the integer numerator and B is the integer denominator.

This function is used under the covers by the % operator; A % B is equivalent to A.__mod__(B).

int::__mul__()

Used to multiply two integers values together.

Syntax

int A.__mul__(B)

where A and B are integers.

This function is used under the covers by the * operator; A * B is equivalent to A.__mul__(B).

int::__neg__()

Used to flip the sign of an integer.

Syntax

int A.__neg__()

where A is any integer value.

This function is used under the covers by the - operator; - A is equivalent to A.__neg__().

int::__ne__()

Documentation Coming Soon

int::setField()

Documentation Coming Soon

int::__sub__()

Used to subtract one integer from another.

Syntax

int A.__sub__(B)

where A and B are integers and B is being subtracted from A.

This function is used under the covers by the - operator; A - B is equivalent to A.__sub__(B).

int::_to_Byte()

Documentation Coming Soon

float::toFloat()

Documentation Coming Soon

int::toJSON()

Documentation Coming Soon

int::_to_JSONObject()

Documentation Coming Soon

int::_to_Long()

Documentation Coming Soon

int::_to_Short()

Documentation Coming Soon

int::toString()

Used to cast an integer to a string.

Syntax

int A.toString()

where A is an integer.

List::add()

Used to add a new element to a list. The element is always added to the end of the list.

Syntax

void A.__add__(B)

where A is the list and B is the element to add to the list.

This function is used under the covers by list [] notation; A [ B ] is equivalent to A.__add__(B)

List::__get__()

Used to retrieve the value of a specific element in a list.

Syntax

elementType A.__get__(B)

where elementType is the declared type of list elements, A is the list and B is the 0-based index of the element value to return.

This function is used under the covers by list [] notation; A [ B ] is equivalent to A.__get__(B)

List::getClass()

Documentation Coming Soon

List::getField()

Documentation Coming Soon

List::__set__()

Used to modify an existing element in a list.

Syntax

void A.__set__(B,*C*)

where A is the list, B is the 0-based index number of the element to modify, and C is the new value of the element.

This function is used under the covers by list [] notation; A [ B ] = C is equivalent to A.__set__(B,*C*)

List::setField()

Documentation Coming Soon

List::size()

Returns the number of elements in a list.

Syntax

int A.__size__()

where A is the list.

long::__add__()

Used to add two long integers together.

Syntax

long A.__add__(B)

where A and B are long integers.

This function is used under the covers by the + operator; A + B is equivalent to A.__add__(B).

long::__div__()

Used to divide one long integer into another.

Syntax

long A.__div__(B)

where A is the long integer numerator and B is the long integer denominator.

This function is used under the covers by the / operator; A / B is equivalent to A.__div__(B).

long::__eq__()

Documentation Coming Soon

long::getClass()

Documentation Coming Soon

long::getField()

Documentation Coming Soon

long::__gt__()

Used to evaluate whether one long integer is greater than another.

Syntax

long A.__gt__(B)

where A and B are long integers. Returns true (1) if A is greater than B and false (0) if A is less than or equal to B.

This function is used under the covers by the > operator; A > B is equivalent to A.__gt__(B).

long::__lt__()

Used to evaluate whether one long integer is less than another.

Syntax

long A.__lt__(B)

where A and B are long integers. Returns true (1) if A is less than B and false (0) if A is greater than or equal to B.

This function is used under the covers by the < operator; A < B is equivalent to A.__lt__(B).

long::__mul__()

Used to multiply two long integers together.

Syntax

long A.__mul__(B)

where A and B are long integers.

This function is used under the covers by the * operator; A * B is equivalent to A.__mul__(B).

long::__neg__()

Used to flip the sign of a long integer.

Syntax

long A.__neg__()

where A is a long integer.

This function is used under the covers by the - operator; - A is equivalent to A.__neg__().

long::setField()

Documentation Coming Soon

long::__sub__()

Used to subtract one long integer from another.

Syntax

long A.__sub__(B)

where A and B are long integers and B is being subtracted from A.

This function is used under the covers by the - operator; A - B is equivalent to A.__div__(B).

long::toFloat()

Documentation Coming Soon

long::toJSON()

Documentation Coming Soon

long::_to_JSONObject()

Documentation Coming Soon

long::toString()

Used to cast a long integer to a string.

Syntax

long A.toString()

where A is a long integer.

Map::contains()

Documentation Coming Soon

Map::__eq__()

Documentation Coming Soon

Map::get()

Documentation Coming Soon

Map::getClass()

Documentation Coming Soon

Map::getField()

Documentation Coming Soon

Map::__ne__()

Documentation Coming Soon

Map::set()

Documentation Coming Soon

Map::setField()

Documentation Coming Soon

Map::update()

Documentation Coming Soon

Object::__eq__()

Documentation Coming Soon

Object::getClass()

Documentation Coming Soon

Object::getField()

Documentation Coming Soon

Object::__ne__()

Documentation Coming Soon

Object::setField()

Documentation Coming Soon

now()

Returns the current time in UTC milliseconds.

Syntax

void now()

parseInt()

Used to represent a string as a base 10 integer. If rounding is needed, the value is rounded according to the default rounding rules of the target language.

Syntax

int parseInt(A)

where A is the string to convert.

print()

Used to print strings to stdout. Integers and floats can be printed if passed through toString() first.

Syntax

void print(A)

where A is the string to print.

short::__add__()

Documentation Coming Soon

short::__div__()

Documentation Coming Soon

short::__eq__()

Documentation Coming Soon

short::getClass()

Documentation Coming Soon

short::getField()

Documentation Coming Soon

short::__gt__()

Documentation Coming Soon

short::__lt__()

Documentation Coming Soon

short::__mod__()

Documentation Coming Soon

short::__mul__()

Documentation Coming Soon

short::__ne__()

Documentation Coming Soon

short::__neg__()

Documentation Coming Soon

short::setField()

Documentation Coming Soon

short::__sub__()

Documentation Coming Soon

short::toFloat()

Documentation Coming Soon

short::toJSON()

Documentation Coming Soon

short::toJSONObject()

Documentation Coming Soon

short::toString()

Documentation Coming Soon

sleep()

Used to pause code execution for a specified period of time.

Syntax

void sleep(A)

where A is the number of seconds to halt execution of code.

String::__add__()

Used to concatenate strings.

Syntax

String A.__add__(B)

where A and B are both strings.

This function is used under the covers by the + operator; A + B is equivalent to A.__add__(B).

string::endsWith()

Documentation Coming Soon

string::__eq__()

Documentation Coming Soon

string::find()

Documentation Coming Soon

string::getClass()

Documentation Coming Soon

string::getField()

Documentation Coming Soon

string::join()

Documentation Coming Soon

string::__ne__()

Documentation Coming Soon

string::parseJSON()

Documentation Coming Soon

string::replace()

Documentation Coming Soon

string::setField()

Documentation Coming Soon

string::size()

Documentation Coming Soon

string::split()

Documentation Coming Soon

string::startsWith()

Documentation Coming Soon

string::substring()

Documentation Coming Soon

string::toJSON()

Documentation Coming Soon

string::_to_JSONObject()

Documentation Coming Soon

toJSON()

Documentation Coming Soon

url_get()

Documentation Coming Soon