Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>rjust() - right justify a string in <nn> spaces</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     rjust() - right justify a string in <nn> spaces
  Usage:    <string> = rjust(<string>,[<width>],[<fill>])
  Params:   string <string> - the string to right justify
            integer <width> - the width to justify within,
            optional, if the width is left off, then the length
            of <string> is used.
            string <fill> - the filler character to use to fill the
            leading spaces with, optional, the default is spaces.
  Returns:  a string equal to <string> with all trailing characters
            moved to the front of the string, and optionally filled
            with the character specified by <fill> up to optional
            length <width>

 ---------------------------------- Example ---------------------------------

                 ? rjust("Right justified         ")
                 * prints "         Right justified"

                 ? rjust("Right justified",20)
                 * prints "     Right justified"

                 ? rjust("Right justified",20,".")
                 * prints ".....Right justified"


See Also: ljust() leadchar() trailchar() chrswap() center()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson