Home
last modified time | relevance | path

Searched refs:line_pos (Results 1 – 4 of 4) sorted by relevance

/external/tensorflow/tensorflow/java/src/gen/cc/
Dsource_writer.cc52 size_t line_pos = 0; in Write() local
54 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()
/external/python/cpython2/Lib/
Dmailbox.py844 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_pos
900 line_pos = next_pos
904 stops.append(line_pos - len(os.linesep))
907 stops.append(line_pos)
[all …]
/external/python/cpython3/Lib/
Dmailbox.py862 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_pos
918 line_pos = next_pos
922 stops.append(line_pos - len(linesep))
925 stops.append(line_pos)
[all …]
/external/python/cpython3/Objects/
Dunicodeobject.c11734 Py_ssize_t i, j, line_pos, src_len, incr; in unicode_expandtabs_impl() local
11747 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 …]