Lines Matching refs:char
120 """Return a (line, char) tuple of int indexes into self.data.
127 * line.char float: converted to 'line.char' string;
128 * 'line.char' string, where line and char are decimal integers;
129 * 'line.char lineend', where lineend='lineend' (and char is ignored);
148 line, char = index.split('.')
158 if char.endswith(' lineend') or char == 'end':
161 if m := re.fullmatch(r'end-(\d*)c', char, re.A): # Used by hyperparser.
164 # Out of bounds char becomes first or last index of line
165 char = int(char)
166 if char < 0:
167 char = 0
168 elif char > linelength:
169 char = linelength
170 return line, char
194 line, char = self._decode(index, -1)
195 before = self.data[line][:char]
196 after = self.data[line][char:]