left
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | left [2006/08/01 04:13] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | # $EPIC: left.txt,v 1.4 2006/08/01 04:12:59 sthalik Exp $ | ||
+ | ======Synopsis: | ||
+ | $__left__(< | ||
+ | |||
+ | ======Technical: | ||
+ | * If < | ||
+ | * If < | ||
+ | * If < | ||
+ | * If < | ||
+ | * If < | ||
+ | |||
+ | ======Practical: | ||
+ | Whenever you need to extract the initial part of a string, you would use | ||
+ | this function to get it. This is more useful for fixed-format strings. | ||
+ | ircII used to use $left($[[index]](< | ||
+ | of < | ||
+ | because it is faster, more clear, and doesn' | ||
+ | which may be important if < | ||
+ | |||
+ | ======Returns: | ||
+ | The first < | ||
+ | a string that is always < | ||
+ | < | ||
+ | $pad(< | ||
+ | </ | ||
+ | |||
+ | ======Examples: | ||
+ | < | ||
+ | $left(5 biklmnopstv) | ||
+ | $left(15 biklmnopstv) | ||
+ | $left(-2 biklmnopstv) | ||
+ | $left($index(@ $userhost()) $userhost()) returns a username in an /on. | ||
+ | -- Note that this construction is obsolete, but is still used by some. | ||
+ | </ | ||
+ | |||
+ | ======History: | ||
+ | This function first appeared in ircII. | ||
left.txt · Last modified: 2006/08/01 04:13 by 127.0.0.1