builtins
Builtin types and functions. More...
Types
Functions
Description
These types and functions are builtin and do not require
any
use
statement.
Type details
Parent type of all other types.
Byte value.
Values of this type are signed integer numbers in range from −128 to 127.
Short integer value.
Values of this type are signed integer numbers in range from −32768 to 32767.
Character value.
Values of this type are unsigned integer numbers in range from 0 to 65535.
Integer value.
Values of this type are signed integer numbers in range from −2
31 to 2
31−1.
Long integer value.
Values of this type are signed integer numbers in range from −2
63 to 2
63−1.
Single precision floating point number.
Double precision floating point number.
Boolean value.
Values of this type are
true
and
false
.
A sequence of characters.
Parent type or all array types.
Parent type of all structure types.
Parent type of all functional types.
Error thrown in exceptional situations.
See
error.eh for details.
Function details
Returns string representation of the value.
If value is:
-
String
- value itself is returned;
-
Int
, Long
, Float
or Double
- string
representation as a decimal number is returned;
-
Bool
- string "true" or "false" is returned;
-
StrBuf
- new string allocated with characters currently contained
in the buffer;
-
Function
- the name of the function is returned;
-
Array
- the string containing all array elements, separated by commas, is returned;
-
null
- function returns string "null"
.
It is safe to call this function for values of other types but returned
values are platform dependant and you should not rely on them.
Returns length of the string.
Returns character at given position in the string.
You may also use square brackets, as with array.
Returns substring of the string.
Returned substring contains all characters in range
from..to-1
.
Returns string containing single character.
Copies
len elements from array
src starting at index
sofs to array
dest starting at index
dofs.
Clones structure.
The returned value is new structure of the same type with all fields copied from the old structure.