index
                no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | index [2007/03/02 02:32] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | # $EPIC: index.txt,v 1.2 2007/03/02 02:32:04 jnelson Exp $ | ||
| + | ======Synopsis: | ||
| + | $__index__(< | ||
| + | |||
| + | ======Technical: | ||
| + | * The < | ||
| + | * < | ||
| + | * If the first character in < | ||
| + | * Counting begins after the first space after < | ||
| + | * The return value is the number of initial characters in < | ||
| + | * If none of the characters in < | ||
| + | |||
| + | ======Practical: | ||
| + | It used to be common to use $index() to find a character in a string so | ||
| + | that you could extract the parts of the string before and after the | ||
| + | character. | ||
| + | |||
| + | ======Returns: | ||
| + | < | ||
| + | -1   no character in < | ||
| + | > -1   index to first instance of something in < | ||
| + | </ | ||
| + | |||
| + | ======History: | ||
| + | This function originally appeared in ircII. | ||
| + | |||
| + | ======Examples: | ||
| + | < | ||
| + | $index(abc hello there bob) returns 12 | ||
| + | $index(abc | ||
| + | $index(xyz hello there bob) returns -1 | ||
| + | $index() | ||
| + | </ | ||
| + | |||
index.txt · Last modified: 2007/03/02 02:32 by 127.0.0.1
                
                