Home
last modified time | relevance | path

Searched refs:bufpos (Results 1 – 6 of 6) 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/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/ime/translit/
DTransliteratorInputMethod.java485 int bufpos = index.contextLimit; in caretTowardsStart() local
486 if (bufpos > index.start) { in caretTowardsStart()
487 --bufpos; in caretTowardsStart()
488 if (bufpos > index.start in caretTowardsStart()
489 && UCharacter.isLowSurrogate(buffer.charAt(bufpos)) in caretTowardsStart()
490 && UCharacter.isHighSurrogate(buffer.charAt(bufpos - 1))) { in caretTowardsStart()
491 --bufpos; in caretTowardsStart()
493 index.contextLimit = index.limit = bufpos; in caretTowardsStart()
501 int bufpos = index.contextLimit; in caretTowardsLimit() local
502 if (bufpos < buffer.length()) { in caretTowardsLimit()
[all …]
/external/boringssl/src/crypto/asn1/
Dbio_asn1.c95 int bufpos; member
171 ctx->bufpos = 0; in asn1_bio_init()
249 ctx->buf + ctx->bufpos, ctx->buflen); in asn1_bio_write()
255 ctx->bufpos += ret; in asn1_bio_write()
258 ctx->bufpos = 0; in asn1_bio_write()
/external/toybox/toys/pending/
Dcompress.c172 int bufpos = bb->bitpos>>3; in bitbuf_bit() local
174 if (bufpos == bb->len) { in bitbuf_bit()
176 bufpos = 0; in bitbuf_bit()
179 return (bb->buf[bufpos]>>(bb->bitpos++&7))&1; in bitbuf_bit()
/external/svox/pico/lib/
Dpicoos.c1930 …t8 os_matched( picoos_char * str, picoos_uint32 strlen, picoos_char * buf, picoos_int32 bufpos) { in os_matched() argument
1932 while (i >= 0 && buf[bufpos] == str[i]) { in os_matched()
1934 bufpos--; in os_matched()
1935 if (bufpos < 0) { in os_matched()
1936 bufpos = strlen-1; in os_matched()
1963 picoos_uint8 strlen, bufpos; in picoos_readPicoHeader() local
1976 bufpos = strlen-1; /* last legal buf position */ in picoos_readPicoHeader()
1977 done = os_matched(str,strlen,buf,bufpos); in picoos_readPicoHeader()
1980 bufpos = (bufpos + 1) % strlen; in picoos_readPicoHeader()
1981 done = picoos_ReadBytes(f,(picoos_uint8 *)buf+bufpos,&n) && 1 == n; in picoos_readPicoHeader()
[all …]