Initial import of the ircii-pana-1.1-final source tree.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/tags/ircii-pana-1.1-final@1 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
20
bitchx-docs/6_Functions/pad
Normal file
20
bitchx-docs/6_Functions/pad
Normal file
@@ -0,0 +1,20 @@
|
||||
Synopsis:
|
||||
$pad(<length> <char> <text>)
|
||||
|
||||
Technical:
|
||||
This function pads the end of <text> with <char> until it is <length>
|
||||
characters long. If <text> is longer than <length>, nothing is done.
|
||||
|
||||
Practical:
|
||||
This function is especially useful for forcing strings to a minimum
|
||||
length, possibly for a script that hooks and displays a /names reply.
|
||||
|
||||
Returns:
|
||||
<text> padded with a number of <char>s until it's length is <length>
|
||||
|
||||
Examples:
|
||||
$pad(8 ! test) returns "test!!!!!"
|
||||
|
||||
See Also:
|
||||
left(6); right(6); mid(6)
|
||||
|
||||
Reference in New Issue
Block a user