rindex
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | rindex [2007/03/02 02:32] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | # $EPIC: rindex.txt, | ||
| + | ======Synopsis: | ||
| + | $__rindex__(< | ||
| + | |||
| + | ======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 $rindex() 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 last instance of something in < | ||
| + | </ | ||
| + | |||
| + | ======History====== | ||
| + | This function originally appeared in ircII-2.1.3 | ||
| + | |||
| + | ======Examples: | ||
| + | < | ||
| + | $rindex(abc hello there bob) | ||
| + | $rindex(abc | ||
| + | | ||
| + | $rindex(xyz hello there bob) | ||
| + | $rindex() | ||
| + | </ | ||
| + | |||
rindex.txt · Last modified: 2007/03/02 02:32 by 127.0.0.1
