About Pi Downloads Documentation Plugins Developer Forum Issues

String.leftpad

Summary

Returns the string left filled with given string in a string of length

Syntax

String.leftpad(len,string)

Example

>>> var str = "Foo";
>>> str.leftpad(5,"#");
"##Foo"
>>> str.leftpad(10,".");
".......Foo"

See Also