Lines Matching defs:offsetp
5454 S_utf8_mg_pos_init(pTHX_ SV *sv, MAGIC **mgp, STRLEN **cachep, I32 i, I32 *offsetp, U8 *s, U8 *start)
5471 (*cachep)[i] = *offsetp;
5487 S_utf8_mg_pos(pTHX_ SV *sv, MAGIC **mgp, STRLEN **cachep, I32 i, I32 *offsetp, I32 uoff, U8 **sp, U8 *start, U8 *send)
5564 *offsetp = (*cachep)[i+1];
5565 *sp = start + *offsetp;
5568 *offsetp = send - start;
5572 *offsetp = 0;
5585 assert(*offsetp == s - start);
5587 assert((*cachep)[1] == *offsetp);
5600 Converts the value pointed to by offsetp from a count of UTF-8 chars from
5617 Perl_sv_pos_u2b(pTHX_ register SV *sv, I32* offsetp, I32* lenp)
5630 I32 uoffset = *offsetp;
5635 if (utf8_mg_pos(sv, &mg, &cache, 0, offsetp, *offsetp, &s, start, send))
5642 if (utf8_mg_pos_init(sv, &mg, &cache, 0, offsetp, s, start))
5644 *offsetp = s - start;
5649 if (utf8_mg_pos(sv, &mg, &cache, 2, lenp, *lenp + *offsetp, &s, start, send)) {
5667 *offsetp = 0;
5678 Converts the value pointed to by offsetp from a count of bytes from the
5693 Perl_sv_pos_b2u(pTHX_ register SV* sv, I32* offsetp)
5702 if ((I32)len < *offsetp)
5705 U8* send = s + *offsetp;
5715 if (cache[1] == (STRLEN)*offsetp) {
5717 *offsetp = cache[0];
5721 else if (cache[1] < (STRLEN)*offsetp) {
5727 else { /* cache[1] > *offsetp */
5733 STRLEN forw = *offsetp;
5734 STRLEN backw = cache[1] - *offsetp;
5752 *offsetp = cache[0];
5794 cache[1] = *offsetp;
5800 *offsetp = len;