Home
last modified time | relevance | path

Searched refs:newpos (Results 1 – 25 of 27) sorted by relevance

12

/external/python/cpython2/Lib/
DStringIO.py132 newpos = self.len
134 newpos = min(self.pos+n, self.len)
135 r = self.buf[self.pos:newpos]
136 self.pos = newpos
158 newpos = self.len
160 newpos = i+1
162 if self.pos + length < newpos:
163 newpos = self.pos + length
164 r = self.buf[self.pos:newpos]
165 self.pos = newpos
[all …]
D_pyio.py827 newpos = min(len(self._buffer), self._pos + n)
828 b = self._buffer[self._pos : newpos]
829 self._pos = newpos
/external/fonttools/Lib/fontTools/ttLib/tables/
DotBase.py139 newpos = pos + 2
140 value, = struct.unpack(">H", self.data[pos:newpos])
141 self.pos = newpos
146 newpos = pos + count * 2
147 value = array.array("H", self.data[pos:newpos])
149 self.pos = newpos
154 newpos = pos + 1
155 value, = struct.unpack(">b", self.data[pos:newpos])
156 self.pos = newpos
161 newpos = pos + 2
[all …]
/external/libcxx/src/
Dstrstream.cpp277 char* newpos = eback() + newoff; in seekoff() local
279 setg(eback(), newpos, _VSTD::max(newpos, egptr())); in seekoff()
283 __off = epptr() - newpos; in seekoff()
284 setp(min(pbase(), newpos), epptr()); in seekoff()
307 char* newpos = eback() + newoff; in seekpos() local
309 setg(eback(), newpos, _VSTD::max(newpos, egptr())); in seekpos()
313 off_type temp = epptr() - newpos; in seekpos()
314 setp(min(pbase(), newpos), epptr()); in seekpos()
/external/python/cpython2/Lib/bsddb/
Ddbrecio.py72 newpos = self.len
74 newpos = min(self.pos+n, self.len)
76 dlen = newpos - self.pos
79 self.pos = newpos
133 newpos = self.pos + len(s)
135 self.pos = newpos
/external/bsdiff/
Dbspatch.cc261 uint64_t newpos = 0; in bspatch() local
265 while (newpos < patch_reader.new_file_size()) { in bspatch()
273 if (newpos + control_entry.diff_size > patch_reader.new_file_size()) { in bspatch()
331 newpos += control_entry.diff_size; in bspatch()
346 if (newpos + control_entry.extra_size > patch_reader.new_file_size()) { in bspatch()
360 newpos += control_entry.extra_size; in bspatch()
Dfile.cc68 off_t newpos = lseek(fd_, pos, SEEK_SET); in Seek() local
69 if (newpos < 0) in Seek()
71 if (newpos != pos) { in Seek()
/external/python/cpython3/Modules/cjkcodecs/
Dmultibytecodec.c208 Py_ssize_t retstrsize, newpos; in multibytecodec_encerror() local
334 newpos = PyLong_AsSsize_t(PyTuple_GET_ITEM(retobj, 1)); in multibytecodec_encerror()
335 if (newpos < 0 && !PyErr_Occurred()) in multibytecodec_encerror()
336 newpos += (Py_ssize_t)buf->inlen; in multibytecodec_encerror()
337 if (newpos < 0 || newpos > buf->inlen) { in multibytecodec_encerror()
341 newpos); in multibytecodec_encerror()
344 buf->inpos = newpos; in multibytecodec_encerror()
363 Py_ssize_t newpos; in multibytecodec_decerror() local
441 newpos = PyLong_AsSsize_t(PyTuple_GET_ITEM(retobj, 1)); in multibytecodec_decerror()
442 if (newpos < 0 && !PyErr_Occurred()) in multibytecodec_decerror()
[all …]
/external/python/cpython2/Modules/cjkcodecs/
Dmultibytecodec.c228 Py_ssize_t retstrsize, newpos; in multibytecodec_encerror() local
337 newpos = PyInt_AsSsize_t(PyTuple_GET_ITEM(retobj, 1)); in multibytecodec_encerror()
338 if (newpos < 0 && !PyErr_Occurred()) in multibytecodec_encerror()
339 newpos += (Py_ssize_t)(buf->inbuf_end - buf->inbuf_top); in multibytecodec_encerror()
340 if (newpos < 0 || buf->inbuf_top + newpos > buf->inbuf_end) { in multibytecodec_encerror()
344 newpos); in multibytecodec_encerror()
347 buf->inbuf = buf->inbuf_top + newpos; in multibytecodec_encerror()
366 Py_ssize_t retunisize, newpos; in multibytecodec_decerror() local
447 newpos = PyInt_AsSsize_t(PyTuple_GET_ITEM(retobj, 1)); in multibytecodec_decerror()
448 if (newpos < 0 && !PyErr_Occurred()) in multibytecodec_decerror()
[all …]
/external/eigen/Eigen/src/IterativeLinearSolvers/
DIncompleteLUT.h380 Index newpos; in factorize() local
383 newpos = ii + sizeu; in factorize()
389 newpos = sizel; in factorize()
393 ju(newpos) = convert_index<StorageIndex>(j); in factorize()
394 u(newpos) = -prod; in factorize()
395 jr(j) = convert_index<StorageIndex>(newpos); in factorize()
/external/python/cpython2/Modules/
DcStringIO.c388 Py_ssize_t newpos; in O_cwrite() local
406 newpos = oself->pos + len; in O_cwrite()
407 if (newpos >= oself->buf_size) { in O_cwrite()
410 if (newsize <= (size_t)newpos || newsize > PY_SSIZE_T_MAX) { in O_cwrite()
411 assert(newpos < PY_SSIZE_T_MAX - 1); in O_cwrite()
412 newsize = newpos + 1; in O_cwrite()
438 oself->pos = newpos; in O_cwrite()
/external/icu/icu4c/source/tools/genrb/
Dreslist.cpp504 return map[start].newpos; in mapKey()
1328 return compareInt32(((const KeyMapEntry *)l)->newpos, ((const KeyMapEntry *)r)->newpos); in compareKeyNewpos()
1354 map[i].newpos = 0; in compactKeys()
1361 map[i].newpos = 0; in compactKeys()
1383 map[i].newpos = map[i].oldpos; in compactKeys()
1405 map[j].newpos = map[i].oldpos + offset; /* yes, point to the earlier key */ in compactKeys()
1422 int32_t oldpos, newpos, limit; in compactKeys() local
1423 oldpos = newpos = fKeysBottom; in compactKeys()
1426 for (i = 0; i < keysCount && map[i].newpos < 0; ++i) {} in compactKeys()
1433 while (i < keysCount && map[i].newpos == oldpos) { in compactKeys()
[all …]
Dreslist.h66 int32_t oldpos, newpos; member
/external/fonttools/Lib/fontTools/misc/
DpsLib.py66 newpos = self.len
68 newpos = min(self.pos+n, self.len)
69 r = self.buf[self.pos:newpos]
70 self.pos = newpos
/external/python/cpython2/Objects/
Dunicodeobject.c1471 Py_ssize_t newpos; in unicode_decode_call_errorhandler() local
1504 if (!PyArg_ParseTuple(restuple, argparse, &PyUnicode_Type, &repunicode, &newpos)) in unicode_decode_call_errorhandler()
1506 if (newpos<0) in unicode_decode_call_errorhandler()
1507 newpos = insize+newpos; in unicode_decode_call_errorhandler()
1508 if (newpos<0 || newpos>insize) { in unicode_decode_call_errorhandler()
1509 PyErr_Format(PyExc_IndexError, "position %zd from error handler out of bounds", newpos); in unicode_decode_call_errorhandler()
1523 if (requiredsize > PY_SSIZE_T_MAX - (insize - newpos)) in unicode_decode_call_errorhandler()
1525 requiredsize += insize - newpos; in unicode_decode_call_errorhandler()
1533 *endinpos = newpos; in unicode_decode_call_errorhandler()
1534 *inptr = input + newpos; in unicode_decode_call_errorhandler()
[all …]
/external/python/cpython2/Lib/encodings/
Dpunycode.py167 newpos, delta = decode_generalized_number(extended, extpos,
182 extpos = newpos
/external/python/cpython3/Objects/stringlib/
Dcodecs.h313 Py_ssize_t startpos, endpos, newpos; in STRINGLIB() local
385 unicode, &exc, startpos, endpos, &newpos); in STRINGLIB()
390 writer.min_size -= max_char_size * (newpos - startpos); in STRINGLIB()
418 i = newpos; in STRINGLIB()
/external/python/cpython3/Lib/encodings/
Dpunycode.py164 newpos, delta = decode_generalized_number(extended, extpos,
179 extpos = newpos
/external/python/cpython3/Objects/
Dunicodeobject.c313 Py_ssize_t startpos, Py_ssize_t endpos, Py_ssize_t *newpos);
4121 Py_ssize_t newpos; in unicode_decode_call_errorhandler_wchar() local
4150 if (!PyArg_ParseTuple(restuple, argparse, &repunicode, &newpos)) in unicode_decode_call_errorhandler_wchar()
4165 if (newpos<0) in unicode_decode_call_errorhandler_wchar()
4166 newpos = insize+newpos; in unicode_decode_call_errorhandler_wchar()
4167 if (newpos<0 || newpos>insize) { in unicode_decode_call_errorhandler_wchar()
4168 PyErr_Format(PyExc_IndexError, "position %zd from error handler out of bounds", newpos); in unicode_decode_call_errorhandler_wchar()
4183 if (requiredsize > PY_SSIZE_T_MAX - (insize - newpos)) in unicode_decode_call_errorhandler_wchar()
4185 requiredsize += insize - newpos; in unicode_decode_call_errorhandler_wchar()
4194 *endinpos = newpos; in unicode_decode_call_errorhandler_wchar()
[all …]
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/tracks/
DH264TrackImpl.java243 long newpos = reader.getPos(); in readSamples() local
244 int size = (int) (newpos - pos - prevScSize); in readSamples()
302 pos = newpos; in readSamples()
/external/python/cpython2/Lib/test/
Dtest_gzip.py201 newpos = f.tell()
209 f.seek(newpos) # positive seek
/external/curl/lib/
Ddoh.c492 int newpos; in store_cname() local
498 newpos = (length & 0x3f) << 8 | doh[index + 1]; in store_cname()
499 index = newpos; in store_cname()
/external/python/cpython2/Lib/lib-tk/
Dttk.py979 def sashpos(self, index, newpos=None): argument
987 return self.tk.getint(self.tk.call(self._w, "sashpos", index, newpos))
/external/python/cpython3/Lib/tkinter/
Dttk.py983 def sashpos(self, index, newpos=None): argument
991 return self.tk.getint(self.tk.call(self._w, "sashpos", index, newpos))
/external/python/cpython3/Lib/test/
Dtest_gzip.py258 newpos = f.tell()
266 f.seek(newpos) # positive seek

12