NAnt
Help
Function Reference
string::pad-left |
v0.85-nightly-2005-11-09 |
[This is preliminary documentation and subject to change.]
Returns the given string left-padded to the given length.
string string::pad-left(s, totalWidth, paddingChar)
| Name | Type | Description |
|---|---|---|
| s | string | The String that needs to be left-padded. |
| totalWidth | int | The number of characters in the resulting string, equal to the number of original characters plus any additional padding characters. |
| paddingChar | string | A Unicode padding character. |
string::pad-left('test', 10, ' ') ==> ' test'string::pad-left('test', 10, 'test') ==> 'tttttttest'string::pad-left('test', 3, ' ') ==> 'test'string::pad-left('test', -4, ' ') ==> ERROR