Lines Matching refs:index
26 def __init__(self, editwin, index):
27 "To initialize, analyze the surroundings of the given index."
34 def index2line(index):
35 return int(float(index))
36 lno = index2line(text.index(index))
44 # at end. We add a space so that index won't be at end
54 r = text.tag_prevrange("console", index)
61 # space so that index won't be at end of line, so that its
79 self.set_index(index)
81 def set_index(self, index):
82 """Set the index to which the functions relate.
84 The index must be in the same statement.
87 len(self.text.get(index, self.stopatindex)))
90 % index)
92 # find the rightmost bracket to which index belongs
103 """Is the index given to the HyperParser in a string?"""
111 """Is the index given to the HyperParser in normal code?"""
119 If the index given to the HyperParser is surrounded by a
142 beforeindex = self.text.index("%s-%dc" %
151 # index before it.
152 afterindex = self.text.index(
224 given index, which is empty if there is no real one.
228 "if index is inside a code.")