Searched refs:line_pos (Results 1 – 4 of 4) sorted by relevance
52 size_t line_pos = 0; in Write() local54 size_t start_pos = line_pos; in Write()55 line_pos = str.find('\n', start_pos); in Write()56 if (line_pos != string::npos) { in Write()57 ++line_pos; in Write()58 Append(str.substr(start_pos, line_pos - start_pos)); in Write()63 } while (line_pos != string::npos && line_pos < str.size()); in Write()
844 line_pos = self._file.tell()849 stops.append(line_pos - len(os.linesep))854 stops.append(line_pos)855 starts.append(line_pos)859 stops.append(line_pos - len(os.linesep))861 stops.append(line_pos)894 line_pos = next_pos900 line_pos = next_pos904 stops.append(line_pos - len(os.linesep))907 stops.append(line_pos)[all …]
859 line_pos = self._file.tell()864 stops.append(line_pos - len(linesep))869 stops.append(line_pos)870 starts.append(line_pos)874 stops.append(line_pos - len(linesep))876 stops.append(line_pos)909 line_pos = next_pos915 line_pos = next_pos919 stops.append(line_pos - len(linesep))922 stops.append(line_pos)[all …]
11505 Py_ssize_t i, j, line_pos, src_len, incr; in unicode_expandtabs_impl() local11517 i = j = line_pos = 0; in unicode_expandtabs_impl()11526 incr = tabsize - (line_pos % tabsize); /* cannot overflow */ in unicode_expandtabs_impl()11529 line_pos += incr; in unicode_expandtabs_impl()11536 line_pos++; in unicode_expandtabs_impl()11539 line_pos = 0; in unicode_expandtabs_impl()11551 i = j = line_pos = 0; in unicode_expandtabs_impl()11557 incr = tabsize - (line_pos % tabsize); in unicode_expandtabs_impl()11558 line_pos += incr; in unicode_expandtabs_impl()11564 line_pos++; in unicode_expandtabs_impl()[all …]