rjust()

btmux-0.6-rc4/game/text/help/cat_mux/cat_functions/rjust() · 525 B

From the archive btonline-btechmux-0.6-rc4.tbz2

Download the archive   « Back to the archive contents

& rjust()
 
  Syntax: rjust(<string>, <length>[, <fill>])
 
  This function pads a string with leading <fill> characters, or with 
  spaces if no fill character is given) ("right-justifies") so it is 
  <length> long. If <string> is longer than <length>, the <string> is 
  returned; it is not truncated.
 
  Example:
 
  > say -[rjust(foo,6)]-
  You say "-   foo-"
  > say %r0[rjust(foo,6)]7%r01234567
  You say "
  0   foo7
  01234567"
  > say =[rjust(bar,5,.)]=
  You say "=..bar="
 
	See Also: ljust()

Site Stats

Snippets: 1791
Codebases: 571