[Image] [Image] [Image] [Image]
Next: External library DATR definitions Up: Library Previous: Library

Zdatr 2.0 builtin library functions

They include all the RFC 2.0 defined functions, and a number of additional functions to support large applications. For usage examples, see the RFC 2.0.

See
Zdatr 2.0 addition, I/O. Opens an input file or pipe for reading.

Seen
Zdatr 2.0 addition, I/O. Closes an input file or pipe.

Tell
Zdatr 2.0 addition, I/O.

Told
Zdatr 2.0 addition, I/O.

Readline
RFC compliant, I/O.

Writeline
RFC compliant, I/O.

System
Zdatr 2.0 addition, IPC.

Calc
RFC compliant, calculator. The operations available are SPMquot! * / + - < > <= >= == != & ^ | || && =" .

CALC
Zdatr 2.0 addition, calculator.

This is like Calc, but does not permit non-math atoms, allows global numerical variable assignments to atoms, and includes floating point operations and the additional operator atoms sqrt, sin, asin, cos, acos, exp, ln, pi.

Ascii_prim
Zdatr 2.0 addition, string: ASCII value of a character only. Cf. also Ascii in the external library, which includes conventional character names.

Chars
RFC compliant, string: Character value of an ASCII integer.

Count
RFC compliant, string: Number of occurrences of first atom in sequence.

Explode
RFC compliant, string: Expands an atom to a list of characters.

Fail
RFC compliant, meta-object: Fail at undefined path.

FirstN
Zdatr 2.0 addition, string: Extract first N atoms from a sequence.

Global
RFC compliant, meta-object: Evaluate sequence as global query.

Gnode
RFC compliant, meta-object: Evaluate path with global node.

Gpath
RFC compliant, meta-object: Evaluate node with global path.

Implode
RFC compliant, string: Compresses a sequence of atoms to a single atom without spaces.

LC
Zdatr 2.0 addition, string: Converts all alphabetic characters in atoms into lower case.

Length
RFC compliant, string: Length of a sequence.

Local
RFC compliant, meta-object: Evaluate sequence as local query.

Member
RFC compliant, string: Boolean, returns 1 if first atom is a member of the following sequence.

Mode
RFC compliant, calculator: Orders atoms in a path in order of frequency, sub-ordered by the current sort mode.

Permute
RFC compliant, string: Random permutation of a sequence.

Pos
Zdatr 2.0 addition, string: Determines the numerical position of an atom in a path and returns 0 if not found.

Qnode
RFC compliant, meta-object: Evaluate path with query node.

Qpath
RFC compliant, meta-object: Evaluate node with query path.

Query
RFC compliant, meta-object: Evaluate as query.

ReplaceAt
Zdatr 2.0 addition, string: Substitute first atom for any atom at position defined by second (numerical) atom.

Sed
RFC compliant, string: Substitutes the first expression for the second in the following sequence.

Series
RFC compliant, string: maps first atom (positive integer), second and third (signed integers) to a sequence starting with first, with increment second, of length third; fails if first three atoms are not as described.

SkipN
Zdatr 2.0 addition, string: Remove first N atoms from a sequence.

SortA
Zdatr 2.0 addition, string: Alphabetic (ASCII collating) sort.

SortN
Zdatr 2.0 addition, string: Numeric sort.

Split
Zdatr 2.0 addition, string: Uses the first atom as a delimiter to expand atom into a sequence of atoms (for database import).

Subseq
Zdatr 2.0 addition, string: Sequence starting at numerical value of first atom of length of numerical value of second atom.

Tr
Zdatr 2.0 addition, string: Translates the first atom into the second within the following sequence.

UC
Zdatr 2.0 addition, string: Converts all alphabetic characters in atoms into upper case.

UCFIRST
Zdatr 2.0 addition, string: Converts first alphabetic character in atoms to upper case.

$env_qn
Zdatr 2.0 addition, meta-object, returns the name of the query node.

$env_gn
Zdatr 2.0 addition, meta-object, returns the name of the current global node.

$env_ln
Zdatr 2.0 addition, meta-object, returns the name of the current local node.

Options
Zdatr 2.0 addition, metaobject for locally overridable declarations (directives) such as #seed, #sort.


[Image] [Image] [Image] [Image]
Next: External library DATR definitions Up: Library Previous: Library

© Dafydd Gibbon Sun Sep 13 17:17:46 MET DST 1998