right
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | right [2006/08/29 16:08] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | # $EPIC: right.txt,v 1.4 2006/08/19 06:21:24 sthalik Exp $ | ||
+ | ======Synopsis: | ||
+ | $__right__(< | ||
+ | |||
+ | ======Technical: | ||
+ | * If < | ||
+ | * If < | ||
+ | * If < | ||
+ | * If < | ||
+ | * If < | ||
+ | |||
+ | ======Practical: | ||
+ | Whenever you need to extract the trailing part of a string, you would use this | ||
+ | function to get it. This is more useful for fixed-format strings. In ircII, | ||
+ | you would use $[[mid]]($[[index]](< | ||
+ | part of < | ||
+ | < | ||
+ | avoids having two copies of < | ||
+ | function call. | ||
+ | |||
+ | ======Returns: | ||
+ | The last < | ||
+ | a string that is exactly < | ||
+ | |||
+ | $[[pad]](< | ||
+ | |||
+ | ======Examples: | ||
+ | < | ||
+ | $right(5 biklmnopstv) | ||
+ | $right(15 biklmnopstv) | ||
+ | $right(-2 biklmnopstv) | ||
+ | |||
+ | $mid($index(@ $userhost()) 999 $userhost()) returns a hostname in an /on. | ||
+ | Note that this construction is obsolete, but is still used by some. | ||
+ | </ | ||
+ | |||
+ | ======History: | ||
+ | This function first appeared in ircII. | ||
right.txt · Last modified: 2006/08/29 16:08 by 127.0.0.1