Searched refs:ovector (Results 1 - 12 of 12) sorted by relevance

/external/pcre/dist2/src/
H A Dpcre2demo.c89 PCRE2_SIZE *ovector; local
198 ovector = pcre2_get_ovector_pointer(match_data);
199 printf("Match succeeded at offset %d\n", (int)ovector[0]);
212 printf("ovector was not big enough for all the captured substrings\n");
219 PCRE2_SPTR substring_start = subject + ovector[2*i];
220 size_t substring_length = ovector[2*i+1] - ovector[2*i];
267 (int)(ovector[2*n+1] - ovector[2*n]), subject + ovector[
[all...]
H A Dpcre2_substring.c68 (3) PCRE2_ERROR_UNAVAILABLE: no group is in ovector
69 (4) PCRE2_ERROR_UNSET: all named groups in ovector are unset
89 if (match_data->ovector[n*2] != PCRE2_UNSET)
116 PCRE2_ERROR_UNAVAILABLE: ovector too small
129 memcpy(buffer, match_data->subject + match_data->ovector[stringnumber*2],
156 (3) PCRE2_ERROR_UNAVAILABLE: no group is in ovector
157 (4) PCRE2_ERROR_UNSET: all named groups in ovector are unset
177 if (match_data->ovector[n*2] != PCRE2_UNSET)
204 PCRE2_ERROR_UNAVAILABLE: ovector too small
221 memcpy(yield, match_data->subject + match_data->ovector[stringnumbe
381 PCRE2_SIZE *ovector; local
[all...]
H A Dpcre2_substitute.c238 PCRE2_SIZE *ovector; local
260 ovector = pcre2_get_ovector_pointer(match_data);
358 if (ovector[1] < ovector[0])
377 fraglength = ovector[0] - start_offset;
583 if (group < 0) group = ng; /* First in ovector */
584 if (ovector[ng*2] != PCRE2_UNSET)
593 that is in the ovector. Just set the first group. */
652 subptr = subject + ovector[group*2];
653 subptrend = subject + ovector[grou
[all...]
H A Dpcre2_match_data.c51 * Create a match data block given ovector size *
54 /* A minimum of 1 is imposed on the number of ovector triplets. */
114 * Get pointer to ovector *
120 return match_data->ovector;
126 * Get number of ovector slots *
H A Dpcre2posix.c338 PCRE2_SIZE *ovector = pcre2_get_ovector_pointer(md); local
342 pmatch[i].rm_so = ovector[i*2];
343 pmatch[i].rm_eo = ovector[i*2+1];
H A Dpcre2_match.c112 /* Maximum number of ovector elements that can be saved on the system stack
113 when processing OP_RECURSE in non-HEAP_MATCH_RECURSE mode. If the ovector is
115 ovector length is always a multiple of 3. */
159 if (offset >= offset_top || mb->ovector[offset] == PCRE2_UNSET)
171 p = mb->start_subject + mb->ovector[offset];
172 length = mb->ovector[offset+1] - mb->ovector[offset];
417 pattern. The entire ovector must be saved and restored while processing
418 OP_RECURSE. If the ovector is small enough, instead of calling match()
420 to save the ovector whil
[all...]
H A Dpcre2_intmodedep.h641 PCRE2_SIZE ovector[1]; /* The first field */ member in struct:pcre2_real_match_data
735 during pattern recursion when the ovector is larger than can be saved on
749 PCRE2_SIZE *ovec_save; /* Pointer to saved ovector frame */
788 PCRE2_SIZE *ovector; /* Pointer to the offset vector */ member in struct:match_block
H A Dpcre2test.c180 #define DEFAULT_OVECCOUNT 15 /* Default ovector count */
181 #define JUNK_OFFSET 0xdeadbeef /* For initializing ovector */
599 { "ovector", MOD_DAT, MOD_INT, 0, DO(oveccount) },
6256 PCRE2_SIZE *ovector; local
6259 ovector = FLD(match_data, ovector);
6262 iteration, save the current ovector[0,1] so that we can check that they do
6268 ovecsave[0] = ovector[0];
6269 ovecsave[1] = ovector[1];
6276 /* Fill the ovector wit
[all...]
H A Dpcre2grep.c1552 PCRE2_SIZE *ovector = calloutptr->offset_vector; local
1640 argslen += ovector[capture_id + 1] - ovector[capture_id];
1726 capturesize = ovector[capture_id + 1] - ovector[capture_id];
1727 memcpy(argsptr, subject + ovector[capture_id], capturesize);
H A Dpcre2_dfa_match.c3568 match_data->ovector, /* offset vector */
3581 match_data->ovector[0] = (PCRE2_SIZE)(start_match - subject);
3582 match_data->ovector[1] = (PCRE2_SIZE)(end_subject - subject);
H A Dpcre2_jit_compile.c2504 SLJIT_IMM, SLJIT_OFFSETOF(pcre2_match_data, ovector) - sizeof(PCRE2_SIZE));
2524 /* Calculate the return value, which is the maximum ovector value. */
2566 OP1(mov_opcode, SLJIT_MEM1(SLJIT_R1), SLJIT_OFFSETOF(pcre2_match_data, ovector), SLJIT_R2, 0);
2572 OP1(mov_opcode, SLJIT_MEM1(SLJIT_R1), SLJIT_OFFSETOF(pcre2_match_data, ovector) + sizeof(PCRE2_SIZE), STR_END, 0);
7136 PCRE2_SIZE *ovector = arguments->match_data->ovector; local
7151 /* Convert and copy the JIT offset vector to the ovector array. */
7153 callout_block->offset_vector = ovector;
7156 ovector[i] = jit_ovector[i] - begin;
7157 ovector[
[all...]
/external/selinux/mcstrans/src/
H A Dmcstrans.c1096 int ovector[OVECCOUNT]; local
1122 rc = pcre_exec(domain->base_classification_regexp, 0, work, work_len, 0, PCRE_ANCHORED, ovector, OVECCOUNT);
1125 pcre_get_substring(work, ovector, rc, 0, &match);
1142 memset(work + ovector[0], '#', ovector[1] - ovector[0]);
1143 char *p=work + ovector[0] + ovector[1];
1165 rc = pcre_exec(g->prefix_regexp, 0, work, work_len, 0, 0, ovector, OVECCOUNT);
1168 prefix_offset = ovector[
[all...]

Completed in 148 milliseconds