Name

LzFormatter

Synopsis

JavaScript: LzFormatter
Type: Class
Access: public
Topic: LZX.Formatted Output
Declared in: WEB-INF/lps/lfc/compiler/LzFormatter.lzs

Description

Formatted output support

Superclass Chain

LzFormatter

Known Subclasses

Details

Methods (2)

formatToString()
public function formatToString(control : string, args) : LzMessage;
Formatted output to string Formats its arguments according to the control string The standard printf conversions are accepted, with the exception of `a`, `n`, and `p`. `e`, `f`, and `g` conversions are accepted but equivalent to `f`. The `h` and `l` length modifiers are accepted but ignored. No errors are signalled for invalid format controls or insufficient arguments. If the Debugger is present, There is an additional format specifier `w` that formats the argument as if by `Debug.__String` with the 'pretty' option and creates a 'hotlink' so the object can be inspected. If alternate format is requested (#), `w` uses the full `Debug.__String` format used by Debug.write(). `%w` format obeys Debug.printLength. If a precision is specified, that is used as printLength.
pad()
public function pad(value, widthMin, decMax : Number, pad : String, sign : String, radix : Number, force : Boolean);
pad or trim a string to a specified length

JavaScript Synopsis

public LzFormatter {
  prototype public function formatToString (control : string, args) : LzMessage;
  prototype public function pad (value, widthMin, decMax : Number, pad : String, sign : String, radix : Number, force : Boolean);
}