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, noArgsFields inherited from class gnu.mapping.Procedure
applyMethodType, applyToConsumerDefault, applyToConsumerMethod, applyToObjectDefault, applyToObjectMethod, compilerKey, compilerXKey, inlineIfConstantSymbol, validateApplyKey, validateXApplyKeyFields inherited from class gnu.mapping.PropertySet
nameKey -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic Objectstatic FStringformatToFString(char style, Object fmt, Object[] args) Apply format and argument, yielding an FString.static voidformatToOutputStream(OutputStream dst, Object format, Object... vals) static StringformatToString(int arg_offset, Object... args) static voidformatToWriter(Writer dst, Object format, Object... vals) static StringsprintfToString(Object fmt, Object... args) Methods inherited from class gnu.mapping.ProcedureN
applyToObjectMethods 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, toStringMethods 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
-