Function Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
S
 seek
 seekEnd
 seekStart
 select
 send, Socket
 set32
 set64
 setGarbageCollectionInterval
 setRecursionLimit
 shiftLeft32
 shiftLeft64
 shiftRight32
 shiftRight64
 shiftRightSigned32
 shiftRightSigned64
 sign
 sin
 sinh
 size
 sizeof, Struct
 sleep
 spawn
 split
 splitLines
 sprintf
 sqrt
 square
 start, Stopwatch
 stop, Stopwatch
 str
 sub
 symlink
 system
T
 tan
 tanh
 tcpSocket
 tell
 tgamma
 tick
 toCodePoint
 toString, DateTime
 trim
 trimCharacters
 trunc
 truncate
DECLARE NATIVE FUNCTION seek(f: File,
offset: Number,
whence: SeekBase DEFAULT SeekBase.absolute)
Seek to a specific position within a file.
DECLARE NATIVE FUNCTION seekEnd(f: TextFile)
Seek to the end of a file.
DECLARE NATIVE FUNCTION seekStart(f: TextFile)
Seek to the start of a file.
FUNCTION select(INOUT read,
 write,
error: Array<Socket>,
timeout_seconds: Number): Boolean
Select sockets with pending activity subject to an optional timeout.
FUNCTION Socket.send(self: Socket,
data: Bytes)
Send (write) bytes to a socket.
DECLARE NATIVE FUNCTION set32( x,
n: Number,
v: Boolean): Number
Set a specific bit in a 32-bit word.
DECLARE NATIVE FUNCTION set64( x,
n: Number,
v: Boolean): Number
Set a specific bit in a 64-bit word.
DECLARE NATIVE FUNCTION setGarbageCollectionInterval(count: Number)
Set the interval that determines when garbage collection will be run.
DECLARE NATIVE FUNCTION setRecursionLimit(depth: Number)
Set the maximum permitted call stack depth.
DECLARE NATIVE FUNCTION shiftLeft32( x,
n: Number): Number
Shift a 32-bit word left by a given number of bits.
DECLARE NATIVE FUNCTION shiftLeft64( x,
n: Number): Number
Shift a 64-bit word left by a given number of bits.
DECLARE NATIVE FUNCTION shiftRight32( x,
n: Number): Number
Shift a 32-bit word right by a given number of bits.
DECLARE NATIVE FUNCTION shiftRight64( x,
n: Number): Number
Shift a 64-bit word right by a given number of bits.
DECLARE NATIVE FUNCTION shiftRightSigned32( x,
n: Number): Number
Shift a 32-bit word right by a given number of bits, preserving the sign bit.
DECLARE NATIVE FUNCTION shiftRightSigned64( x,
n: Number): Number
Shift a 64-bit word right by a given number of bits, preserving the sign bit.
DECLARE NATIVE FUNCTION sign(x: Number): Number
Returns -1 if x is negative, 0 if x is 0, or 1 if x is positive.
FUNCTION sin(a: Complex): Complex
Sine.
FUNCTION sinh(a: Complex): Complex
Hyperbolic sine.
DECLARE NATIVE FUNCTION size(f: MemoryFile): Number
Return the size of a memory mapped file.
FUNCTION Struct.sizeof(self: Struct): Number
Return the total size of a structure definition.
DECLARE NATIVE FUNCTION sleep(seconds: Number)
Sleep for the given number of seconds.
DECLARE NATIVE FUNCTION spawn(command: String): Process
Create a new process with the given command line.
DECLARE NATIVE FUNCTION split(s: String,
d: String): Array<String>
Split a string into parts using the given delimiter.
DECLARE NATIVE FUNCTION splitLines(s: String): Array<String>
Split a string into lines using any of CRLF or CR or LF line endings.
FUNCTION sprintf(fmt: String,
value: Object...): String
Given a format string and an array of parameters, format the string and return the result.
FUNCTION sqrt(a: Complex): Complex
Square root.
FUNCTION square(a: Complex): Complex
Complex square (a^2).
FUNCTION Stopwatch.start(INOUT self: Stopwatch)
Start a stopwatch.
FUNCTION Stopwatch.stop(INOUT self: Stopwatch)
Stop a stopwatch.
DECLARE NATIVE FUNCTION str(x: Number): String
Convert a number to a decimal string.
FUNCTION sub( a,
b: Complex): Complex
Complex subtraction.
DECLARE NATIVE FUNCTION symlink(target: String,
newlink: String,
targetIsDirectory: Boolean DEFAULT FALSE)
Create a symlink named newlink that points to target.
DECLARE NATIVE FUNCTION system(command: String): Number
Execute a system (shell) command.
FUNCTION tan(a: Complex): Complex
Tangent.
FUNCTION tanh(a: Complex): Complex
Hyperbolic tangent.
DECLARE NATIVE FUNCTION tcpSocket(): Socket
Create a new TCP/IP (stream) socket.
DECLARE NATIVE FUNCTION tell(f: File): Number
Return the current file pointer position.
DECLARE NATIVE FUNCTION tgamma(x: Number): Number
Gamma function.
DECLARE NATIVE FUNCTION tick(): Number
Return a tick count which is the number of seconds since some unspecified time in the past (used by Stopwatch).
DECLARE NATIVE FUNCTION toCodePoint(s: String): Number
Return the Unicode code point of a given character.
FUNCTION DateTime.toString(self: DateTime): String
Return an ISO 8601 formatted representation of a DateTime.
FUNCTION trim(s: String): String
Trim spaces from the start and end of a string.
DECLARE NATIVE FUNCTION trimCharacters(s: String,
 trimLeadingChars,
trimTrailingChars: String): String
Trim given characters from the start and end of a string.
DECLARE NATIVE FUNCTION trunc(x: Number): Number
Truncate to integer (effectively, round toward zero).
DECLARE NATIVE FUNCTION truncate(f: File)
Truncate the file at the current position.
Close