matchitem
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | matchitem [2007/02/27 04:57] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | # $EPIC: matchitem.txt, | ||
| + | ======Synopsis: | ||
| + | $__matchitem__(< | ||
| + | |||
| + | ======Technical: | ||
| + | This function treats the items in the array as literal strings, and | ||
| + | returns the literal string that is "best matched" | ||
| + | The item value of the best matched string is returned. | ||
| + | |||
| + | This string is similar to the [[rmatch]] function, and the reverse of | ||
| + | the [[rmatchitem]] function. | ||
| + | |||
| + | ======Practical: | ||
| + | These functions are analogous to $[[match]]() and $[[rmatch]](). | ||
| + | or pattern, they search through the given array' | ||
| + | for the best match, if any. Basically, the array' | ||
| + | if they were the list of words or patterns passed to $[[match]]() or | ||
| + | $[[rmatch]](). | ||
| + | |||
| + | ======Returns: | ||
| + | < | ||
| + | > -1 item number in array that matched | ||
| + | -1 could not find specified array | ||
| + | -2 could not find a matching item | ||
| + | </ | ||
matchitem.txt · Last modified: 2007/02/27 04:57 by 127.0.0.1
