Lines Matching refs:col
92 def report_error(self, pat, msg, col=None):
97 if col is not None:
98 msg = msg + "\nOffset: " + str(col)
131 line, col = get_line_col(start)
132 res = self.search_backward(text, prog, line, col, wrap, ok)
138 line, col = get_line_col(start)
139 res = self.search_forward(text, prog, line, col, wrap, ok)
142 def search_forward(self, text, prog, line, col, wrap, ok=0):
147 m = prog.search(chars[:-1], col)
149 if ok or m.end() > col:
154 col = 0
164 def search_backward(self, text, prog, line, col, wrap, ok=0):
169 m = search_reverse(prog, chars[:-1], col)
171 if ok or m.start() < col:
183 line, col = map(int, pos.split("."))
185 col = len(chars) - 1
189 def search_reverse(prog, chars, col):
202 while i < col and j <= col:
213 '''Return tuple of 'line.col' indexes from selection or insert mark.
227 '''Return (line, col) tuple of ints from 'line.col' string.'''
228 line, col = map(int, index.split(".")) # Fails on invalid index
229 return line, col