List of functions in core.inc

Function Description
heapspace
Returns the free memory space available to the plugin.
funcidx
Returns the function index of a public function declared in the plugin.
numargs
Returns the number of arguments passed into the currently executed function.
getarg
Retrieves an argument value passed into the currently executed function.
setarg
Sets the value of an argument passed into the currently executed function.
tolower
Converts a character to lowercase.
toupper
Converts a character to uppercase.
swapchars
Swaps the bytes of a value (the lowest byte becomes the highest byte).
random
Returns a random number between 0 and a specified upper bound.
min
Returns the smaller of two provided values.
max
Returns the bigger of two provided values.
clamp
Limits a provided value between two specified bounds.
power
Returns a value raised to a specified exponent.
sqroot
Returns the approximated square root of a value.
time
Retrieves the current time in hours, minutes and seconds.
date
Retrieves the current date in year, month and day.
tickcount
Returns the elapsed CPU seconds.
abs
Returns the absolute value of a number.