Commit 53004c5ded Added LPAD$, RPAD$, and PAD$ Functions.
#include <jade.hpp>
MAIN
STRING str = "abcd";
PRINT(LPAD$(str,10,'*'));
PRINT(RPAD$(str,10,'*'));
PRINT(PAD$(str,10,'*'));
END
$ ./pad
**********abcd
abcd**********
**********abcd**********If the third parameter (padding character) is omitted, spaces are used.
Note that the padding character is a CHAR (single quotes) in this example. You can also pass the ASCII numeric value instead, without the quotes.
AIR.