Home
last modified time | relevance | path

Searched refs:newpos (Results 1 – 25 of 33) 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 …]
/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/llvm-project/libcxx/src/
Dstrstream.cpp276 char* newpos = eback() + newoff; in seekoff() local
278 setg(eback(), newpos, _VSTD::max(newpos, egptr())); in seekoff()
282 __off = epptr() - newpos; in seekoff()
283 setp(min(pbase(), newpos), epptr()); in seekoff()
306 char* newpos = eback() + newoff; in seekpos() local
308 setg(eback(), newpos, _VSTD::max(newpos, egptr())); in seekpos()
312 off_type temp = epptr() - newpos; in seekpos()
313 setp(min(pbase(), newpos), epptr()); in seekpos()
/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/bsdiff/
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()
Dbspatch.cc262 uint64_t newpos = 0; in bspatch() local
266 while (newpos < patch_reader.new_file_size()) { in bspatch()
274 if (newpos + control_entry.diff_size > patch_reader.new_file_size()) { in bspatch()
332 newpos += control_entry.diff_size; in bspatch()
349 if (newpos + control_entry.extra_size > patch_reader.new_file_size()) { in bspatch()
363 newpos += control_entry.extra_size; in bspatch()
/external/fonttools/Lib/fontTools/ttLib/tables/
DotBase.py139 newpos = pos + staticSize
140 value, = struct.unpack(f">{typecode}", self.data[pos:newpos])
141 self.pos = newpos
149 newpos = pos + count * staticSize
150 value = array.array(typecode, self.data[pos:newpos])
152 self.pos = newpos
172 newpos = pos + 3
173 value, = struct.unpack(">l", b'\0'+self.data[pos:newpos])
174 self.pos = newpos
182 newpos = pos + 4
[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/cpython3/Modules/cjkcodecs/
Dmultibytecodec.c198 Py_ssize_t retstrsize, newpos; in multibytecodec_encerror() local
324 newpos = PyLong_AsSsize_t(PyTuple_GET_ITEM(retobj, 1)); in multibytecodec_encerror()
325 if (newpos < 0 && !PyErr_Occurred()) in multibytecodec_encerror()
326 newpos += (Py_ssize_t)buf->inlen; in multibytecodec_encerror()
327 if (newpos < 0 || newpos > buf->inlen) { in multibytecodec_encerror()
331 newpos); in multibytecodec_encerror()
334 buf->inpos = newpos; in multibytecodec_encerror()
353 Py_ssize_t newpos; in multibytecodec_decerror() local
431 newpos = PyLong_AsSsize_t(PyTuple_GET_ITEM(retobj, 1)); in multibytecodec_decerror()
432 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/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.cpp511 return map[start].newpos; in mapKey()
1337 return compareInt32(((const KeyMapEntry *)l)->newpos, ((const KeyMapEntry *)r)->newpos); in compareKeyNewpos()
1387 map[i].newpos = 0; in compactKeys()
1400 map[i].newpos = 0; in compactKeys()
1428 map[i].newpos = map[i].oldpos; in compactKeys()
1450 map[j].newpos = map[i].oldpos + offset; /* yes, point to the earlier key */ in compactKeys()
1467 int32_t oldpos, newpos, limit; in compactKeys() local
1468 oldpos = newpos = fKeysBottom; in compactKeys()
1471 for (i = 0; i < keysCount && map[i].newpos < 0; ++i) {} in compactKeys()
1478 while (i < keysCount && map[i].newpos == oldpos) { in compactKeys()
[all …]
/external/fonttools/Lib/fontTools/misc/
DpsLib.py77 newpos = self.len
79 newpos = min(self.pos+n, self.len)
80 r = self.buf[self.pos:newpos]
81 self.pos = newpos
/external/rust/crates/csv/src/
Dreader.rs2189 fn newpos(byte: u64, line: u64, record: u64) -> Position { in newpos() function
2285 assert_eq!(pos, &newpos(0, 1, 0)); in read_trimed_header_invalid_utf8()
2332 assert_eq!(pos, &Some(newpos(4, 2, 1))); in read_record_unequal_fails()
2381 assert_eq!(pos, &Some(newpos(4, 2, 1))); in read_record_unequal_continue()
2454 assert_eq!(pos, &newpos(0, 1, 0)); in read_record_headers_invalid_utf8()
2524 rdr.seek(newpos(18, 3, 2)).unwrap(); in seek()
2549 rdr.seek(newpos(18, 3, 2)).unwrap(); in seek_headers_after()
2560 rdr.seek(newpos(18, 3, 2)).unwrap(); in seek_headers_before_after()
/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/Lib/encodings/
Dpunycode.py164 newpos, delta = decode_generalized_number(extended, extpos,
179 extpos = newpos
/external/python/cpython3/Objects/stringlib/
Dcodecs.h315 Py_ssize_t startpos, endpos, newpos; in STRINGLIB() local
387 unicode, &exc, startpos, endpos, &newpos); in STRINGLIB()
392 writer->min_size -= max_char_size * (newpos - startpos); in STRINGLIB()
420 i = newpos; in STRINGLIB()
/external/mtools/
DfsP.h89 void fatAppend(Fs_t *This, unsigned int pos, unsigned int newpos);
Dfat.c766 void fatAppend(Fs_t *This, unsigned int pos, unsigned int newpos) in fatAppend() argument
768 This->fat_encode(This, pos, newpos); in fatAppend()
769 This->fat_encode(This, newpos, This->end_fat); in fatAppend()
/external/skia/modules/skplaintexteditor/app/
Deditor_application.cpp162 int newpos = std::max(0, std::min(fPos + delta, maxPos)); in scroll() local
163 if (newpos != fPos) { in scroll()
164 fPos = newpos; in scroll()
/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/cpython3/Objects/
Dunicodeobject.c351 Py_ssize_t startpos, Py_ssize_t endpos, Py_ssize_t *newpos);
4276 Py_ssize_t newpos; in unicode_decode_call_errorhandler_wchar() local
4302 if (!PyArg_ParseTuple(restuple, argparse, &repunicode, &newpos)) in unicode_decode_call_errorhandler_wchar()
4317 if (newpos<0) in unicode_decode_call_errorhandler_wchar()
4318 newpos = insize+newpos; in unicode_decode_call_errorhandler_wchar()
4319 if (newpos<0 || newpos>insize) { in unicode_decode_call_errorhandler_wchar()
4320 PyErr_Format(PyExc_IndexError, "position %zd from error handler out of bounds", newpos); in unicode_decode_call_errorhandler_wchar()
4335 if (requiredsize > PY_SSIZE_T_MAX - (insize - newpos)) in unicode_decode_call_errorhandler_wchar()
4337 requiredsize += insize - newpos; in unicode_decode_call_errorhandler_wchar()
4348 *endinpos = newpos; in unicode_decode_call_errorhandler_wchar()
[all …]
/external/python/cpython2/Lib/test/
Dtest_gzip.py201 newpos = f.tell()
209 f.seek(newpos) # positive seek
/external/curl/lib/
Ddoh.c521 int newpos; in store_cname() local
527 newpos = (length & 0x3f) << 8 | doh[index + 1]; in store_cname()
528 index = newpos; in store_cname()

12