Home | History | Annotate | Download | only in pcre

Lines Matching refs:cb

858 static int callout(pcre_callout_block *cb)
866 cb->callout_number, cb->capture_last);
868 for (i = 0; i < cb->capture_top * 2; i += 2)
870 if (cb->offset_vector[i] < 0)
875 (void)pchars((unsigned char *)cb->subject + cb->offset_vector[i],
876 cb->offset_vector[i+1] - cb->offset_vector[i], f);
888 pre_start = pchars((unsigned char *)cb->subject, cb->start_match, f);
889 post_start = pchars((unsigned char *)(cb->subject + cb->start_match),
890 cb->current_position - cb->start_match, f);
892 subject_length = pchars((unsigned char *)cb->subject, cb->subject_length, NULL);
894 (void)pchars((unsigned char *)(cb->subject + cb->current_position),
895 cb->subject_length - cb->current_position, f);
902 if (cb->callout_number == 255)
904 fprintf(outfile, "%+3d ", cb->pattern_position);
905 if (cb->pattern_position > 99) fprintf(outfile, "\n ");
910 else fprintf(outfile, "%3d ", cb->callout_number);
925 fprintf(outfile, "%.*s", (cb->next_item_length == 0)? 1 : cb->next_item_length,
926 pbuffer + cb->pattern_position);
931 if (cb->callout_data != NULL)
933 int callout_data = *((int *)(cb->callout_data));
941 return (cb->callout_number != callout_fail_id)? 0 :