module RemiLib::Format

Overview

The RemiLib::Format module contains alternate methods to format strings with various arguments. Unlike printf/sprintf, the format strings for this module are based on those for Common Lisp's FORMAT function.

Note that not all of the directives from Common Lisp are supported. These are currently implemented:

Documentation for the original Common Lisp function can be found here: http://www.lispworks.com/documentation/HyperSpec/Body/22_c.htm

Defined in:

remilib/format.cr

Class Method Summary

Class Method Detail

def self.format(fmtString : String, *args) : String #

Formats fmtString with the given arguments using a RemiLib::Format::Formatter, then returns the resulting string.


[View source]
def self.format(io : IO, fmtString : String, *args) : IO #

Formats fmtString with the given arguments using a RemiLib::Format::Formatter, then writes the results to io. This returns the io.


[View source]