gnu.kawa.functions

Class Format

Implemented Interfaces:
Named

public class Format
extends ProcedureN

Field Summary

static Format
format

Fields inherited from class gnu.mapping.ProcedureN

noArgs

Method Summary

Object
applyN(Object[] args)
static void
format(OutPort dst, Object[] args, int arg_offset)
static Object
format$V(Object[] args)
static FString
formatToString(Object[] args, int arg_offset)
static FString
formatToString(char style, Object fmt, Object[] args)
Apply format and argument, yielding an FString.

Methods inherited from class gnu.mapping.ProcedureN

apply0, apply1, apply2, apply3, apply4, applyN

Methods inherited from class gnu.mapping.Procedure

apply, apply, apply0, apply1, apply2, apply3, apply4, applyN, check0, check1, check2, check3, check4, checkArgCount, checkN, getName, getProperty, getSetter, getSymbol, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, name, numArgs, removeProperty, set0, set1, setN, setName, setProperty, setProperty, setSetter, setSymbol, toString

Field Details

format

public static final Format format

Method Details

applyN

public Object applyN(Object[] args)
Overrides:
applyN in interface ProcedureN

format

public static void format(OutPort dst,
                          Object[] args,
                          int arg_offset)

format$V

public static Object format$V(Object[] args)

formatToString

public static FString formatToString(Object[] args,
                                     int arg_offset)

formatToString

public static FString formatToString(char style,
                                     Object fmt,
                                     Object[] args)
Apply format and argument, yielding an FString.
Parameters:
style - either '%' (C/Emacs-style format specifiers), or '~' (Common Lisp-style format specifiers).
fmt - the format string or specification
args - the arguments to be formatted