Package gnu.kawa.functions
Class Format
java.lang.Object
gnu.mapping.PropertySet
gnu.mapping.Procedure
gnu.mapping.ProcedureN
gnu.kawa.functions.Format
- All Implemented Interfaces:
Named
-
Field Summary
FieldsFields inherited from class gnu.mapping.ProcedureN
applyToObject, noArgs
Fields inherited from class gnu.mapping.Procedure
applyMethodType, applyToConsumerDefault, applyToConsumerMethod, applyToObjectDefault, applyToObjectMethod, compilerKey, compilerXKey, inlineIfConstantSymbol, validateApplyKey, validateXApplyKey
Fields inherited from class gnu.mapping.PropertySet
nameKey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static Object
static FString
formatToFString
(char style, Object fmt, Object[] args) Apply format and argument, yielding an FString.static void
formatToOutputStream
(OutputStream dst, Object format, Object... vals) static String
formatToString
(int arg_offset, Object... args) static void
formatToWriter
(Writer dst, Object format, Object... vals) static String
sprintfToString
(Object fmt, Object... args) Methods inherited from class gnu.mapping.ProcedureN
applyToObject
Methods inherited from class gnu.mapping.Procedure
apply0, apply1, apply2, apply3, apply4, applyL, applyToConsumerDefault, applyToObjectDefault, checkArgCount, checkBadCode, getApplyMethod, getApplyToConsumerMethod, getApplyToObjectMethod, getReturnType, getSetter, getSourceLocation, isSideEffectFree, lookupApplyHandle, maxArgs, maxArgs, minArgs, minArgs, numArgs, set0, set1, setN, setSetter, setSourceLocation, toString
Methods inherited from class gnu.mapping.PropertySet
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol
-
Field Details
-
format
-
-
Constructor Details
-
Format
public Format()
-
-
Method Details
-
format
-
formatToWriter
-
formatToOutputStream
-
formatToString
-
sprintfToString
-
formatToFString
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 specificationargs
- the arguments to be formatted
-
applyN
-
format
-