Home
last modified time | relevance | path

Searched refs:bufpos (Results 1 – 11 of 11) sorted by relevance

/external/webrtc/webrtc/base/
Dstringencode.cc33 size_t srcpos = 0, bufpos = 0; in escape() local
34 while ((srcpos < srclen) && (bufpos + 1 < buflen)) { in escape()
37 if (bufpos + 2 >= buflen) in escape()
39 buffer[bufpos++] = escape; in escape()
41 buffer[bufpos++] = ch; in escape()
44 buffer[bufpos] = '\0'; in escape()
45 return bufpos; in escape()
55 size_t srcpos = 0, bufpos = 0; in unescape() local
56 while ((srcpos < srclen) && (bufpos + 1 < buflen)) { in unescape()
61 buffer[bufpos++] = ch; in unescape()
[all …]
Dstringutils.h170 size_t bufpos = 0; in strlenn() local
171 while (buffer[bufpos] && (bufpos < buflen)) { in strlenn()
172 ++bufpos; in strlenn()
174 return bufpos; in strlenn()
202 size_t bufpos = strlenn(buffer, buflen - 1); variable
203 return bufpos + strcpyn(buffer + bufpos, buflen - bufpos, source, srclen);
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-generated-sources/com/github/javaparser/
DJavaCharStream.java78 public int bufpos = -1; field in JavaCharStream
115 System.arraycopy(buffer, 0, newbuffer, bufsize - tokenBegin, bufpos); in ExpandBuff()
119 System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos); in ExpandBuff()
123 System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize - tokenBegin, bufpos); in ExpandBuff()
126 bufpos += (bufsize - tokenBegin); in ExpandBuff()
139 bufpos -= tokenBegin; in ExpandBuff()
169 if (bufpos != 0) in FillBuff()
171 --bufpos; in FillBuff()
176 bufline[bufpos] = line; in FillBuff()
177 bufcolumn[bufpos] = column; in FillBuff()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/generated/com/github/javaparser/
DJavaCharStream.java76 public int bufpos = -1; field in JavaCharStream
112 System.arraycopy(buffer, 0, newbuffer, bufsize - tokenBegin, bufpos); in ExpandBuff()
116 System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos); in ExpandBuff()
120 System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize - tokenBegin, bufpos); in ExpandBuff()
123 bufpos += (bufsize - tokenBegin); in ExpandBuff()
136 bufpos -= tokenBegin; in ExpandBuff()
166 if (bufpos != 0) in FillBuff()
168 --bufpos; in FillBuff()
173 bufline[bufpos] = line; in FillBuff()
174 bufcolumn[bufpos] = column; in FillBuff()
[all …]
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/ime/translit/
DTransliteratorInputMethod.java487 int bufpos = index.contextLimit; in caretTowardsStart() local
488 if (bufpos > index.start) { in caretTowardsStart()
489 --bufpos; in caretTowardsStart()
490 if (bufpos > index.start in caretTowardsStart()
491 && UCharacter.isLowSurrogate(buffer.charAt(bufpos)) in caretTowardsStart()
492 && UCharacter.isHighSurrogate(buffer.charAt(bufpos - 1))) { in caretTowardsStart()
493 --bufpos; in caretTowardsStart()
495 index.contextLimit = index.limit = bufpos; in caretTowardsStart()
503 int bufpos = index.contextLimit; in caretTowardsLimit() local
504 if (bufpos < buffer.length()) { in caretTowardsLimit()
[all …]
/external/syslinux/com32/rosh/
Drosh.c929 int bufpos, bufcnt; /* current position, count characters */ in rosh_more_buf() local
936 bufpos = 0; in rosh_more_buf()
937 bufp = buf + bufpos; in rosh_more_buf()
941 while (bufpos < buflen) { in rosh_more_buf()
962 printf("--(%d/%d @%d)\n", bufcnt, buflen, bufpos); in rosh_more_buf()
967 bufpos += bufcnt; in rosh_more_buf()
968 if (bufpos == buflen) in rosh_more_buf()
976 bufpos = buflen; in rosh_more_buf()
991 int bufpos; in rosh_more_fd() local
1000 bufpos = 0; in rosh_more_fd()
[all …]
/external/libcups/cups/
Dfile.c50 bufpos; /* File position for start of buffer */ member
1726 if (fp->bufpos == 0) in cupsFileRewind()
1763 fp->bufpos = 0; in cupsFileRewind()
1812 if (pos >= fp->bufpos && pos < (fp->bufpos + bytes)) in cupsFileSeek()
1819 fp->ptr = fp->buf + pos - fp->bufpos; in cupsFileSeek()
1844 if (pos < fp->bufpos) in cupsFileSeek()
1858 fp->bufpos = 0; in cupsFileSeek()
1864 if (pos >= fp->bufpos && pos < (fp->bufpos + bytes)) in cupsFileSeek()
1870 fp->ptr = fp->buf + pos - fp->bufpos; in cupsFileSeek()
1876 fp->bufpos = lseek(fp->fd, pos, SEEK_SET); in cupsFileSeek()
[all …]
/external/tensorflow/tensorflow/core/lib/io/
Dbuffered_inputstream.cc160 const int64 bufpos = Tell(); in Seek() local
161 if (position < bufpos) { in Seek()
167 return SkipNBytes(position - bufpos); in Seek()
Dinputbuffer.cc182 const int64 bufpos = file_pos_ - static_cast<int64>(limit_ - buf_); in Seek() local
183 if (position >= bufpos && position < file_pos_) { in Seek()
185 pos_ = buf_ + (position - bufpos); in Seek()
/external/toybox/toys/pending/
Dcompress.c104 int bufpos = bb->bitpos>>3; in bitbuf_bit() local
106 if (bufpos == bb->len) { in bitbuf_bit()
108 bufpos = 0; in bitbuf_bit()
111 return (bb->buf[bufpos]>>(bb->bitpos++&7))&1; in bitbuf_bit()
/external/syslinux/efi/
Dmain.c295 UINTN buf, bufpos; in efi_scan_memory() local
302 bufpos = buf; in efi_scan_memory()
304 for (i = 0; i < nr_entries; bufpos += desc_sz, i++) { in efi_scan_memory()
309 m = (EFI_MEMORY_DESCRIPTOR *)bufpos; in efi_scan_memory()