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.py859 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_pos
915 line_pos = next_pos
919 stops.append(line_pos - len(linesep))
922 stops.append(line_pos)
[all …]
/external/python/cpython3/Objects/
Dunicodeobject.c11505 Py_ssize_t i, j, line_pos, src_len, incr; in unicode_expandtabs_impl() local
11517 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 …]