Lines Matching refs:index
30 def selective_find(str, char, index, pos):
31 """Return a pair (index, pos), indicating the next occurrence of
32 char in str. index is the position of the character considering
34 the full string. index/pos is the starting position in the full
44 return index+1, pos
46 index += 1
54 index = pos = -1
59 index,pos = selective_find(str,c,index,pos)
60 if index == -1:
62 delta += index - oldindex
64 oldindex = index