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 …]
862 line_pos = self._file.tell()867 stops.append(line_pos - len(linesep))872 stops.append(line_pos)873 starts.append(line_pos)877 stops.append(line_pos - len(linesep))879 stops.append(line_pos)912 line_pos = next_pos918 line_pos = next_pos922 stops.append(line_pos - len(linesep))925 stops.append(line_pos)[all …]
11734 Py_ssize_t i, j, line_pos, src_len, incr; in unicode_expandtabs_impl() local11747 i = j = line_pos = 0; in unicode_expandtabs_impl()11756 incr = tabsize - (line_pos % tabsize); /* cannot overflow */ in unicode_expandtabs_impl()11759 line_pos += incr; in unicode_expandtabs_impl()11766 line_pos++; in unicode_expandtabs_impl()11769 line_pos = 0; in unicode_expandtabs_impl()11781 i = j = line_pos = 0; in unicode_expandtabs_impl()11787 incr = tabsize - (line_pos % tabsize); in unicode_expandtabs_impl()11788 line_pos += incr; in unicode_expandtabs_impl()11794 line_pos++; in unicode_expandtabs_impl()[all …]