----
title: Core functions
SPDX-FileCopyrightText: 2024 Norman Gray <https://nxg.me.uk>
SPDX-License-Identifier: BSD-2-Clause


Printing:

  * [`printf`](#fn-printf)
  * [`sprintf`](#fn-sprintf)
  * [`eprintf`](#fn-eprintf)

Messages to the caller

  * [`print-warning`](#fn-print-warning)
  * [`print-info`](#fn-print-info)
  * [`print-trace`](#fn-print-trace)

Regular expressions

  * [`regexp`](#fn-regexp)
  * [`regexp?`](#fn-regexp?)
  * [`regexp-match-positions`](#fn-regexp-match-positions)
  * [`regexp-match-positions/multi`](#fn-regexp-match-positions-multi)
  * [`regexp-match`](#fn-regexp-match)
  * [`regexp-match/multi`](#fn-regexp-match-multi)
  * [`regexp-match?`](#fn-regexp-match?)

Information:

  * `(*beastie* 'key)` : return information about beastie.
    The `key` can be:

    - `version-string` : show the beastie version, as a string.
    - `version-integers` : show the beastie version, as a list of integers.
    - `date` : the beastie release date.
    - `revision` : repository revision.
    - `s7-version` : the version of s7 this is built on.
    - `build-platform` : the platform beastie was built on,
       as a string.
    - `run-platform` : the platform which the program is running on,
       as a string.
    - `icu-version` : if ICU is compiled in, this is
       a list containing the ICU major, minor and patchlevel version numbers;
       else `#f`.
    - `icu-version-string` : if ICU is compiled in,
       this is a major.minor.patch version string;
       else `#f`.
    - `unicode-version` : the version of the Unicode Character Database
      which is built in (and used either with ICU or internal support).

  * `*command-line*` : the arguments given to the program, as a list
    of strings, not including the program name.
