Class jls.util.Formatter
This class provides a printf like String formatter.
Defined in: Formatter.js.
Class Summary
| Constructor Attributes |
Constructor Name and Description |
| |
|
Method Summary
| Method Attributes |
Method Name and Description |
| <static> |
jls.util.Formatter. format(locale, format)
Returns a formatted string.
|
| <static> |
jls.util.Formatter. pad(s, l, c, d)
Returns a padded string.
|
Class Detail
jls.util.Formatter()
Method Detail
<static>
{String}
jls.util.Formatter.format(locale, format)
Returns a formatted string.
- Parameters:
-
{String} locale
Optional
- The locale to use to format.
-
{String} format
- The format string.
- Returns:
- {String} The formatted string.
<static>
{String}
jls.util.Formatter.pad(s, l, c, d)
Returns a padded string.
- Parameters:
-
{String} s
- The string to pad.
-
{String} l
- The padding length.
-
{String} c
- The padding character.
-
{String} d
- The direction, true for left padding.
- Returns:
- {String} The padded string.
Documentation generated by
JsDoc Toolkit 2.3.2 on Fri Feb 10 2012 22:50:34 GMT+0100 (CET)