User Tools

Site Tools


igetrmatches

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

igetrmatches [2007/02/27 04:57] (current)
Line 1: Line 1:
 +# $EPIC: igetrmatches.txt,​v 1.2 2007/02/27 04:57:37 jnelson Exp $
 +======Synopsis:​======
 +$__igetrmatches__(<​array>​ <​string>​)
 +
 +======Technical:​======
 +This function treats the items in array as wildcard patterns, and returns
 +a word list of index values such that
 +
 + for i in ($igetrmatches(<​array>​ <​string>​)) {
 + if (<​string>​ =~ igetitem(<​array>​ $i)) {
 + echo True
 + } else {
 + echo False
 + }
 + }
 +
 +only outputs True and enver False. ​ This is the converse of [[getrmatches]].
 +
 +======Practical:​======
 +The $__getmatches__() function is used to retrieve all items in the given
 +array that match the given pattern. ​ Similarly, $__getrmatches__() is used
 +to retrieve all items that match the given string.
 +
 +======Returns:​======
 +list of item numbers corresponding to matches
  
igetrmatches.txt ยท Last modified: 2007/02/27 04:57 (external edit)