String Functions

absstrlen after afterw ascii before beforew center chngw chr common copattern count decode diff encode filter findw fromw getmatches getrmatches index insertw isalpha isdigit isnum isnumber left leftpc leftw match mid midw msar notw numsort numwords [pad] pass pattern pop push regcomp regerror regexec regfree remw remws repeat rest restw reverse revw rfilter right rightw rindex rmatch rot13 rpattern rstrstr rword sar shift sort splice split strip strlen strstr tolower toupper tow tr translate uniq unshift word

Liam's BitchX Command Reference

BitchX scripting function $pad()

pad
Function
$pad()
Notes
if N is negative, it'll pad to the right if N is positive, it'll pad to the left
Usage
$pad(N string of text goes here)
Returns
a padded string of text, either left or right. Final length is N chars.
Example
$pad(20 letters) returns " letters"


previous: opensocket next: pad